File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes usebean is not working with jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "usebean is not working with jsp" Watch "usebean is not working with jsp" New topic

usebean is not working with jsp

P Malhotra

Joined: Jul 27, 2011
Posts: 7

Hi everyone,

I have a jsp page(index.jsp) and I am setting a property through usebean

If I get the property on the same page its working without any problem but if i get the property on other jsp page its not showing any values

MyJsp.jsp page

and I have a Student class with name address and rollno property and I also created getter setters for the name , address and rollno.
and I also tried the session scope and request but its not working with any scope.

Rob Spoor

Joined: Oct 27, 2005
Posts: 19759

Because they are nested inside the useBean tag, the getProperty tags are only executed if the bean is created by the useBean tag. If it is reused, as is the case for you, they will be skipped. See for more information.

How To Ask Questions How To Answer Questions
I agree. Here's the link:
subject: usebean is not working with jsp