You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by jakarta-pipon <ja...@interlap.com.ar> on 2003/04/04 21:02:11 UTC

sendRedirect using

i'd like to add some http headers, common  for all pages, so i put them
inside a headers.jsp, included with <jsp:include page...>.
but by this way it does not put any http header.
the java generated file for the jsp put

            // HTML // begin [file="/areas.jsp";from=(0,58);to=(1,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/areas.jsp";from=(1,31);to=(2,0)]
                out.write("\r\n");
and after those \r\n (finnishing the http headers) begins the code for
header.jsp
so how can i append http headers for the common behavior in all jsps?



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: sendRedirect using

Posted by Bill Barker <wb...@wilshire.com>.
The JSP-spec forbids <jsp:include> pages from changing headers, so Tomcat is
working as expected :-).  Probably the simplest way to do what you want is
to change the <jsp:include> directives to <%...@include> directives.

"jakarta-pipon" <ja...@interlap.com.ar> wrote in message
news:00a001c2fadc$b2ff9a80$fe0101c0@wsta02...
> i'd like to add some http headers, common  for all pages, so i put them
> inside a headers.jsp, included with <jsp:include page...>.
> but by this way it does not put any http header.
> the java generated file for the jsp put
>
>             // HTML // begin [file="/areas.jsp";from=(0,58);to=(1,0)]
>                 out.write("\r\n");
>
>             // end
>             // HTML // begin [file="/areas.jsp";from=(1,31);to=(2,0)]
>                 out.write("\r\n");
> and after those \r\n (finnishing the http headers) begins the code for
> header.jsp
> so how can i append http headers for the common behavior in all jsps?




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org