Bug 21204

Summary: jsp file with format tag not compiling correctly
Product: Taglibs Reporter: David Gilon <dgilon>
Component: DateTime TaglibAssignee: Tomcat Developers Mailing List <dev>
Severity: normal    
Priority: P3    
Version: 1.0.1   
Target Milestone: ---   
Hardware: PC   
OS: All   

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