This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff 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 ); %>