Skip to Content
avatar image
Former Member

error on jsp dynpage

hi,

I made a small application. And now I want to show some information of a user in a jsp page.

But I get an error.

This is the code of my jsp

<%@taglib uri= "tagLib" prefix="hbj"%>

<jsp:useBean id="getUserInfoBean" scope="session" class="getUserInfoBean" />

<hbj:content id="myContext">

<hbj:page>

Greetings!

</hbj:page>

</hbj:content>

I Searched for the line giving the error and it's <jsp:useBean...> line that creates the error :s

When I leave this one out it doesn't give the error message?

By the way.. the error message = "Error occurs during the rendering of jsp component"

Hope you can help me.

Greetings

Wouter

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Oct 08, 2007 at 05:47 PM

    Hi,

    U need to specify the full path of the bean class i.e u need to specify the package name with the class name.

    e.g

    Use

    <b>

    <jsp:useBean id="getUserInfoBean" scope="session" class="packagename.getUserInfoBean" /></b>

    instead of

    <b><jsp:useBean id="getUserInfoBean" scope="session" class="getUserInfoBean" /></b>

    Thanks

    Ritushree

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      the getUserInfoBean is in the src.core package...

      So do I have to put src.core.getUserInfoBean?

      Here you can find a picture of my structure

      http://users.telenet.be/wout1/project%20hierarchy.JPG

      Greetz

      Wouter

      EDIT:

      I made a new package called beans and changed class="beans.getUserInfoBean" and now it Works.

      Thank you for the answer.. was helpfull

      Message was edited by:

      Wouter Delellio