My homepage is loaded with struts, tiles. Because I use the url parameter preview (http://localhost/page/Page1.do?preview=true), this is inserted in all the links and forms actions (links). I use the request.getParameter("preview") in the JSP page to test if it should load the special preview stuff. And no it's not only css, also special stuff from the database.
I have a problem: Tiles template page inserts some jsp pages. And these jsp pages can't catch the request.getParameter("preview") parameter. That's why it's a Struts related problem. And I also thought that Struts have had this problem before. Different pages with the same session. -----Oprindelig meddelelse----- Fra: Michael Jouravlev [mailto:[EMAIL PROTECTED] Sendt: 17. november 2005 21:52 Til: Struts Users Mailing List Emne: Re: How to make a preview On 11/17/05, Jesper Preuss <[EMAIL PROTECTED]> wrote: > Hi ! > > Hi have a web project using struts. > > My homepage have an administrator module. Where you can change pictures, > CSS/colors, page texts and more. > Now you can save Submit->"save" a form. Here you have saved all the new > CSS colors permanent. And it will show for all the users of the page. > > What I would like to do is, add an button Submit->"preview" to this > form. And when you 'preview' it will come with an pop-window. And here > you can browse the whole web-site, with the preview values. > > You should be able to close the window. The original browser windows > session should not be affected by the preview values. > > It is one session and two browsers, showing two different color schemes. > > How do you implement this in Struts. Non-Struts related. Search for CSS style switcher. Michael. --------------------------------------------------------------------- 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]