The jsp file under the maven:web project folder created by idea cannot be accessed

problem description

create a jsp folder under webapp to store jsp pages. Submission via form cannot be located. 404 is returned.

the environmental background of the problems and what methods you have tried

when writing Filter, I found that both css and js were dropped by Filter. Baidu found a way to put the jsp page into a separate folder, and the annotated urlPattern= "jsp/*" could solve the problem, but in practice, I found that it was impossible to locate jsp after putting it into a separate folder, no matter how to change the address of action.

related codes

/ / Please paste the code text below (do not replace the code with pictures)

<form action="/jsp/login.jsp" method="post" class="smart-green">
<h1></h1>

<label>
    <span>:</span>
    <input id="username" type="text" name="username"/>
</label>

<label>
    <span>:</span>
    <input id="password" type="password" name="password"/>
</label>

<span></span>

<label>
    <input type="submit" class="button" value=""/>
</label>
<form action="<%=basePath%>jspPage/login.jsp" method="post" class="smart-green">
<h1></h1>

<label>
    <span>:</span>
    <input id="username" type="text" name="username"/>
</label>

<label>
    <span>:</span>
    <input id="password" type="password" name="password"/>
</label>

<span></span>

<label>
    <input type="submit" class="button" value=""/>
</label>
</form>

what result do you expect? What is the error message actually seen?

should be able to locate the target, but it is found to be 404. Even through http://localhost:8080/Test/jsp/login.jsp, you can"t find

.

Aug.22,2021

1.
2.formpost.jsp?,.jsp
2.

after my own research, I have come up with some clues.
means that you can put other pages under the / webapp/jsp folder, but the pages specified by index.jsp (that is, welcome-file) must be placed in the webapp root directory to ensure that other pages under the / jsp folder can be accessed

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eac650-20d7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eac650-20d7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?