• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using EL

 
P Lavti
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
have you done you configuration.. If not then read EL Not Working As Expected before doing it.
 
P Lavti
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic