DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31146>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31146

printf will not compile in JSP

           Summary: printf will not compile in JSP
           Product: Tomcat 5
           Version: 5.5.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Servlet & JSP API
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The following statement will not compile in a jsp, but WILL compile in a servlet:

    pw.printf ("%%%02x", 5);

Yields the following error:

The method format(String, Object[]) in the type PrintWriter is not applicable
for the arguments (String, int)

The following will compile but does not follow the J2SE 1.5 spec for printf:

    Integer[] temp = new Integer[1];
    temp[0] = new Integer(5);
    pw.printf ("%%%02x", temp);

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to