You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Martin Cooper <ma...@tumbleweed.com> on 2001/07/02 00:36:31 UTC

Re: Opening another window from Struts

Have you looked at transaction tokens in Struts? It sounds like your serial
number scheme does the same thing. Take a look at generateToken(),
isTokenValie(), et al in the Action class.

--
Martin Cooper


----- Original Message -----
From: "Anthony Martin" <An...@TRAMS.com>
To: <st...@jakarta.apache.org>
Sent: Friday, June 29, 2001 2:55 PM
Subject: RE: Opening another window from Struts


> I used frames briefly, to show the UI team it was possible.  I mainly
showed
> them how to make submits show up on a different frame, which is not quite
> what you're talking about:
>
> <html:form action="editThingy" target="overThere">
> .
> .
> .
> </html:form>
>
> It worked, and I stopped playing with it and let the UI team do their
thing.
>
> As you probably know, just taking the controls away does not truly prevent
> users from accessing those controls.  I use ALT + (LEFT||RIGHT) more than
> the nav bar.
>
> Instead of fighting with JavaScript and the user, I have a SecurityAction
> base class that among other things, issues a serial number that must match
> with one stored in the session.  It can be incremented for each operation,
> but if you're really anal, it's a good idea to randomly issue them.
>
>
> Anthony
>
> -----Original Message-----
> From: Tom Miller [mailto:tmiller@kdsi.net]
> Sent: Friday, June 29, 2001 1:31 PM
> To: struts-user
> Subject: Opening another window from Struts
>
>
> Hello
>
> I'm trying to open a new window (without a location bar) from within my
> Struts application. I don't want the users to be able to page forward
> and back, etc. while they are on that new page editing a record in my
> database.
>
> I know how to open new windows via Javascript, but I'm unsure of how to
> do this in what with Struts passing beans and parameters through the
> Action servlet. Has anyone worked this out before?
>
> TIA for any ideas.
>
> --
> Tom Miller
> Miller Associates, Inc.
> tmiller@kdsi.net
> 641.469.3535 Phone
> 413.581.6326 FAX
>