org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 2522: </head>
23:   
24: <body>
25: <s:form action="Login.action">
26: <s:password name="user.Uname" label="密码"></s:password>
27: <s:submit></s:submit>
28: </s:form>

解决方案 »

  1.   

    <%@taglib prefix="s" uri="/struts-tags"%>这个有加吗
      

  2.   

    <s:form action="Login.action">
    加上method="post"
    <s:form action="Login.action" method="post">
    试试看
      

  3.   

    1.action里面有没有user这个属性
    2.user有没有提供getter和setter
    3.user的属性是大写还是小写
      

  4.   

    <s:form action="">改成这样试下
      

  5.   

    引用 3 楼 chenjl_mail 的回复:
    <s:form action="Login.action">
    加上method="post"
    <s:form action="Login.action" method="post">
    试试看
      

  6.   

    <s:submit></s:submit>
    有你这么写的么   
      

  7.   

    我的代码: 
       <s:form action="findUserById">   
            <s:textfield name="u.id" label="id"/>   
            <s:submit/>   
        </s:form> 
    --------------
    不加 .action ,试试
      

  8.   

    在你的from中的user对象实例化一下,也就是new一下,这样就行了。
      

  9.   

    不好意思,你用的是struts2的,上面纠正下,你在你的方法里面有没有给它get set方法呢?你要把user这个对象用get set方法。good luck
      

  10.   

     你的这个问题,是在运行的时候报的错误吗?看上去没有什么错误,看你的struts.xml配置和bean类中式怎么写的了。仔细看看,要淡定。
      

  11.   

    吧.action去掉试试,可能这是struts2的规则,bean需要有setter,getter方法,good luck
      

  12.   

    Login.action
    这个我记得不能写.action