Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

passing a parameter to an action class

 
Songezo Nkukwana
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
Songezo Nkukwana
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic