You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by sh...@ubs.com on 2002/12/13 16:05:06 UTC

RE: a question about transaction tokens

search the mailing list archive for "Token mechanism in Struts:"

U will find teh answers...a few very good mails...

-----Original Message-----
From: akriger [mailto:akriger@greaterthanone.com]
Sent: Friday, December 13, 2002 4:09 PM
To: struts-user
Cc: akriger
Subject: a question about transaction tokens


I'm wondering how these are used. They're not mentioned in the O'Reilly book
or in the docs. After calling generateToken, do I need to wrap my action's
execute code in an isTokenValid block to check for an existing token?

For example...

execute(...) {
	generateToken(request);
	if(!isTokenValid(request)) {
		// do action stuff
	}
	else
		return ???what???
}

thx
andy



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: a question about transaction tokens

Posted by Andy Kriger <ak...@greaterthanone.com>.
i'd love to do that however whenever i text search i get an error 'Text
search not available for this list'. i reported this on the mailing list a
few days ago but got no response.

so, can someone answer my question here?

-----Original Message-----
From: shirishchandra.sakhare@ubs.com
[mailto:shirishchandra.sakhare@ubs.com]
Sent: Friday, December 13, 2002 10:05
To: struts-user@jakarta.apache.org
Subject: RE: a question about transaction tokens


search the mailing list archive for "Token mechanism in Struts:"

U will find teh answers...a few very good mails...

-----Original Message-----
From: akriger [mailto:akriger@greaterthanone.com]
Sent: Friday, December 13, 2002 4:09 PM
To: struts-user
Cc: akriger
Subject: a question about transaction tokens


I'm wondering how these are used. They're not mentioned in the O'Reilly book
or in the docs. After calling generateToken, do I need to wrap my action's
execute code in an isTokenValid block to check for an existing token?

For example...

execute(...) {
	generateToken(request);
	if(!isTokenValid(request)) {
		// do action stuff
	}
	else
		return ???what???
}

thx
andy



--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>