您的位置:程序门 -> java -> 框架、开源



struts+hibernate servlet action is not available 在线等


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


struts+hibernate servlet action is not available 在线等
发表于:2007-05-09 14:09:23 楼主
报着个错。


http   status   404   -   servlet   action   is   not   available

--------------------------------------------------------------------------------

type   status   report

message   servlet   action   is   not   available

description   the   requested   resource   (servlet   action   is   not   available)   is   not   available.


--------------------------------------------------------------------------------

=================
jsp页面:
=================

<%@   page   language= "java "   pageencoding= "gb2312 "%>
<html>  
<head>
<title> jsp   for   loginform   form </title>
</head>
<body>
<form   action= "/ssh/login.do "   method= "post ">  
password   : <input   type= "text "   name= "text1 ">    
<br> name   : <input   type= "text "   name= "text2 ">  
<br>
<input   type= "submit "   name= "button4 "   value= "提交 ">
</form>
</body>
</html>  

========================
struts-config.xml
========================

    <action-mappings   >
        <action
            attribute= "loginform "
            input= "/form/login.jsp "
            name= "loginform "
            path= "/login "
            scope= "request "
            type= "com.ssh.struts.action.loginaction "
            validate= "false ">
            <forward   name= "failse "   path= "/form/failse.jsp "   />
            <forward   name= "success "   path= "/form/success.jsp "   />
        </action>

    </action-mappings>

找不到错啊...
发表于:2007-05-09 15:19:381楼 得分:0
没人么....   顶顶!!
发表于:2007-05-09 15:26:472楼 得分:0
path应该为/ssh/login
发表于:2007-05-09 15:49:343楼 得分:0
在jsp页面中 <form   action= "login.do "   method= "post ">
发表于:2007-05-10 10:29:484楼 得分:0
<form   action= "/login.do "   method= "post ">
发表于:2007-05-10 10:30:155楼 得分:0
应该是

<html:form   action= "/login.do ">
</html:form>
发表于:2007-05-10 17:06:166楼 得分:0
该回复于2007-12-28 12:19:13被管理员或版主删除
发表于:2007-05-10 17:38:347楼 得分:0
修改一下提交路径试试   eg:/login


快速检索

最新资讯
热门点击