JBuilderX开发JSP的一个小问题

wingofsea 2004-11-21 07:12:42
最近初学使用JBuilder进行jsp开发,新建了个web Module,运行这个web Module,当访问servlet时,出现
如下错误:
type Status report

message No Context configured to process this request

description The server encountered an internal error (No Context configured to process this request) that prevented it from fulfilling this request.


JBuilder给出如下提示:
StandardHost[localhost]: MAPPING configuration error for request URI /controller
是不是web.xml没有配置好?
...全文
109 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
wingofsea 2004-11-23
  • 打赏
  • 举报
回复
谢谢,那通常应该怎么写action中的内容呢
wingofsea 2004-11-22
  • 打赏
  • 举报
回复

谢谢大家,仔细检查了程序,
把<form method="post" action="/controller?Service=DataShowService&target=/dataShow.jsp ">
修改为
<form method="post" action="./controller?Service=DataShowService&target=/dataShow.jsp ">
就可以了。"."不是代表当前目录吗,而"/"默认也是当前目录呀,为什么会出现The server encountered an internal error (No Context configured to process this request) that prevented it from fulfilling this request. 这种错误呢?
wingofsea 2004-11-22
  • 打赏
  • 举报
回复

谢谢大家,仔细检查了程序,
把<form method="post" action="/controller?Service=DataShowService&target=/dataShow.jsp ">
修改为
<form method="post" action="./controller?Service=DataShowService&target=/dataShow.jsp ">
就可以了。"."不是代表当前目录吗,而"/"默认也是当前目录呀,为什么会出现The server encountered an internal error (No Context configured to process this request) that prevented it from fulfilling this request. 这种错误呢?
GoldApple 2004-11-22
  • 打赏
  • 举报
回复
. 代表当前目录没错,但是 / 却不是代表当前目录,而是代表 web application 的 ‘根目录’
wingofsea 2004-11-22
  • 打赏
  • 举报
回复

谢谢大家,仔细检查了程序,
把<form method="post" action="/controller?Service=DataShowService&target=/dataShow.jsp ">
修改为
<form method="post" action="./controller?Service=DataShowService&target=/dataShow.jsp ">
就可以了。"."不是代表当前目录吗,而"/"默认也是当前目录呀,为什么会出现The server encountered an internal error (No Context configured to process this request) that prevented it from fulfilling this request. 这种错误呢?
fengsuizhuyin 2004-11-22
  • 打赏
  • 举报
回复
楼主,我也出现了你这一样的错误提示,但是不是这种情况,具体的问题你看这个页面
http://community.csdn.net/Expert/topic/3565/3565952.xml?temp=.654339
不知你解决没有
wingofsea 2004-11-22
  • 打赏
  • 举报
回复

谢谢大家,仔细检查了程序,
把<form method="post" action="/controller?Service=DataShowService&target=/dataShow.jsp ">
修改为
<form method="post" action="./controller?Service=DataShowService&target=/dataShow.jsp ">
就可以了。"."不是代表当前目录吗,而"/"默认也是当前目录呀,为什么会出现The server encountered an internal error (No Context configured to process this request) that prevented it from fulfilling this request. 这种错误呢?
funcreal 2004-11-21
  • 打赏
  • 举报
回复
是不是web.xml没有配置好?这个不用手工动
尽量不要随意更改文件名,或者删除文件。也容易出这种错误。你可以make整个工程试一下。project->make yourproject
zdnetchina 2004-11-21
  • 打赏
  • 举报
回复
检查一下,在tomcat下运行有没有问题
redex 2004-11-21
  • 打赏
  • 举报
回复
可能是web.xml中servlet的配置有问题。

62,614

社区成员

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

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