This week's book giveaway is in the
Agile and other Processes
forum.
We're giving away four copies of
The Mikado Method
and have Ola Ellnestam and Daniel Brolund on-line!
See
this thread
for details.
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
JSP
Author
Tomcat's difficulty in evaluating an EL expression
mara thamizhan
Ranch Hand
Joined: Jul 05, 2006
Posts: 74
posted
Apr 02, 2008 22:48:00
0
Dear dudes,
My
tomcat
5.5 container is not able to evaluate the EL expression
S{person.name}
It simply presents ${person.name} as response
I have a bean named Person which has a property name:
public class Person { private String name; public String getName() { return name; } public void setName(String name) { this.name=name; } In my servlet i'm creating a instance of this Person and setting attribute at request scope. void doPost(req,res) throws... { Person person=new Person(); person.setName("eklavya"); request.setAttribute("person",person); RequestDispatcher view = request.getRequestDispatcher("result.jsp"); view.forward(request,response); } "result.jsp" <html> <body> My name is: ${person.name} </body> </html>
This EL expression is not evaluated by the container.
I want the output to be :
My name is eklavya
Any help in this regard will be appreciated.
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56185
13
I like...
posted
Apr 02, 2008 23:23:00
0
Setting up your web app properly for the EL is covered in the
JSP
FAQ.
[
Smart Questions
] [
JSP FAQ
] [
Books by Bear
] [
Bear's FrontMan
] [
About Bear
]
I agree. Here's the link:
http://aspose.com/file-tools
subject: Tomcat's difficulty in evaluating an EL expression
Similar Threads
getProperty question
JSP - cannot resolve symbol
Why tomcat act like it error?
EL Expressions
Problem regarding to Cookies with EL, HFSJ pg 386
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter