• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problems with EL in jsp and java bean

 
Ranch Hand
Posts: 2066
IntelliJ IDE Clojure Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a bean named book(class name bean.Book), and I want to accessed that bean in a servlet(named accessedBean), and viewed them in a jsp with El. But I couldn't get the book bean which I attached to request object. Below the coding...

This is my accessedBean servlet.



This is my viewDetails jsp.


When I run this jsp, I got null book. Could anybody spot the problem? Thanks.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are not using the EL.

Get rid of the useBean and getProperty tags and use the EL.
 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
IntelliJ IDE Clojure Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:You are not using the EL.



Yea, This is Actions, sorry...

Bear Bibeault wrote:
Get rid of the useBean and getProperty tags and use the EL.


But could you please spot the problem here. I'm learning, so need to know all, Actions, El, scriptlets, etc... Thanks...
reply
    Bookmark Topic Watch Topic
  • New Topic