tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leon Palermo" <le...@zedak.com>
Subject Re: JSP spec: completely "stumped" by print(String) and print( Object)
Date Wed, 02 May 2001 11:09:55 GMT
The compiled JSP uses 'out.write("blah blah")' for pure String output and it
uses 'out.print(myobject.getString())' for expressions that return Strings.

> Hi,
>
> I'm stumped.  I have a need to understand why when I compile
> against JspWriter.print(String), I'm getting a compliant
> about "ambiguous reference to print".
>
> This is traceable to the fact that the JspWriter.print()
> methods include one for String and one for Object, which
> is indeed ambiguous for Strings!
>
> (This is for the Sun compiler on windows.)
>
> ...
>
> So how then does a JSP page compile, since surely it has many
> instances of:
>
>      out.print("blah blah").
>
>
> Thanks,
> Andy


Mime
View raw message