my dog learned polymorphism*
The moose likes Struts and the fly likes howto set parameter in link ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "howto set parameter in link ?" Watch "howto set parameter in link ?" New topic
Author

howto set parameter in link ?

Nakata kokuyo
Ranch Hand

Joined: Apr 13, 2005
Posts: 438
hi good day,
i have a link set as below :



what i want is make the link set exactly like value(retList.user_role_id), but it give me error like can't find the bean, is there a way to solved this ?

thank you
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Don't use an EL expression in this case. Just provide the name and property of the scoped variable that contains the parameter value.

<html:link action="userrole_update" paramId="userroleid" paramName="retList" paramProperty="user_role_id">

This is all explained in the Struts documentation.


Merrill
Consultant, Sima Solutions
Nakata kokuyo
Ranch Hand

Joined: Apr 13, 2005
Posts: 438
thanks Merrill Higginson , really appreciated your help , it rock
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: howto set parameter in link ?
 
Similar Threads
passing a parameter to an action class
howto make html:link dynamic select item of map ?
how to get variable of c:forEach in a html:link tag
howto use JSTL foreach to display list ?
html:Link not able to retrieve ActionForward