You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by dl...@apache.org on 2003/10/23 18:13:28 UTC
cvs commit: jakarta-velocity/src/java/org/apache/velocity/servlet VelocityServlet.java
dlr 2003/10/23 09:13:28
Modified: src/java/org/apache/velocity/servlet VelocityServlet.java
Log:
* src/java/org/apache/velocity/servlet/VelocityServlet.java
Deprecated this class in favor of
org.apache.velocity.tools.view.servlet.VelocityViewServlet. Servlet
interaction is not a core competency of Velocity's core package, and
the VelocityViewServlet servlet does a very good job of expanding
the possible usage.
setContentType(): Tweaked some commented-out code from println() to
log statements.
Revision Changes Path
1.53 +7 -5 jakarta-velocity/src/java/org/apache/velocity/servlet/VelocityServlet.java
Index: VelocityServlet.java
===================================================================
RCS file: /home/cvs/jakarta-velocity/src/java/org/apache/velocity/servlet/VelocityServlet.java,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -u -r1.52 -r1.53
--- VelocityServlet.java 31 Aug 2003 21:26:52 -0000 1.52
+++ VelocityServlet.java 23 Oct 2003 16:13:28 -0000 1.53
@@ -283,6 +283,8 @@
* to initialize the Velocity runtime.
* @throws FileNotFoundException if a specified file is not found.
* @throws IOException I/O problem accessing the specified file, if specified.
+ * @deprecated Use VelocityViewServlet from the Velocity Tools
+ * library instead.
*/
protected Properties loadConfiguration(ServletConfig config)
throws IOException, FileNotFoundException
@@ -526,16 +528,16 @@
{
// Append the character encoding which we'd like to use.
String encoding = chooseCharacterEncoding(request);
- //System.out.println("Chose output encoding of '" +
- // encoding + '\'');
+ //RuntimeSingleton.debug("Chose output encoding of '" +
+ // encoding + '\'');
if (!DEFAULT_OUTPUT_ENCODING.equalsIgnoreCase(encoding))
{
contentType += "; charset=" + encoding;
}
}
response.setContentType(contentType);
- //System.out.println("Response Content-Type set to '" +
- // contentType + '\'');
+ //RuntimeSingleton.debug("Response Content-Type set to '" +
+ // contentType + '\'');
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org