• Post Reply Bookmark Topic Watch Topic
  • New Topic

problems with EL in jsp and java bean  RSS feed

 
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • 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.
 
Author and ninkuma
Marshal
Posts: 66676
167
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • 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...
 
Today you are you, that is turer than true. There is no one alive who is youer than you! - Seuss. Tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!