Click here to Skip to main content
15,889,808 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have two JSP Pages
One page has 3 hyperlinks and one single button.

The Hyperlinks are:
1.empID1 Value:2222
2.empID2 Value:3333
3.empID3 Value:4444

Any Of these hyperlinks transfer the control to the same page.

I want to retrive the value associated to the hyperlink that has been clicked which resulted the second jsp to load.

How can it be done.
Posted

1 solution

Check out the event, the button is dispatching. You should be able to figure out the name of that button:

 <input>
   id="ButtonID" 
   type="button"
   onClick="someFancyFunction(ButtonID)"
 >
</input>


regards
Torsten
 
Share this answer
 
Comments
Be Yourself 23-May-11 14:33pm    
I want to do it without using java script.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900