Question:
Can JSP pages in different folders be accessed to each other?
First:
For example:
There is a login page A. jsp, which is placed in the B folder, and B. jsp page in the B.
From a. jsp ----> B. jsp, you can: <a href = "B/B. jsp"> </a>;
Second:
For example:
There is a login page A. jsp, which is placed in the B folder, and B. jsp page in the B.
From B. jsp ----> A. jsp?
Solution: <a href = "../index. jsp"> </a>
Third:
From folder A. jsp to folder B. jsp
Solution:
<A href = "../B. jsp"> </a>
The reason is that when a. jsp accesses B. jsp, the default access path is ../A/.. B. jsp.
That is, when a. jsp accesses JSP under other folders, the default access path is...//..
This is based on his own path, because the AB two folders are tied together, if
<A href = "B/B. jsp"> </a> the Error Path is ../a/B/B. jsp.
Suggestion: Compare the three paths!