File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "howto set parameter in link ?" Watch "howto set parameter in link ?" New topic

howto set parameter in link ?

Nakata kokuyo
Ranch Hand

Joined: Apr 13, 2005
Posts: 448
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.

Consultant, Sima Solutions
Nakata kokuyo
Ranch Hand

Joined: Apr 13, 2005
Posts: 448
thanks Merrill Higginson , really appreciated your help , it rock
Have you tried LearnNowOnline?
subject: howto set parameter in link ?