社区
Web 开发
帖子详情
struts框架Servlet action is not available
luyun2011
2011-03-07 09:21:45
只用struts框架,登陆时总是出现Servlet action is not available,路径没问题,什么原因啊?
是缺包吗?
...全文
86
4
打赏
收藏
struts框架Servlet action is not available
只用struts框架,登陆时总是出现Servlet action is not available,路径没问题,什么原因啊? 是缺包吗?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
emon123
2011-03-08
打赏
举报
回复
配置文件贴出来撒!~
jamespengo
2011-03-07
打赏
举报
回复
404? 路径的问题 就是你那个Action找不到 多检查下
luyun2011
2011-03-07
打赏
举报
回复
action没问题
public class LoginAction extends Action {
public ActionForward execute(ActionMapping mapping,ActionForm form,
HttpServletRequest request,HttpServletResponse response){
LoginForm login = (LoginForm)form;
String username=login.getUsername();
String password=login.getPassword();
if("java".equals(username)&&"123".equals(password)){
request.getSession().setAttribute("username", username);
return mapping.findForward("ok");
}else{
request.setAttribute("errormsg", "登陆错误");
return mapping.findForward("error");
}
}
}
追风★少年
2011-03-07
打赏
举报
回复
是不是action的书写有问题
strust文件上传
import org.apache.
struts
.
action
.*; import org.apache.
struts
.upload.*; public class File
Action
Form extends
Action
Form { private String fileName;//上传文件的名称 private String fileSize;//上传文件的...
servlet
action
is not
available
Servlet
action
is not
available
解决方法问题原因:1.、web.xml文件中未配置
Action
Servlet
。2、
struts
-config.xml文件未配置你要访问的
Action
。3、你的jsp文件form标记中
action
属性的路径名称错误。针对以上3种情况...
Servlet
action
is not
available
异常解决
最近弄了个SSH的登录程序,出现了
Servlet
action
is not
available
异常,第一反应应该是
struts
配置的问题,找了段时间发现配置没错,搜索了下,找了几篇好文,问题成功解决,原来是spring的配置文件中hibernate的...
HTTP Status 404 -
Servlet
action
is not
available
type Status report ...The requested resource (
Servlet
action
is not
available
) is not
available
. 写了个小的登陆程序,怎么都找不到配置错误,找了好几天,最后才发现笔误,把
struts
-
HTTP Status 404 -
Servlet
action
is not
available
解决方法[转]
type Status report message
Servlet
action
is not
available
descriptionThe requested resource (
Servlet
action
is not
available
) is not
available
. <br />问题原因: 1.、web.xml...
Web 开发
81,092
社区成员
341,716
社区内容
发帖
与我相关
我的任务
Web 开发
Java Web 开发
复制链接
扫一扫
分享
社区描述
Java Web 开发
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章