Results 1 to 1 of 1
- 04-10-2011, 01:22 AM #1
Senior Member
- Join Date
- Feb 2009
- Posts
- 117
- Rep Power
- 0
bean declared on a page as scope session not seen on other jsp pages
hi, i am trying to declare a bean that I can use to retrieve values from its propertes
like
//firstPage.jsp
<jsp:useBean name="aBean" class="package.bean" scope="session" />
when i try to access a property of this bean from another page, it gives an error
and it says the bean does not exist
//secondPage.jsp
<jsp:getProperty name="aBean" property="aProperty">
also tried to declare on the first page the tag uptop
page session=true, so what would be the proper way of declaring a bean that I can use on multiple pages on the same session?
any help would be really appreciated! :D
Similar Threads
-
Bean not found in scope
By Drun in forum Web FrameworksReplies: 0Last Post: 01-28-2010, 03:29 PM -
Problem with Session Scope while using with Java Bean
By sulthanmytheen in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 03-27-2009, 10:50 AM -
UREGENT-accessing session bean ok but entity bean
By parimal in forum Enterprise JavaBeans (EJB)Replies: 1Last Post: 08-28-2008, 01:34 PM -
How to define Bean Scope
By Java Tip in forum Java TipReplies: 0Last Post: 03-30-2008, 10:14 AM -
How to define Bean Scope
By JavaBean in forum Java TipReplies: 0Last Post: 09-26-2007, 08:43 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks