簡體   English   中英

如何從 JAVA 中的其他 JSP 重定向到 JSP

[英]how can I redirect to a JSP from other JSP in JAVA

您好朋友,我如何從其他 JSP 重定向到 JSP? I want to show a pdf in the browser (I have programmed the pdf in the last JSP but with the dispatcher that I use it to redirect the last jsp, the name of the last jsp doesn't appear in the browser, and I need最后一個 JSP 的名稱出現在瀏覽器中。謝謝

Use response.sendRedirect() , or if you want to open a pop up window, just use window.open() and pass the URL of JSP in the pop up.

如果您需要顯示名稱,則需要使用客戶端重定向而不是調度程序。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM