Re: struts html:form with javascript for ajax



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
.