在web.xml的配置文件中url-pattern具体表示什么意思! 为了定义servlet和url的对应关系,就是说通过那个url访问servlet,要注意是相对路径 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <servlet> <servlet-name>examineoperator</servlet-name> <servlet-class>oamodule.examine.ExamineOperator</servlet-class> </servlet> <servlet-mapping> <servlet-name>examineoperator</servlet-name> <url-pattern>/examine/examineoperator</url-pattern> </servlet-mapping>假如webapplication的Path URI D:\project\defaultrootname为myapplication那么在浏览器中输入 http://localhost:7001/myapplication/examine/examineoperator就可以访问这个servlet在jsp的里面提交到/examine/examineoperator也可以提交到这个servlet 不知道我的理解对不对是不是我在jsp中action = aa那么我在url-pattern中的就是/aa 上面可能没说清楚,我要在jsp中调用servlet那么我servlet中web.xml的配置url-pattern 是 /aa 因为用到的是相对路径,你action = aa,那么url-pattern中应该是/jsp所在路径/aa如果jsp放在根目录总就是/aa了 求个大神帮写个html静态的个人主页!急! javascript在IE下运行,谷歌火狐下不能运行,请大家进来看看 推荐个JavaCMS 开源的~~谢谢~ 怎么实现当跳转页面时下拉列表框中的默认值改变 创建博客会员是否要创建相应文件夹? query.setstring不能赋值的问题 字符串怎么转换成字符型? 为什么会找不到??? 这个bean写的对吗? 如何处理乱码 找不到包? 为什么这样的语句不行呢?
<servlet-name>examineoperator</servlet-name>
<servlet-class>oamodule.examine.ExamineOperator</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>examineoperator</servlet-name>
<url-pattern>/examine/examineoperator</url-pattern>
</servlet-mapping>
假如webapplication的Path URI D:\project\defaultroot
name为myapplication
那么在浏览器中输入 http://localhost:7001/myapplication/examine/examineoperator就可以访问这个servlet
在jsp的里面提交到/examine/examineoperator也可以提交到这个servlet
是不是我在jsp中action = aa
那么我在url-pattern中的就是/aa
我要在jsp中调用servlet
那么我servlet中web.xml
的配置url-pattern 是 /aa
如果jsp放在根目录总就是/aa了