Author: rich
Date: Fri Apr 8 13:24:06 2005
New Revision: 160600
URL: http://svn.apache.org/viewcvs?view=rev&rev=160600
Log:
This is a contribution from Carlin Rogers to address
http://issues.apache.org/jira/browse/BEEHIVE-499 : Form tag needs to write
saved Token as scoped hidden param
tests: beehive drt (WinXP)
BB: self (linux)
Modified:
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Form.java
Modified:
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Form.java
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Form.java?view=diff&r1=160599&r2=160600
==============================================================================
---
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Form.java
(original)
+++
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Form.java
Fri Apr 8 13:24:06 2005
@@ -736,11 +736,13 @@
// Add a transaction token (if present in our session)
HttpSession session = pageContext.getSession();
if (session != null) {
- if (token != null) {
+ if (token == null) {
token = (String)
session.getAttribute(Globals.TRANSACTION_TOKEN_KEY);
}
if (token != null) {
- writeHiddenParam(Constants.TOKEN_KEY, token, writer, request,
true);
+ String name = URLRewriterService.getNamePrefix(servletContext,
request, Constants.TOKEN_KEY)
+ + Constants.TOKEN_KEY;
+ writeHiddenParam(name, token, writer, request, true);
}
}