Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

usebean is not working with jsp

Posts: 7
MyEclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Posts: 21972
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic