This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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: 463
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: 463
thanks Merrill Higginson , really appreciated your help , it rock
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: howto set parameter in link ?
 
It's not a secret anymore!