Re: Sitemesh and jspx (JSP Documents)

Marcel Overdijk <[email protected]> Tue, 22 Dec 2009 00:02:54 -0800 (PST)
Newsgroups gmane.comp.web.sitemesh.general
Message-ID <[email protected]>
Thanks Joe,

It was the content type! Because I was using JSP Documents xml content type
was returned and not html.
I changed the output to html using jsp directive for my pages and everything
gets decorated.

Thanks again,
Marcel


Joe Walnes-3 wrote:
> 
> Do .jspx pages use the same content-type as .jsp pages? Look at the
> headers
> returned to verify.
> 
> If they use a different content-type, you may need to update
> WEB-INF/sitemesh.xml. If you don't have this file, you can copy
> sitemesh-default.xml from inside the sitemesh Jar.
> 
> thanks
> -Joe
> 
> On Mon, Dec 21, 2009 at 3:15 PM, Marcel Overdijk
> <[email protected]>wrote:
> 
>>
>> The only place I have changed .jsp to .jspx is in decorators.xml to point
>> to
>> jspx decorator.
>> And in spring mvc config to suffix logical view names with .jspx instead
>> of
>> .jsp.
>>
>> When I change both back to jsp my app works decorated...
>>
>> To bad sitemesh has no logging at all. Makes it difficult to pinpoint the
>> problem.
>>
>>
>> Scott Farquhar wrote:
>> >
>> > Marcel,
>> >
>> > Sitemesh supports jspx, html, and any other html generating method.
>> > Check what paths the sitemesh filter is configured in your web.xml.
>> >
>> > Cheers,
>> > Scott
>> >
>> > 2009/12/22 Marcel Overdijk <[email protected]>:
>> >>
>> >> I'm transforming a little project with just a couple jsp pages to jspx
>> >> "document" pages.
>> >>
>> >> The application uses sitemesh for decorating, but after changing the
>> >> pages
>> >> to jspx style the pages aren't decorated anymore.
>> >>
>> >> Does sitemesh support jspx?
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://old.nabble.com/Sitemesh-and-jspx-%28JSP-Documents%29-tp26875203p26875203.html
>> >> Sent from the OpenSymphony - SiteMesh mailing list archive at
>> Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> 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]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Sitemesh-and-jspx-%28JSP-Documents%29-tp26875203p26880185.html
>> Sent from the OpenSymphony - SiteMesh mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
> 
> 

-- 
View this message in context: http://old.nabble.com/Sitemesh-and-jspx-%28JSP-Documents%29-tp26875203p26885032.html
Sent from the OpenSymphony - SiteMesh mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]