See if <s:url ... includeParams="none" .../> helps.

You can also set that as a default.

I do agree with the other response that using the <s:param.../> tag makes
things a little cleaner.

d.

--- Paranoid_Fabio <[EMAIL PROTECTED]> 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]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to