jQuery in Action, 3rd edition
The moose likes Struts and the fly likes html:link Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:link" Watch "html:link" New topic


Sahil Sharma
Ranch Hand

Joined: Aug 27, 2003
Posts: 152

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

Joined: Dec 16, 2003
Posts: 74
you can use the onClick option and write a java script to submit the page to the action

Measure twice cut once carpenter theory <br /> <br />Baiju <br />SCJCP, SCBCD, IBM-486, IBM-484, SCEA Part I
Sahil Sharma
Ranch Hand

Joined: Aug 27, 2003
Posts: 152
i have tried that, but nothing is available in my Action class. Niether hidden value nor textbox values.
Robin Sharma
Ranch Hand

Joined: Aug 24, 2005
Posts: 76
Try this:
<html:link action="/yourAction.do"


There is always a bug :-)
I agree. Here's the link: http://aspose.com/file-tools
subject: html:link
jQuery in Action, 3rd edition