File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Using EL Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Using EL" Watch "Using EL" New topic
Author

Using EL

P Lavti
Ranch Hand

Joined: Mar 27, 2007
Posts: 65
Hi All,

I am learning writing EL and the first step I did was printing one of EL implicit variable ${pageContext.request.requestURI}.

My JSP page looks like:



And the output is:
Request URI: ${pageContext.request.requestURI}

Please let me know why is it not evaluating the EL expression.

Thanks!


-P Lavti<br />SCJP 5.0 (88%)
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1318

have you done you configuration.. If not then read EL Not Working As Expected before doing it.


Saifuddin..
[Linkedin] How To Ask Questions On JavaRanch My OpenSource
P Lavti
Ranch Hand

Joined: Mar 27, 2007
Posts: 65
I am using Jboss-4.0.4 server. And I have copied below jar files in server/default/lib

jstl.jar version 1.1.2
standard.jar
commons-el-1.0.jar

Please let me know if I am missing smoething.

Thanks!
P Lavti
Ranch Hand

Joined: Mar 27, 2007
Posts: 65
I just studied HFSJ and its written there that each application needs to have jstl.jar in its WEB-INF/lib.

I also removed it from jboss-home/server/default/lib and copied it in WEB-INF/lib, But still its not working
P Lavti
Ranch Hand

Joined: Mar 27, 2007
Posts: 65
Got it finally!!!

The version was wrong(2.5) in web.xml for web-app tag

Thanks for the help. ServletsWebXml helped in finding out the reason.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using EL
 
Similar Threads
Disabling the Back button of the browser
Clarification on EL syntax
Expression Language does not work
Passing values to param value dynamically in jsp
JSLT EL display session attribute