Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:link

 
Sahil Sharma
Ranch Hand
Posts: 152
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I need to pass the JSP form data to my action class on click of html:link. I am not able to do so. I can call my action class, but all the setters/getters of my ActionForm class are empty.

If i use querystring then i can only attach predefined data, but not the data that has been modified by the user.

~Kindly help.
 
Baiju Varugese
Ranch Hand
Posts: 74
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can use the onClick option and write a java script to submit the page to the action
 
Sahil Sharma
Ranch Hand
Posts: 152
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have tried that, but nothing is available in my Action class. Niether hidden value nor textbox values.
 
Robin Sharma
Ranch Hand
Posts: 76
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this:
<html:link action="/yourAction.do"
paramId="yourRequestParameter"
paramName="yourBean"
paramProperty="yourPropertyOfBeanToSend">
yourLabel</html:link>


Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic