You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Eleonora Bider <eb...@verticalnet.com> on 2001/09/13 11:20:27 UTC

The struts example exception

Hi,
I just tried to start the example that distributed with the struts, and get
the following exception at the mainMenu.jsp:
Thu Sep 13 11:04:17 IST 2001:<I> <WebAppServletContext-struts> resolving
taglib
uri '/WEB-INF/app.tld' to taglib-location /WEB-INF/app.tld:
Thu Sep 13 11:04:18 IST 2001:<I> <WebAppServletContext-struts> resolving
taglib
uri '/WEB-INF/struts-bean.tld' to taglib-location /WEB-INF/struts-bean.tld:
Thu Sep 13 11:04:19 IST 2001:<I> <WebAppServletContext-struts> resolving
taglib
uri '/WEB-INF/struts-html.tld' to taglib-location /WEB-INF/struts-html.tld:
Thu Sep 13 09:35:24 IST 2001:<E> <WebAppServletContext-struts> Servlet
failed with Exception
weblogic.servlet.jsp.JspException: (line 16): user is not defined as bean
        at weblogic.servlet.jsp.JspLexer.jspException(JspLexer.java:673)
        at
weblogic.servlet.jsp.JspLexer.mXML_GET_PROPERTY(JspLexer.java:2994)
        at weblogic.servlet.jsp.JspLexer.mXML_THING(JspLexer.java:1707)
        at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1612)
        at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1548)
        at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:888)
        at weblogic.servlet.jsp.JspParser.doit(JspParser.java:69)
        at weblogic.servlet.jsp.JspParser.parse(JspParser.java:125)
        at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:109)
        at
weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:242
)
        at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:312)
        at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:227)
        at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java:200)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:115)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:138)
        at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
cherImpl.java:158)
        at
org.apache.struts.action.ActionServlet.processActionForward(ActionSer
vlet.java:1758)
        at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:159
5)
        at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:772)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
     ...

It seems that the session has the attribute of type
org.apache.struts.webapp.example.User with key "user" (checked with simple
System.out.println).
Can somebody explain me what wrong with user?

		Eleonora.