How do you have struts mapped in web.xml? If it is mapped to /* no you don't. If it is mapped to *.action, add another mapping for /staticHTML/*
> -----Original Message----- > From: Philipp Leusmann [mailto:philipp.leusm...@rwth-aachen.de] > Sent: Thursday, January 21, 2010 2:42 PM > To: Struts Users Mailing List > Subject: Re: decorating static content with sitemesh > > Hi Brian, > > that would work, but then I'll have to make a call to > "/staticHTML/page.html.action" to access "/staticHTML/page.html". > Would be a workaround, but I still would prefer the call to *.html > > Philipp > > Am 21.01.2010 um 19:18 schrieb Brian Thompson: > > > Can you get the Struts filter to execute for static pages? > It seems like > > that would fix the Dispatcher.getInstance() problem. Something like > > > > <action name="*" class="com.opensymphony.xwork2.ActionSupport"> > > <result name="success">/staticHTML/{1}</result> > > </action> > > > > in your struts.xml seems like it would do the trick (be careful of > > overriding your regular actions!). > > > > -Brian > > > > > > > > On Thu, Jan 21, 2010 at 11:49 AM, Philipp Leusmann < > > philipp.leusm...@rwth-aachen.de> wrote: > > > >> Sure it would be faster without that stuff, but since I use some > >> session-related stuff (user login status etc.) , replacing > it with a static > >> decorator would not be feasible. > >> > >> Thanks anyway for your suggestions. > >> > >> Regards, > >> Philipp > >> <snip> > >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates Direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org