logo       

jsp includes jython servlet problem: msg#00004

lang.jython.user

Subject: jsp includes jython servlet problem

hello,
i have a problem with a jsp page that includes a jython servlet:

excerpt of jsp page:

<!-- standard jsp page until here -->
<p>before</p>
<jsp:include page="show.py" flush="true">
<jsp:param name="alias" value="see"/>
</jsp:include>
<p>after</p>

output will stop with "before</p>" if the doGet() Method in the servlet starts
doing anything useful:

excerpts of jython servlet:

#works but useless of course
def doGet(self, req, res):
print 1

#does not work
def doGet(self, req, res):
out = res.outputStream
print >> out, "hi there"

even a simple "print >> out" will stop the jsp page to do anything further. a
"print 1" to standard out (commandline) will work but is totally useless of
course.

i was thinking this might be an issue with the jython class loader?
is there a solution?
workaround would be to put all stuff into the servlet (complete html) but that
would be really ugly.
just to complete my intention, the servlet does an xsl transformation and the
jsp should include the resulting xhtml.

thanks for any ideas!
chris


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise