On Thursday 11 July 2002 11:51, you wrote:
> Do you use static or dynamic includes ?

Acording the specification an include directive (<%@ include file=... %>) 
regards a resource like a jsp page as a static object; the bytes in the jsp 
page are included. And an include action (<jsp: include page= /> regards a 
resource like a jsp page as a dynamic object; the request is sent to thet 
object and the result of processing it is included.

Obviously I use include directive that regards a resource like a jsp page as 
a static object because now I have:

page A.jsp
<%@ page contentType="text/html;charset=Windows-1251" %>
<%@ include file="conf/B.jsp" %>

and before I had 
page A.jsp
<%@ include file="conf/B.jsp" %>

and in B.jsp
<%@ page contentType="text/html;charset=Windows-1251" %>

>
> According to the spec it's not allowed to modify the response
> in an dynamically included jsp.
>
> One option to avoid the setting in all top level jsp's
> would be to write a filter that sets the encoding in the
> response.

What are this filters? Are there any document that describes the technology 
of creating such filters?


>
> > -----Urspr�ngliche Nachricht-----
> > Von: Irina Lishchenko [mailto:[EMAIL PROTECTED]]
> > Gesendet: Donnerstag, 11. Juli 2002 11:45
> > An: Tomcat Users List
> > Betreff: Re: Regarding charset
> >
> >
> > I have reviewed one more time my application with encoding.
> > Earlier when I
> > was running apache with jserv (jserv runs with ojsp compiler)
> > I had one
> > include wich was common for all my jsp pages in my
> > application and that was
> > usually included somewhere in the beginning of my jsp pages.
> > I was convinient
> > because if I want for example to change one cyrrilic encoding
> > to another one
> > it is enough to change it one time in the included file, then
> > touch *.jsp and
> > changes appear everywhere in all jsp pages.
> > But obviously it does not work the same in the apache &
> > tomcat configuration.
> > I was forced to put encoding dirrective as a first statement
> > in all my
> > primary jsp pages in order to make cyrrilic be shown properly.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to