java - When the action in the form fills in the relative address, why do these two methods have the same effect?
过去多啦不再A梦
过去多啦不再A梦 2017-05-17 10:09:12
0
3
564

What does this/stand for? It can't be the root directory, right? The name of the project is test

过去多啦不再A梦
过去多啦不再A梦

reply all(3)
小葫芦

Both methods you use are to submit data to the CServlet address. The first method is just the abbreviation. It will find the sub-files under the root directory.

淡淡烟草味

It should be that the <url-pattern> specified when configuring <servlet-mapping> in web. The web.xml configuration is clear

我想大声告诉你

/ 本来就表示根嘛,不过在这里不是表示的服务器文件系统的根,而是 Web 应用虚拟目录结构的根,也就是 http://somedomain.com/ This "root" position.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template