Bug 21204 - jsp file with format tag not compiling correctly
Summary: jsp file with format tag not compiling correctly
Alias: None
Product: Taglibs
Classification: Unclassified
Component: DateTime Taglib (show other bugs)
Version: 1.0.1
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2003-06-30 21:27 UTC by David Gilon
Modified: 2005-03-20 17:06 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description David Gilon 2003-06-30 21:27:43 UTC
The following JSP code is not being compiled correctly by the Tomcat 

I am using Jbuilder8 enterprise with Tomcat4 and Struts 1.1

My jsp file contains the following scriptlet similar to the following (I have 
substituted so that it is generic):

<dt:format pattern="<%=new String('some method or variable call')%>"> 

When the JSP servlet gets built, the scriplet is not compiled into java code 
but is left as a full string inside the servlet java code "<%=new String('some 
method or variable call')%>"

_jspx_th_dt_format_1.setPattern("<%=new String('some method or variable call')%

Where as the desired result would be the following compilation:

_jspx_th_dt_format_1.setPattern(new String('some method or variable call'));
Comment 1 Felipe Leme 2004-03-02 04:42:47 UTC

The pattern attribute of fornat's tag does not accept RT (request time)
expressions, so the compilation is fine.

You can open a new bug requesting RT support for that attribute though.

-- Felipe