File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes s:url and s: question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "s:url and s: question" Watch "s:url and s: question" New topic

s:url and s: question

Andy Hahn
Ranch Hand

Joined: Aug 31, 2004
Posts: 225
I have two JSPs, and each contains a hyperlink (using s:url and s:a). The hyperlink in the first JSP has 2 params defined while the second JSP has only 1 defined.

The problem is if I click on the first hyperlink on the first page and get brought to the second page, an extra parameter from the first hyperlink is added to the send hyperlink.

Has anyone seen this before? Thanks.
Andy Hahn
Ranch Hand

Joined: Aug 31, 2004
Posts: 225
I'll answer my own question;)

Need to use the following in struts.xml:
<constant name="struts.url.includeParams" value="none"/>
I agree. Here's the link:
subject: s:url and s: question
Similar Threads
Dynamic Links.
Progress GIF Just Displays but No Animation
HttpServletRequest got lost
Parameters to s:url action call
can this variable be accessed in various JSPs assemebled in tile.xml ?