Try to make your url action as follows and see if this works better.
<s:url value="doPurchase.action"> <s:param name="amount" value="25" /> </s:url> Paranoid_Fabio wrote:
Hi everyone. I'm new to Struts and i'm developing a web application. I've a page with 3 links. Every link call the doPurchase action, but each passes a different amount.Here's the snippet of the jsp that calls doPurchase action <p><span style="font-size:8pt;"><a href="<s:url action="doPurchase?amount=10"/>"><font face="Arial" color="#333333"><img src="../Images/Euro10.gif" border="0" width="132" height="26"></font></a></span><font color="#333333"></font></p> <p><a href="<s:url action="doPurchase?amount=25"/>"><font face="Arial" color="#333333"><img src="../Images/Euro25.gif" width="132" height="26" border="0"></font><font color="#333333"></font></a></p> <p><a href="<s:url action="doPurchase?amount=50"/>"><font face="Arial" color="#333333"><img src="../Images/Euro50.gif" width="132" height="26" border="0"></font><font color="#333333"></font></a></p> In the Purchase action class i've the parameter amount whit setter and getter. When i click on a button the parameter amount is correctly passed to the action. The problem is that after calling the action, the parameter remains on the stack. If i roll over the button again, the browser shows this: http://localhost:8080/.../doPurchase.action?amount=10&amount=10 insted of http://localhost:8080/.../doPurchase.action?amount=10 if i click again, the next time i got: http://localhost:8080/.../doPurchase.action?amount=10&amount=10&amount=10 and so on. The same happens also for any other page and action call. The parameter amount remains displayed and grows with each call. If anyone can help me i'd really appreciate. Thank u --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -------------------------------- Spam/Virus scanning by CanIt Pro For more information see http://www.kgbinternet.com/SpamFilter.htm To control your spam filter, log in at http://filter.kgbinternet.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]