Unfortunately - adding the servlet mapping did not work. The app kept complaining that it couldn't find the pages.
tonyl wrote: > > That sounds like a good idea - i will try that. Yeah, JSF is the first > framework I've worked with and it was a company decision. I have to say > that sometimes it's really annoying. :) I really want to get off MyFaces > and try the sun reference impl of JSF. > > Thank you very much > > > Michael Horwitz wrote: >> >> Tony, >> >> I may have a simpler solution for you. Try adding the following to your >> web.xml (it works with struts + jetty, it may just work for your servlet >> container + web framework): >> >> <servlet-mapping> >> <servlet-name>default</servlet-name> >> <url-pattern>/static/*</url-pattern> >> </servlet-mapping> >> >> This makes the default servlet serve up everything under the path >> /static/. >> If it is a page ending in .html then it will be properly decorated as >> your >> /WEB-INF/decorators.xml should be configured to pick it up. >> >> If you have myFaces, then the web framework is JSF. Not one I know I'm >> afraid (I am an unabashed Struts/Spring MVC fan ;-) >> >> Mike. >> >> On 3/13/07, tonyl <[EMAIL PROTECTED]> wrote: >>> >>> >>> Michael, >>> >>> I read the post and I'm a little fuzzy about what goes where and what >>> does >>> what. So, let's say that I don't care about renaming the files to *.html >>> because we can use *.htm, is there something specific in the post that >>> is >>> going to get the decoration stuff done correctly so that the header.jsp >>> is >>> applied completely so that the links appear as well as the logo? >>> >>> Tony >>> >>> >>> >>> tonyl wrote: >>> > >>> > Michael, >>> > >>> > Thanks for the quick response - I'm a little new to the web app stuff >>> - >>> so >>> > I take it that when you say framework you mean something like "we are >>> > using Spring with MyFaces". >>> > >>> > Tony >>> > >>> > >>> > Michael Horwitz wrote: >>> >> >>> >> As soon as you make the static page extension .html, the default >>> AppFuse >>> >> setup assumes you are trying to get an active page and the relevant >>> >> servlet >>> >> will be unable to find the requeseted page (you do not mention which >>> web >>> >> framework you use). You can work around this by using the same >>> solution >>> >> some >>> >> people are using for Dojo, described here: >>> >> >>> http://www.nabble.com/Changing-default-extension-from-*.html-to-*.---tf2307780s2369.html#a8745393 >>> >> >>> >> Your needs are slightly different: you do not need to worry about >>> >> disabling >>> >> scriptaculous, and you want to make sure your static pages are >>> decorated. >>> >> So >>> >> skip steps as appropriate. >>> >> >>> >> Mike >>> >> >>> >> >>> >> On 3/13/07, tonyl <[EMAIL PROTECTED]> wrote: >>> >>> >>> >>> >>> >>> Hello, >>> >>> >>> >>> We have added a set of help files that are static html using the >>> .htm >>> >>> extension. And by placing a link in the header.jsp, a user can get >>> to >>> >>> the >>> >>> main help page. There are 2 problems - one is that once the user is >>> in >>> >>> the >>> >>> help pages, the links to My Profile and Logout are no longer present >>> >>> even >>> >>> though the main logo is. The static pages are getting the logo via a >>> >>> decorator since they do not include the image in their source. So, >>> >>> question >>> >>> 1: how do I get the decorators to place the links as well and the >>> image >>> >>> into >>> >>> the header of the static pages? The second issue is that when I name >>> the >>> >>> static files using the .html extension, the application cannot find >>> the >>> >>> pages at all. So, question 2, how do I configure the >>> security.xmland/or >>> >>> web.xml to use either extension? >>> >>> >>> >>> Thanks, >>> >>> >>> >>> Tony >>> >>> -- >>> >>> View this message in context: >>> >>> >>> http://www.nabble.com/Static-html-page-display-and-decoration-problem-tf3396529s2369.html#a9456390 >>> >>> Sent from the AppFuse - User 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://www.nabble.com/Static-html-page-display-and-decoration-problem-tf3396529s2369.html#a9458301 >>> Sent from the AppFuse - User 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://www.nabble.com/Static-html-page-display-and-decoration-problem-tf3396529s2369.html#a9475705 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
