慕婉清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
还没有人回答问题,可以看看其他问题
JAVA遇见HTML——JSP篇
248277 学习 · 3071 问题
相似问题