File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
RabbitMQ in Depth
this week in the
JSP out.write vs out.print
Joined: Aug 06, 2004
Jun 01, 2008 06:40:00
The translation of
file shows that all the expressions are transformed to out.print() method while all the HTML template text is written using out.write() . Why so ? Any inputs ?
[ June 01, 2008: Message edited by: SIM KIM ]
Joined: Jul 06, 2005
Jun 02, 2008 22:40:00
Take a look at the relevant APIs.
What do you think the type of a rtexpr would be?
What do you think the type of "template text" would be?
Based on this knowledge which calls in the API would you use?
There is a method print(Object). There is no method write(Object)
) exists however.
I agree. Here's the link:
subject: JSP out.write vs out.print
Resin doesn't compile JSP properly while Tomcat does
Conversion of JSP into Servlet
include file directive, how the included jsp file is built?
How to out.print in a JSP function..
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015