[prev in list] [next in list] [prev in thread] [next in thread]
List: struts-user
Subject: Re: Url tag usage in struts2 problem and solution
From: Mahesh <maghii () gmail ! com>
Date: 2012-01-06 3:46:45
Message-ID: CALjGmQcU1ZCi84mq3x4H2ABXBuQwSZH1ixQu4knN-OVAKTA69g () mail ! gmail ! com
[Download RAW message or body]
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 <belingueres@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.lenart@googlemail.com>:
>> 2012/1/5 Dave Newton <davelnewton@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-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic