Hi,
Actually the hang occurs in generating the code. When it does generate
the code for shorter statements the EL is just a string so that
shouldn't affect the compilation of the .java file anyways.
Eric
On Oct 19, 2004, at 1:51 AM, Bernhard Slominski wrote:
> Hi Eric,
>
> did you check the generated code?
> Maybe from the code you see what might be the problem.
>
> Another possible solution is wrting your own EL function which
> replaces the
> nested calls.
>
> Cheers
>
> Bernhard
>
> -----Ursprüngliche Nachricht-----
> Von: Eric Blenkush [mailto:eric@(protected)]
> Gesendet: Dienstag, 19. Oktober 2004 08:27
> An: tomcat-user@(protected)
> Betreff: JSP compile hangs
>
>
> Hi,
>
> On Tomcat 5.5.2 I am experiencing very long compile times(and hangs)
> for certain JSP pages. The page has an EL expression like this:
>
> ${fn:toUpperCase((fn:toUpperCase((fn:toUpperCase((fn:toUpperCase((fn:
> toUpperCase((fn:toUpperCase((fn:toUpperCase((fn:toUpperCase((fn:
> toUpperCase((fn:toUpperCase((fn:toUpperCase((fn:toUpperCase((fn:
> toUpperCase((fn:toUpperCase((fn:toUpperCase((fn:
> toUpperCase(('b'))))))))))))))))))))))))))))))))))))}
>
> If you remove the extraneous parenthesis it will compile and execute
> very quickly. However, if you add more nested calls to fn:toUpperCase
> compiling will again take a very long time. So, this may be related to
> the number of nested expressions. This is just a test case obviously
> but I am generating JSPs automatically and it is difficult if not
> impossible to avoid EL statements with these nested function calls.
> Resin can compile and execute these pages with ease but I want to stick
> with Tomcat.
>
> Anyone know why this is so slow and how to fix it?
>
> Thanks,
> Eric Blenkush
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
> For additional commands, e-mail: tomcat-user-help@(protected)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
> For additional commands, e-mail: tomcat-user-help@(protected)
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)