Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSP
Search Coderanch
Advance search
Google search
Register / Login
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
Forum:
JSP
Tomcat's difficulty in evaluating an EL expression
mara thamizhan
Ranch Hand
Posts: 74
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Sheriff
Posts: 67746
173
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Setting up your web app properly for the EL is covered in the
JSP
FAQ.
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
Can you hear that? That's my theme music. I don't know where it comes from. Check under this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
getProperty question
Problem regarding to Cookies with EL, HFSJ pg 386
JSP - cannot resolve symbol
Why tomcat act like it error?
EL Expressions
More...