如题。是否可以在xml文件中设置?
解决方案 »
- 多对多关系的时候,报错了
- 求:公司门户网站(jsp)怎么部署???
- cancannot find the declaration of enot find the declaration of element 'web_app'
- velocity上使用common validation客户端验证的问题
- 请问这个是什么开发模式?
- 我给大家推荐一个不错的电子图书下载网站
- spring MVC 上手遇阻,路过的伸把手
- jsp 知道一张图片的路径,怎么下载到本地的电脑上
- <%session.setAttribute("UN",username)%>//我这样写报错,请问如何给Session UN赋值为js中的变量username
- mybatis问题,在线等,急急急!!!!!
- 插件问题
- jsp中如何将数据库中的内容,输出到excel表中
<welcome-file>
/welcomeservlet
</welcome-file>
</welcome-file-list> /welcomeservlet是你在web.xml中定义的servlet的servlet url要能够访问得到就可以了。
他的答案只是访问当前工程目录下/welcomeservlet子目录中index页
在你的index页的<body onload"调用JS">
在JS中设置你的form的action
在JS中触发这个新设置的action
简写JS代码如下,根据你的实际页自己修改
document.forms[0].action='/testAction.do';
document.forms[0].submit();