Re: struts html:form with javascript for ajax
- From: Lew <lew@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 27 Feb 2007 23:14:06 -0500
eunever32@xxxxxxxxxxx wrote:
Hi
I have a struts (1.1) form
<html:form
<html:text
<html:text ...
</html:form>
All was well until I wanted to add an ajax field that would do auto-
complete.
Previously working example had
<input id="complete-field"
This was incompatible with the html:form tag and so I continued to use
<input
but when I submit the form the value of the input field is null
Does your input field have a name as well as an id?
Struts does some special magic to pull request parameters into its Form classes. If you don't use its html: tag lib than you might need to make explicit request.getParameter() calls in the Action class for those parameters.
- Lew
.
- References:
- struts html:form with javascript for ajax
- From: eunever32
- struts html:form with javascript for ajax
- Prev by Date: Re: System.arrayCopy Vs array clone
- Next by Date: Re: HELP
- Previous by thread: struts html:form with javascript for ajax
- Next by thread: Re: struts html:form with javascript for ajax
- Index(es):