This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes html:optionsCollection form submit - error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:optionsCollection form submit - error" Watch "html:optionsCollection form submit - error" New topic

html:optionsCollection form submit - error

Christopher Frankland
Ranch Hand

Joined: Jan 22, 2005
Posts: 42

I am implementing a combo box using html ptionsCollection. Here is my jsp as it currently stands:

When I select an option, the form submits, however, on the reload I am getting an error.

Here is my ActionForward method:

Am I missing something here? The "viewLaborManagement" forward returns the user to the same jsp page as before, and I would like to display the same combo box, this time with the appropriate option selected.

Any advice much appreciated.


Christopher Frankland
Ranch Hand

Joined: Jan 22, 2005
Posts: 42
Sorry! Figured it out. Hopefully this might be of help to somebody else. The fix was to make sure I included the call to the DAO in the section of code that handles the form action (in the ActionForward).

I agree. Here's the link:
subject: html:optionsCollection form submit - error
Similar Threads
Cannot find bean: "EMPLOYEELIST" in any scope
html:optionsCollection - Help Needed!
html:select and html:options
html:iterate or html:multibox problem