GeeCON Prague 2014*
The moose likes Struts and the fly likes passing a parameter to an action class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "passing a parameter to an action class" Watch "passing a parameter to an action class" New topic
Author

passing a parameter to an action class

Songezo Nkukwana
Ranch Hand

Joined: Nov 27, 2008
Posts: 51
Hi, i have the following on my JSP



I'm trying to pass what's on post.postid.postTitle but the string "{post.postId.postTitle}" is rather passed? Any ideas
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
If you're using Struts 1.3.6 or above, I'd suggest you pass the parameter using the html:param tag. Something like this:


Merrill
Consultant, Sima Solutions
Songezo Nkukwana
Ranch Hand

Joined: Nov 27, 2008
Posts: 51
Merrill Higginson wrote:If you're using Struts 1.3.6 or above, I'd suggest you pass the parameter using the html:param tag. Something like this:


I'm using struts 1.2....

What's the meaning of paramName and paramId in the html:link tag? Can i sue them here and how
 
wood burning stoves
 
subject: passing a parameter to an action class