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

来源:5-6 setProperty

慕婉清9354640

2018-06-07 23:45







<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


写回答 关注

0回答

还没有人回答问题,可以看看其他问题

JAVA遇见HTML——JSP篇

Java Web入门级教程JSP,带你轻松的学习JSP基础知识

248277 学习 · 3071 问题

查看课程

相似问题