wood burning stoves 2.0
The moose likes JSP and the fly likes beans in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "beans in jsp" Watch "beans in jsp" New topic

beans in jsp

daya mukiri

Joined: Nov 02, 2005
Posts: 7
hi friends,
how to access a bean's instance created in a jsp page from another jsp page?
is it possible.
let me know
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Yes. To do this, you would bind your bean to one of the various scoped objects and then retrieve the bean from the other JSP/Servlet.
To understand this better, you should read up on the following scoped objects.
  • request
  • session
  • context

  • Any book or tutorial on Servlets/JSP worth it's salt will cover this topic in detail.

    Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
    Vishnu Prakash
    Ranch Hand

    Joined: Nov 15, 2004
    Posts: 1026
    Take a look at the JSP Collections in my signature. It will help you.

    Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
    daya mukiri

    Joined: Nov 02, 2005
    Posts: 7
    thanks friends
    I agree. Here's the link: http://aspose.com/file-tools
    subject: beans in jsp
    It's not a secret anymore!