By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,481 Members | 3,170 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,481 IT Pros & Developers. It's quick & easy.

struts html:form ajax input

P: n/a
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
How can I modify my form so that I can use the javascript
functionality ?
Thanks

Feb 27 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Feb 27, 5:06 pm, euneve...@yahoo.co.uk 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

How can I modify my form so that I can use the javascript
functionality ?

Thanks
Well, this isn't really the best group to ask this question. However,
if I understand your question you just need to add an ID attribute to
a Struts form field tag? To do that you use styleId="complete-
field". Look at the Struts documention for valid Struts tags and
their attributes.

John

Feb 28 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.