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 <[EMAIL PROTECTED]> wrote:
Thanks, my application is struts based. -----Message d'origine----- De: Monkeyden [mailto:[EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED] 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]