Hai,
My jsp page contains following code,
<%@ page language="java" session="true" import =
"test.loginBean" %>
<% jsp:useBean id="login" scope="session"
class="test.loginBean" %>
<jsp:setProperty name="login" property="*" />
when i am tying to execute, it is giving the following error page
Unhandled error! You might want to consider having an error page to
report such errors more gracefully
com.sun.jsp.JspException: setProperty: Bean login not initialized using
useBean.
at com.sun.jsp.compiler.SetPropertyGenerator.generate(Compiled
Code)
at
com.sun.jsp.compiler.Jsp1_0ParseEventListener.generateAll(Compiled Code)
at
com.sun.jsp.compiler.Jsp1_0ParseEventListener.endPageProcessing(Jsp1_0ParseEventListener.java:91)
at com.sun.jsp.compiler.Main.compile(Main.java:193)
at com.sun.jsp.runtime.JspLoader.loadJSP(JspLoader.java:114)
at
com.sun.jsp.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:69)
at
com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:77)
at
com.sun.jsp.runtime.JspServlet.serviceJspFile(JspServlet.java:125)
at com.sun.jsp.runtime.JspServlet.service(JspServlet.java:152)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
at
com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:140)
at com.sun.web.core.Context.handleRequest(Context.java:382)
at com.sun.web.server.ConnectionHandler.run(Compiled Code)
can, anybody tell me why bean is not initialized and provide the
solution to above.
regards,
sudhakar.
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
For JSP FAQ, http://www.esperanto.org.nz/jsp/jspfaq.html