我創建了一個超鏈接,並通過點擊我將該頁面重定向到另一個JSP,但我沒有得到正確的URL,我正在傳遞,URL附加了另一個字符串,而頁面沒有重定向,contextpath被追加
請任何人有想過這事,幫我出
<td align='<%=lstrColAlign%>' class="<%=tdclass%> Label2"
style="<%=rb.getDataStyleString(rvo,data)%>">
<a href="#" onclick="JavaScript:window.open('<%=columnUrl%>','newwindow','top=0, left=0,
scrollbars=yes,status=1,resizable=yes,height= (screen.availHeight - 10),
width= (screen.availWidth-5)')"> <%=rb.getDataValue(data)%></a>
</font></td>
,我應該得到
...Project1-context-root/servlet/Reports.controller.ReportController?ActionFlag=get.............
但不是說我收到
...Project1-context-root/servlet/servlet/Reports.controller.ReportController?ActionFlag=get.....
這樣,多餘的字servlet/
附加
你可以把代碼片段放在這裏嗎?這樣這裏的人可以理解你的問題是什麼? – 2010-05-04 09:15:05
Plz發佈你正在做的一些示例代碼,以及你的網址有什麼問題,這樣人們可以理解你的問題並回復你。 – Nirmal 2010-05-04 09:59:02