This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
normally, we mention the action attribute as a paramater of the form tag. then on click of submit button, the corresponding action class is called. Now, i would like to call action on click of the hyperlink ( i.e. <s:a href tag). how could i achieve it in Struts 2. Please help.>
You'll have to be more specific about that second requirement, I have no idea what it means.
Joined: Jun 28, 2007
David Newton wrote:
thanks newton, after writing above code, execute method of the action class is called. But, i also want to send a value associated with the link clicked to the action class. how could i achieve it.
Let me elaborate the issue:
I have a list of employees with hyperlink on their names. now, i want user to edit an emploee by clicking on its name link. by above code, the execute method of action class is getting called. but i also want to send the emp name to the action class. how could i pass it?