This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
Consider Paul's rocket mass heater.
 
subject: passing a parameter to an action class
 
Similar Threads
HashMap Output to Datatable
how to use hasnext method inside <c:foreach>
JSF TreeMap Iteration Problem Using JSTL In XHTML
How to convert the for Loop to the equalent JSTL code in JSP
JSTL choose not executing as expected