You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Anup Aggarwal <co...@gmail.com> on 2015/01/13 22:11:52 UTC

question on EL Lambda expression in a JSP on Tomcat 8_0_15

Hi,

I am trying to run this EL Lambda expression in a JSP on Tomcat 8_0_15

${(incr = x->x+1; incr(10)}

But I get this exception

org.apache.jasper.JasperException: /TestLambda.jsp (line: 44, column: 42)
The function incr must be used with a prefix when a default namespace is
not specified

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42)



Thanks and help will be appreciated to resolve this.

Re: question on EL Lambda expression in a JSP on Tomcat 8_0_15

Posted by Anup Aggarwal <co...@gmail.com>.
No that is not the issue, that was my typing mistake

${incr = x->x+1; incr(10)}

throws same

*message* */TestLambda.jsp (line: 59, column: 42) The function incr must be
used with a prefix when a default namespace is not specified*

*description* *The server encountered an internal error that prevented it
from fulfilling this request.*

*exception*

org.apache.jasper.JasperException: /TestLambda.jsp (line: 59, column:
42) The function incr must be used with a prefix when a default
namespace is not specified
	org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42)




On Tue, Jan 13, 2015 at 4:34 PM, Daniel Mikusa <dm...@pivotal.io> wrote:

> On Tue, Jan 13, 2015 at 4:11 PM, Anup Aggarwal <co...@gmail.com>
> wrote:
>
> > Hi,
> >
> > I am trying to run this EL Lambda expression in a JSP on Tomcat 8_0_15
> >
> > ${(incr = x->x+1; incr(10)}
> >
>
> This could be a typo in your email, but you have an extra "(" at the
> beginning before "incr =".
>
> Dan
>
>
> >
> > But I get this exception
> >
> > org.apache.jasper.JasperException: /TestLambda.jsp (line: 44, column: 42)
> > The function incr must be used with a prefix when a default namespace is
> > not specified
> >
> >
> >
> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42)
> >
> >
> >
> > Thanks and help will be appreciated to resolve this.
> >
>

Re: question on EL Lambda expression in a JSP on Tomcat 8_0_15

Posted by Daniel Mikusa <dm...@pivotal.io>.
On Tue, Jan 13, 2015 at 4:11 PM, Anup Aggarwal <co...@gmail.com>
wrote:

> Hi,
>
> I am trying to run this EL Lambda expression in a JSP on Tomcat 8_0_15
>
> ${(incr = x->x+1; incr(10)}
>

This could be a typo in your email, but you have an extra "(" at the
beginning before "incr =".

Dan


>
> But I get this exception
>
> org.apache.jasper.JasperException: /TestLambda.jsp (line: 44, column: 42)
> The function incr must be used with a prefix when a default namespace is
> not specified
>
>
> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42)
>
>
>
> Thanks and help will be appreciated to resolve this.
>

Re: question on EL Lambda expression in a JSP on Tomcat 8_0_15

Posted by Anup Aggarwal <co...@gmail.com>.
Thanks,
Bug 57441 <https://issues.apache.org/bugzilla/show_bug.cgi?id=57441> if
filed for this issue.

On Tue, Jan 13, 2015 at 5:29 PM, Mark Thomas <ma...@apache.org> wrote:

> On 13/01/2015 21:11, Anup Aggarwal wrote:
> > Hi,
> >
> > I am trying to run this EL Lambda expression in a JSP on Tomcat 8_0_15
> >
> > ${(incr = x->x+1; incr(10)}
> >
> > But I get this exception
> >
> > org.apache.jasper.JasperException: /TestLambda.jsp (line: 44, column: 42)
> > The function incr must be used with a prefix when a default namespace is
> > not specified
> >
> >
> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42)
>
> That looks like a bug in the JSP parser. Please file a Bugzilla issue.
>
> Mark
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: question on EL Lambda expression in a JSP on Tomcat 8_0_15

Posted by Mark Thomas <ma...@apache.org>.
On 13/01/2015 21:11, Anup Aggarwal wrote:
> Hi,
> 
> I am trying to run this EL Lambda expression in a JSP on Tomcat 8_0_15
> 
> ${(incr = x->x+1; incr(10)}
> 
> But I get this exception
> 
> org.apache.jasper.JasperException: /TestLambda.jsp (line: 44, column: 42)
> The function incr must be used with a prefix when a default namespace is
> not specified
> 
> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42)

That looks like a bug in the JSP parser. Please file a Bugzilla issue.

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: question on EL Lambda expression in a JSP on Tomcat 8_0_15

Posted by Konstantin Kolinko <kn...@gmail.com>.
2015-01-14 0:11 GMT+03:00 Anup Aggarwal <co...@gmail.com>:
> Hi,
>
> I am trying to run this EL Lambda expression in a JSP on Tomcat 8_0_15
>
> ${(incr = x->x+1; incr(10)}
>
> But I get this exception
>
> org.apache.jasper.JasperException: /TestLambda.jsp (line: 44, column: 42)
> The function incr must be used with a prefix when a default namespace is
> not specified
>
> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42)
>

An invalid EL. The '(' in '${(' has no pair.


Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org