问答详情
源自:5-6 setProperty

提交后跳转就会报错,怎么回事







<body>

   <jsp:useBean id="myUser1"class="com.po.Users" scope="page"/>

    <h1>setPropert动作元素</h1>

    <!--根据表单自动匹配所有的属性  -->

      <jsp:setProperty name="myUser1" property="*"/>

               用户名:<%=myUser1.getUsername()%>

                 密码:<%=myUser1.getPassword() %>


Servlet.service() for servlet [jsp] in context with path [/JavaBeansDemo] threw exception [/dologin.jsp (line: 24, column: 48) The JSP specification requires that an attribute name is preceded by whitespace] with root cause

org.apache.jasper.JasperException: /dologin.jsp (line: 24, column: 48) The JSP specification requires that an attribute name is preceded by whitespace


提问者:慕婉清9354640 2018-06-07 23:45

个回答