急!!!

iriscole 2003-08-20 05:15:11
在我的C盘下有个GREETING文件夹。TOMCAT中已设置Document Base:为C:\GREETING Path:为/tmp。。。。在xml中我又设置了映射:
<servlet-mapping>
<servlet-name>registration</servlet-name>
<url-pattern>/myweb</url-pattern>
</servlet-mapping>
当我访问http://localhost:8080/tmp一切正常,但当我一提交提示找不道
The requested resource (/myweb) is not available.
请问我的<form action="/myweb/GreetingServlet" method="post">这个地址是不是有错啊,该怎么写啊。(我的GreetingServlet.class路径是C:\GREETING\WEB-INF\CLASSES\GreetingServlet.class)
...全文
79 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
iriscole 2003-08-27
  • 打赏
  • 举报
回复
晕,servlet就是麻烦.....
diewikwang 2003-08-20
  • 打赏
  • 举报
回复
看看配置的servlet路径在哪里咯,
/myweb/Servlet/GreetingServlet
iriscole 2003-08-20
  • 打赏
  • 举报
回复
还是有错误
The requested resource (/myweb/GreetingServlet) is not available.
wspsc 2003-08-20
  • 打赏
  • 举报
回复
<url-pattern>/myweb/*</url-pattern>

81,090

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧