【发布时间】:2016-08-13 16:02:39
【问题描述】:
如何动态构建操作 URL。我在 JSP 中有上述 URL,它在本地系统中运行良好。
http://localhost:8080/<projectname>/escSave.html
需要添加什么才能在所有环境中工作。
/server-dev.domain.com/<projectname>/escSave.html
帮助我理解修复。
【问题讨论】:
标签: url-pattern
如何动态构建操作 URL。我在 JSP 中有上述 URL,它在本地系统中运行良好。
http://localhost:8080/<projectname>/escSave.html
需要添加什么才能在所有环境中工作。
/server-dev.domain.com/<projectname>/escSave.html
帮助我理解修复。
【问题讨论】:
标签: url-pattern
如果escSave.html在网页的根目录下应该是
<form:form method=“POST” action=“/escSave.html”>
相对于当前脚本:
<form:form method=“POST” action=“escSave.html”>
【讨论】: