Hi Anders, First complete the tag library and then use jsp:include.
<util:sendMail from="[EMAIL PROTECTED]" to="[EMAIL PROTECTED]" subject="testmail"> </util:sendMail> <jsp:include page="/templates/smalltext.txt" /> thanks, Prasanth >From: Anders Callertun <[EMAIL PROTECTED]> >Reply-To: Orion-Interest <[EMAIL PROTECTED]> >To: Orion-Interest <[EMAIL PROTECTED]> >Subject: Taglib + jsp:include + sendRedirect does not work? >Date: Tue, 2 Apr 2002 17:31:34 +0200 > >The following jsp-file generates this Exception: > >java.lang.IllegalStateException: Response has already been committed, be >sure not to write to the OutputStream or to trigger a commit due to any >other action before calling this method. > >------------test.jsp-------------- ><%@taglib uri="utiltags" prefix="util" %> > ><util:sendMail > from="[EMAIL PROTECTED]" > to="[EMAIL PROTECTED]" > subject="testmail"> > <jsp:include page="/templates/smalltext.txt" /> ></util:sendMail> > ><% >response.sendRedirect("http://www.google.com/"); >%> >---------------------------------- > >If I instead of the jsp:include tag, inserts the textfile in the >jsp-page, it works. I've tried other taglibs and used a jsp:include >for the body, for both Orion 1.5.2 and 1.5.3 and I get the same error. > >Am I doing something wrong? Is it Orion? Or is this not a valid thing to >do? > > >Thanks, > >Anders > _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com