This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am new to JSP/Struts. I really need your help on how to pass values in a form with multiple actions. Please help out.
Here is the sample code. <html:form action="someAction" method="post"> <table> <tr> <td><html:select property="factoryId"> <html ption...> </td> </tr> <tr><td><html:link page="/actions/../actionOne.do"></td></tr> <tr><td><html:link page="/actions/../actionTwo.do"></td></tr> </table> </html:form>
My question: how to pass factoryId to servlet (Struts action)? Many thanks.
Joined: Dec 13, 2008
I kind of thinking how to pass parameters in html:link tag. I defined a HashMap first, then pass the params map to the link tag. <% HashMap params = new HashMap(); params.put( "factoryId", "120" ); request.setAttribute( "params", params ); %>