You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ashish Kulkarni <as...@gmail.com> on 2008/03/28 21:54:31 UTC

Compile error in JSP after upgrading from servlet specification 2.3 to 2.4

Hi
I get compile error in jsp at line
<c:if test="${loginForm.map.singlesignon == '1'}">

I jsut upgraded web.xml from 2.3 to 2.4, i added following lines in web.xml

<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

Re: Compile error in JSP after upgrading from servlet specification 2.3 to 2.4

Posted by Antonio Petrelli <an...@gmail.com>.
2008/3/31, Ashish Kulkarni <as...@gmail.com>:
>
> org.apache.jasper.JasperException: /pages/index.jsp(125,15) According to
> TLD
> or attribute directive in tag file, attribute test does not accept any
> expressions



You have to import the "c_rt.tld" file, not the "c.tld".

Antonio

Re: Compile error in JSP after upgrading from servlet specification 2.3 to 2.4

Posted by Ashish Kulkarni <as...@gmail.com>.
Hi
That is all i did, upgraded web.xml to servlet specification 2.4
and tried start the project, i get following jsp compile error
The code at line 125 is
<c:if test="${loginForm.map.singlesignon == '1'}">

and the error i get is


org.apache.jasper.JasperException: /pages/index.jsp(125,15) According to TLD
or attribute directive in tag file, attribute test does not accept any
expressions
org.apache.jasper.servlet.JspServletWrapper.handleJspException(
JspServletWrapper.java:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java
:1054)
org.apache.struts.action.RequestProcessor.processForwardConfig(
RequestProcessor.java:386)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1192)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:412)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java
:1054)
org.apache.struts.action.RequestProcessor.processForwardConfig(
RequestProcessor.java:386)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1192)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:412)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.pfizer.maps.servlet.ApprovalsValidFilter.doFilter(
ApprovalsValidFilter.java:90)





On 3/28/08, Laurie Harper <la...@holoweb.net> wrote:
>
> Ashish Kulkarni wrote:
> > Hi
> > I get compile error in jsp at line
> > <c:if test="${loginForm.map.singlesignon == '1'}">
>
>
> There's nothing wrong with that line. What is the full error you're
> getting? What do the surrounding lines of your JSP look like?
>
>
> > I jsut upgraded web.xml from 2.3 to 2.4, i added following lines in
> web.xml
> >
>
> > [...]
>
> Are you sure that's the *only* thing you changed between the JSP
> compiling OK and getting an error? That seems kinda odd...
>
> L.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: Compile error in JSP after upgrading from servlet specification 2.3 to 2.4

Posted by Laurie Harper <la...@holoweb.net>.
Ashish Kulkarni wrote:
> Hi
> I get compile error in jsp at line
> <c:if test="${loginForm.map.singlesignon == '1'}">

There's nothing wrong with that line. What is the full error you're 
getting? What do the surrounding lines of your JSP look like?

> I jsut upgraded web.xml from 2.3 to 2.4, i added following lines in web.xml
> 
> [...]

Are you sure that's the *only* thing you changed between the JSP 
compiling OK and getting an error? That seems kinda odd...

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org