File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Android Security Essentials Live Lessons this week in the Android 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
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