从JSP页面获取Hyper-Link的价值. [英] Getting value of Hyper-Link from JSP Page..
本文介绍了从JSP页面获取Hyper-Link的价值.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有两个JSP页面
一页包含3个超链接和一个按钮.
超链接是:
1. empID1 值:2222
2. empID2 值:3333
3. empID3 值:4444
这些超链接中的任何一个都将控件转移到同一页面.
我想检索与被点击的超链接相关联的值,这导致第二个jsp加载.
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.
推荐答案
检查事件,该按钮正在分派.您应该能够弄清楚该按钮的名称:
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>
问候
Torsten
regards
Torsten
这篇关于从JSP页面获取Hyper-Link的价值.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文