This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problems with EL in jsp and java bean

 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • 0
  • 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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • 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
  • 0
  • 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...
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic