This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Sending a parameter with <s:url.../> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Sending a parameter with <s:url.../> " Watch "Sending a parameter with <s:url.../> " New topic
Author

Sending a parameter with <s:url.../>

Peter Mest
Ranch Hand

Joined: Aug 14, 2009
Posts: 30
Is possible to hide a parameter using <s:url> tag?




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.



I just want a simple link with the possibility to send a parameter to my action.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I'm not sure what you mean by "hide" a parameter. Maybe just make a link with an onclick that submits the form.
 
jQuery in Action, 2nd edition
 
subject: Sending a parameter with <s:url.../>
 
Similar Threads
Change to 2.2.1 causes forms to not submit to specific method anymore
struts2 autocomplete
Struts2 ajax theme - One form, two buttons.. two actions?
s:url and javascript onclick submit
Select and trigger an action through a link, doesn't populate the value