以下是我在jsp中用于创建选项卡的html代码。如何获得使用java的活动标签名称或ID?
<form name="form1" action="/SampleServlet" method="post">
<ul id="navigation">
<li><a id="tab1" name="live" class="selected" onclick="parent.frame1.location='frame1.jsp'">LIVE</a></li>
<li><a id="tab2" name="history" onclick="parent.frame1.location='frame2.jsp'">HISTORY</a></li>
</ul>
现在,我想在我的servlet.How所选标签或标签被激活名称或ID,我可以使用
request.getParameter("")
方法获得选择或激活的标签?请帮助我,我发现了一些解决方案使用jquery,但我不想使用jquery.Please help me.How can get the tab name or id or value which are selected to present or activated currently now using request.getParameter()?
Java或JavaScript的? – Thihara
你怎么调用你的servlet? –
为什么你不想使用jQuery? – kunal18