wood burning stoves 2.0*
The moose likes Struts and the fly likes url tag more parameters 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 "url tag more parameters" Watch "url tag more parameters" New topic
Author

url tag more parameters

manu chaox
Ranch Hand

Joined: Apr 10, 2006
Posts: 110
Hi,
I have some problem with setting parameters:

<s:url action="xxx!deleteRole" id="url" includeParams="all" >
<s:param name="b" value="%{resource.id}" />
<s:param name="a" value="%{'22'}"/>
</s:url>
">...

in ProjectAction.java, there I have

....
private String a;
private String b;

(with getters, setters)

I am unsuccessful in getting parameters. By this way, I can see only string link with filled parameters during move mouse over link in status web browser.
But parameters aren't set.

I don't know where I make mistake.
Probably, the problem is somewhere in includeParams. I cannot transfer more then one get parameter. (I have tried "all", "get", "none" and always only one has been transfered - only the first.)



Do you have any idea ?

 
wood burning stoves
 
subject: url tag more parameters
 
Similar Threads
[S2] IncludeParams with s:url Tag
Proble with <interceptor-ref name="execAndWait"/>
Struts2, have to eneter site twice to get the list populated
Struts2: s:param not adding parameters to s:url
s:url