This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

set properties in jsp  RSS feed

 
zohreh talebi
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear friends,
I have this exception in jsp page that it used for set properties( user name and password)

my code is :

<body>
<jsp:useBean id="chatter" class="chat.Chatter" scope="request"></jsp:useBean>
<jsp:setProperty name="chatter" property="*" />
<jsp:forward page="/firstLoginServlet"></jsp:forward>
</body>


org.apache.jasper.JasperException: /submit.jsp(27,5) The value for the useBean class attribute chat.Chatter is invalid.
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have a public constructor in your Chatter class ?
The container will try to create a Chatter instance if none is found in the request. So it must have a public constructor.
[ February 23, 2007: Message edited by: Satou kurinosuke ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!