Meaningless Drivel is fun!*
The moose likes Struts and the fly likes how the Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how the "html:select" tag activate the nevigation event?" Watch "how the "html:select" tag activate the nevigation event?" New topic

how the "html:select" tag activate the nevigation event?

zb cong
Ranch Hand

Joined: Jan 14, 2002
Posts: 416
hello everyone:
i embed the <html:select>tag and submit button in the <html:form> tag,when i select a item,i must click the submit button to nevigate other page.
now i want to delete the submit button,when i select a item,it will automatically nevigate to the destination,how?must i insert java script into my page?who can gvie a scriptlet?
thank you!
Junilu Lacar

Joined: Feb 26, 2001
Posts: 4446

You would have to use a JavaScript function to submit the form and call it from the onchange event in the <html:select> tag.
You can try looking for examples at
It is sorta covered in the JavaRanch Style Guide.
subject: how the "html:select" tag activate the nevigation event?
Similar Threads
JSP + struts html:select
Disabling html:select by form bean property
JSP + struts html:select
disabled property in html:select
html:select and option