File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
Sending a parameter with <s:url.../>
Joined: Aug 14, 2009
Apr 16, 2010 14:40:10
Is possible to hide a parameter using <s:url> tag?
<s:url action="edit"> <s:param name="id" value="1"/> </s:url>
In fact, I want to not a have submit button on my webpage. This means that I don't want to use the <s:submit> tag.
<s:form action="pdf" method="post"> <s:hidden name="a" value="RIR"/> <s:submit method="execute" align="left" label="PDF"/> </s:form>
I just want a simple link with the possibility to send a parameter to my action.
Joined: Sep 29, 2008
Apr 16, 2010 15:23:05
I'm not sure what you mean by "hide" a parameter. Maybe just make a link with an onclick that submits the form.
I agree. Here's the link:
subject: Sending a parameter with <s:url.../>
Select and trigger an action through a link, doesn't populate the value
Struts2 ajax theme - One form, two buttons.. two actions?
Change to 2.2.1 causes forms to not submit to specific method anymore
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015