You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "David Evans (JIRA)" <ji...@apache.org> on 2006/04/25 05:04:10 UTC
[jira] Closed: (STR-77) html:link Should Be Able to Generate
Transaction Token Argument
[ http://issues.apache.org/struts/browse/STR-77?page=all ]
David Evans closed STR-77:
--------------------------
Resolution: Fixed
> html:link Should Be Able to Generate Transaction Token Argument
> ---------------------------------------------------------------
>
> Key: STR-77
> URL: http://issues.apache.org/struts/browse/STR-77
> Project: Struts Action 1
> Type: Improvement
> Components: Taglibs
> Versions: 1.0 Beta 1
> Environment: Operating System: All
> Platform: PC
> Reporter: Mike McCallister
> Assignee: Craig McClanahan
> Priority: Minor
> Fix For: 1.0.0
>
> I'm using an anchor tag in an html:form that I want to have participate in the
> transaction controlled by the form. There currently does not seem to be an
> easy way to add the transaction token to the URL generated by the <html:link>
> tag. What I would like to see is something using an optional parameter like
> like:
> <html:link page="/my/action.do" transaction="true">Delete</html:link>
> which would result in HTML like:
> <a href="/context/my/action.do?
> org.apache.struts.taglib.html.TOKEN=bbd69965c18c485eaa946a0fa122159">Delete</a>
> If the user didn't include the optional transaction parameter, no additional
> URL encoded parameters should be generated.
> Ugly? Yes, but I can't see another way to let an Action controlled by the
> common idiom of
> if (!isTokenValid(request)) { ... Bug out with error }
> work with anything but POST.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org