Jesper-
when you construct your URL be sure to supply your Query parameter e.g.
protected void set(String protocol,
                  String host,
                  int port,
                  String authority,
                  String userInfo,
                  String path,
                  String query,
                  String ref)
take a look at http://java.sun.com/j2se/1.4.2/docs/api/
God Held,
Martin-
----- Original Message ----- From: "Jesper Preuss" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Thursday, November 17, 2005 9:09 AM
Subject: RE: How to make a preview


Do you mean a parameter in the url. Or is this token a special Struts
token.

I have solved my preview problem using javascript. Where I put a
?preview=true in front of all links and in the forms actions. This is
what I call a hack. So please tell me how to do it better.

-----Oprindelig meddelelse-----
Fra: Mark Benussi [mailto:[EMAIL PROTECTED] Sendt: 17. november 2005 13:05
Til: 'Struts Users Mailing List'
Emne: RE: How to make a preview

Pass a token to the new window indicating it's a preview.

Then display the new styles for the new window, ensuring that the token
gets
passed to all the links and forms etc

-----Original Message-----
From: Jesper Preuss [mailto:[EMAIL PROTECTED] Sent: 17 November 2005 11:45
To: user@struts.apache.org
Subject: How to make a preview

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.

---------------------------------------------------------------------
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to