From: Finn B. <bc...@us...> - 2001-03-14 14:29:57
|
Update of /cvsroot/jython/jython/org/python/util In directory usw-pr-cvs1:/tmp/cvs-serv9390 Modified Files: PyServlet.java Log Message: Made the javadoc a little more usefull. Index: PyServlet.java =================================================================== RCS file: /cvsroot/jython/jython/org/python/util/PyServlet.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** PyServlet.java 2001/03/13 20:25:46 1.8 --- PyServlet.java 2001/03/14 14:31:57 1.9 *************** *** 13,33 **** * bytecode for JPython servlets and re-uses it if the underlying .py * file has not changed. ! * * Many people have been involved with this class: ! * ! * Chris Gokey ! * David Syer ! * Finn Bock ! * * If somebody is missing from this list, let us know. * - * - * <pre> - * * e.g. http://localhost:8080/test/hello.py * * from javax.servlet.http import HttpServlet * class hello(HttpServlet): ! * def doGet(self,req, res): * res.setContentType("text/html"); * out = res.getOutputStream() --- 13,32 ---- * bytecode for JPython servlets and re-uses it if the underlying .py * file has not changed. ! * <p> * Many people have been involved with this class: ! * <ul> ! * <li>Chris Gokey ! * <li>David Syer ! * <li>Finn Bock ! * </ul> * If somebody is missing from this list, let us know. + * <p> * * e.g. http://localhost:8080/test/hello.py + * <pre> * * from javax.servlet.http import HttpServlet * class hello(HttpServlet): ! * def doGet(self, req, res): * res.setContentType("text/html"); * out = res.getOutputStream() *************** *** 39,59 **** * out.close() * return * * in web.xml for the PyServlet context: ! * ! * <web-app> ! * <servlet> ! * <servlet-name>PyServlet</servlet-name> ! * <servlet-class>org.python.util.PyServlet</servlet-class> ! * <init-param> ! * <param-name>python.home</param-name> ! * <param-value>/usr/home/jython-2.0</param-value> ! * </init-param> ! * </servlet> ! * <servlet-mapping> ! * <servlet-name>PyServlet</servlet-name> ! * <url-pattern>*.py</url-pattern> ! * </servlet-mapping> ! * </web-app> * * </pre> --- 38,59 ---- * out.close() * return + * </pre> * * in web.xml for the PyServlet context: ! * <pre> ! * <web-app> ! * <servlet> ! * <servlet-name>PyServlet</servlet-name> ! * <servlet-class>org.python.util.PyServlet</servlet-class> ! * <init-param> ! * <param-name>python.home</param-name> ! * <param-value>/usr/home/jython-2.1</param-value> ! * </init-param> ! * </servlet> ! * <servlet-mapping> ! * <servlet-name>PyServlet</servlet-name> ! * <url-pattern>*.py</url-pattern> ! * </servlet-mapping> ! * </web-app> * * </pre> |