softspace and response.writer

View: New views
1 Messages — Rating Filter:   Alert me  

softspace and response.writer

by Marcos Sánchez Provencio-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This is a simple Jython Servlet:
class PruebaAccess(HttpServlet):
    def doGet(self,request,response):
        toClient = response.writer
        toClient.write('hola')

I think it used to be possible to

print >> toClient, 'hola'

but now it complains about no softspace attr

AttributeError: 'org.apache.catalina.connector.CoyoteWriter' object has
no attribute 'softspace'

Is it possible to wrap the writer easily adding this attr?


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jython-users mailing list
Jython-users@...
https://lists.sourceforge.net/lists/listinfo/jython-users