1, web. The XML file configuration filters filter all requested
The filter added to print
2, the server is configured in the XML file the project root path
Referred to in the docBase folder contains index. The JSP
Q: 1, through http://localhost:8081 access index. The JSP, view spooled, index. The JSP page is not through the filter, but the index. A post request in the JSP can through the filter, why? Anxious!!!!
2, the index. The JSP page, the request getContextPath () why is an empty??????
For the second question I did test:
If it's because in the server. The XML path="", I was in the index. The JSP page to send a post request to the background longin. Do the request returns to the welcome. The JSP, why in welcome. The JSP request. GetContextPath () and not null, is really don't understand, also can not find the answer on the net, for a great god help!
(is special home page?