<jsp:setProperty name=”student” property=”classno” value=”56789” />
<jsp:setProperty name=”student” property=”name” value=”bbbb” />
<jsp:setProperty name=”student” property=”age” value=”33” />等价:<% student.age=33;%>

两者可以完成useBean 中的完值和取值操作:

<jsp:getProperty name=”student” property=”classno” />等价:<%=student.classno %>
<jsp:getProperty name=”student” property=”name” />
<jsp:getProperty name=”student” property=”age” />

相关文章:

  • 2022-12-23
  • 2021-10-22
  • 2022-12-23
  • 2022-12-23
  • 2021-08-28
  • 2022-12-23
  • 2022-12-23
  • 2021-07-14
猜你喜欢
  • 2022-12-23
  • 2021-12-22
  • 2021-06-06
  • 2021-11-15
  • 2021-12-20
  • 2021-08-20
  • 2021-04-21
相关资源
相似解决方案