Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

beans in jsp

 
daya mukiri
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
     
    Vishnu Prakash
    Ranch Hand
    Posts: 1026
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Take a look at the JSP Collections in my signature. It will help you.
     
    daya mukiri
    Greenhorn
    Posts: 7
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    thanks friends
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic