[Webwork-user] Mozilla
Brought to you by:
baldree,
rickardoberg
From: Maurice C . P. <Ma...@Vi...> - 2000-11-28 20:14:25
|
I was trying out the new 0.3 release this morning using a nightly Mozilla build on Linux and hit a little snag. The Helloworld view didn't render in the browser, instead the raw HTML was displayed. Since I was using a recent nightly build this will probably impact NS 6.0. This change to the Dispatcher fixed the problem: Index: Dispatcher.java =================================================================== RCS file: /cvsroot/webwork/webwork/src/main/webwork/servlets/Dispatcher.java,v retrieving revision 1.2 diff -u -r1.2 Dispatcher.java --- Dispatcher.java 2000/11/28 15:27:39 1.2 +++ Dispatcher.java 2000/11/28 20:11:58 @@ -157,6 +157,9 @@ public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException { + + response.setContentType("text/html"); + if (debug) { Enumeration enum = request.getAttributeNames(); I think that this will be OK as long as only HTML the desired output from the Dispatcher. Later, Maurice |