tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guido Schoepp <gus-apa...@guxx.net>
Subject Re: ajax response from tomcat by including JSP from a servlet - fails silently when HTML is badly formed.
Date Sun, 04 Jun 2006 10:27:31 GMT
Have you ever tried to treat the HTML as CDATA?

Like that:
out.print("<ajax-response><response type=\"object\"
     id=\"myresponse\"><myresponsedata><![CDATA[");

request.getRequestDispatcher("/jsp/MyJSP.jsp").include(request,
     response);

out.print("]]></myresponsedata></response></ajax-response>");
out.close();

This will not solve your logging problem, but maybe the root cause of 
your troubles ;-)

Guido


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message