cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ulrich Mayring <u...@denic.de>
Subject Re: Suggestion for Frontend.java
Date Thu, 29 Mar 2001 10:00:03 GMT
Robin Green wrote:
> 
> Ulrich Mayring <ulim@denic.de> wrote:
> >As of 1.8.2 we have this code:
> >
> >public static void print(ServletResponse response, String title, String
> >message) throws IOException {
> >         response.setContentType("text/html");
> >         PrintWriter out = new PrintWriter(response.getWriter());
> >         header(out, 80);
> >         out.println("<h3 align=\"center\">" + title + "</h3>");
> >         if (message != null) out.println("<blockquote><pre>" + message
+
> >"</pre></blockquote>");
> >         footer(out);
> >       }
> >
> >I think it would be useful to introduce an additional try/catch Block
> 
> I've introduced something similar to your suggestion. Check it out.

Looks much better than my idea and seems to work just as well :-)

Thanks,

Ulrich

-- 
Ulrich Mayring
DENIC eG, Systementwicklung

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message