Hi, I figured out what was going wrong.
My "web.xml" looked like this: -------------------------------------------------------------- <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd" > <web-app> .... </web-app> -------------------------------------------------------------- I had to enable EL(Expression Language) by changing it to the below code: -------------------------------------------------------------- <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> ... </web-app> -------------------------------------------------------------- Note that the "<!DOCTYPE" code before <web-app> has to be removed. I took the help of the below link to do so. http://www.coderanch.com/how-to/java/ServletsWebXml hope this helps to others who face the same problem that I was facing. Thank you list for helping me to understand the problem. Now the code in the struts2 tutorial works fine. -- Mahesh On 6 January 2012 01:37, Gabriel Belingueres <belingue...@gmail.com> wrote: > I would search for <el-ignored> tags in your webapp's web.xml and > tomcat's web.xml, and get rid of them. > > 2012/1/5 Łukasz Lenart <lukasz.len...@googlemail.com>: >> 2012/1/5 Dave Newton <davelnew...@gmail.com>: >>> I might be wrong anyway, misread the post on my phone; not sure a var can >>> be read through plain JSP EL like that-don't recall. >> >> As I remember it should work. Both notations should be supported ${} and %{} >> >> >> Regards >> -- >> Łukasz >> + 48 606 323 122 http://www.lenart.org.pl/ >> Warszawa JUG conference - Confitura http://confitura.pl/ >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org