以下是我在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