• Post Reply Bookmark Topic Watch Topic
  • New Topic

[Code] About Jstl's EL

 
Sam Wang
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%
class AClass implements java.io.Serializable{
String msg = "Hello";
public String getMsg(){
return msg;
}
public void setMsg(String s){
msg = s;
}
}
request.setAttribute("AClass",new AClass());
%>
<c ut value="${AClass.msg}" />
[javax.servlet.ServletException: An error occurred while evaluating custom action attribute "value" with value "${AClass.msg}": An error occurred while getting property "msg" from an instance of class org.apache.jsp.jstl_0005ftest$jsp$1$AClass]
Help!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!