You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jean-Marie Pitre <jm...@cofisun.com> on 2006/08/17 17:16:45 UTC

RE : Page contentType

Thanks, my application is struts based.

-----Message d'origine-----
De : Monkeyden [mailto:monkeyden@gmail.com] 
Envoyé : jeudi 17 août 2006 17:08
À : Struts Users Mailing List
Objet : Re: Page contentType

Sure, flatter us so we don't notice you're breaking a rule.

Is it a straight JSP application or do you have a controller?

On 8/17/06, Jean-Marie Pitre <jm...@cofisun.com> wrote:
>
>
> Hi,
>
> Excuse-me, I know it is not the right forum to ask this question but
> there are the best developper registered on this mailing list ... ;-)
>
> My web application has to use 2 differents content type according to
> user language.
> I would like to change dynamically the <%@page contentType=
> "text/html;charset=windows-1250" language= "java" pageEncoding=
> "windows-1250"%> declaration.
>
> Have you got an idea ?
>
> Thanks,
> Regards Jean-Marie.
>
>
> -------------------
> Email Disclaimer
> http://www.cofidis.be/emaildisclaimer.php
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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


Re: RE : Page contentType

Posted by Monkeyden <mo...@gmail.com>.
So ignore it in the JSP and set the HTTP Header conditionally in the
Action.  You have the response object available.  The ultimate goal, after
all, is for the JSP to be a passive actor.  The generated JSPs make no
assumptions about content type, so it will be whatever you say it is.

On 8/17/06, Jean-Marie Pitre <jm...@cofisun.com> wrote:
>
>
> Thanks, my application is struts based.
>
> -----Message d'origine-----
> De: Monkeyden [mailto:monkeyden@gmail.com]
> Envoyé: jeudi 17 août 2006 17:08
> À: Struts Users Mailing List
> Objet: Re: Page contentType
>
> Sure, flatter us so we don't notice you're breaking a rule.
>
> Is it a straight JSP application or do you have a controller?
>
> On 8/17/06, Jean-Marie Pitre <jm...@cofisun.com> wrote:
> >
> >
> > Hi,
> >
> > Excuse-me, I know it is not the right forum to ask this question but
> > there are the best developper registered on this mailing list ... ;-)
> >
> > My web application has to use 2 differents content type according to
> > user language.
> > I would like to change dynamically the <%@page contentType=
> > "text/html;charset=windows-1250" language= "java" pageEncoding=
> > "windows-1250"%> declaration.
> >
> > Have you got an idea ?
> >
> > Thanks,
> > Regards Jean-Marie.
> >
> >
> > -------------------
> > Email Disclaimer
> > http://www.cofidis.be/emaildisclaimer.php
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>