Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我在 JSP1 中的代码:
<form action="./JSP2.jsp" name="DisplayDetails" method="GET"> <input type="submit" value="submit" name="submit" /> </form>
两个 jsps 都驻留在名为 (/WEB-INF) 的同一目录中。
这是从form另一个 JSP 中调用一个 JSP 的正确方法吗?
form
是的,这是一个合适的,但我想 JSP2.jsp 就足够了,而不是 ./JSP2.jsp