webwork/src/main/webwork/view/taglib WebWorkBodyTagSupport.java,1.9,1.10 WebWorkTagSupport.java,1.7,1.8
| Newsgroups | gmane.comp.java.open-symphony.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/opensymphony/webwork/src/main/webwork/view/taglib
In directory sc8-pr-cvs1:/tmp/cvs-serv11715
Modified Files:
WebWorkBodyTagSupport.java WebWorkTagSupport.java
Log Message:
Make sure the ValueStack contains a reference to the correct
pageContext by setting the context each time the stack is retrieved.
This fixes Jira issue WW-272
Index: WebWorkBodyTagSupport.java
===================================================================
RCS file: /cvsroot/opensymphony/webwork/src/main/webwork/view/taglib/WebWorkBodyTagSupport.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- WebWorkBodyTagSupport.java 15 Sep 2002 02:02:33 -0000 1.9
+++ WebWorkBodyTagSupport.java 10 Sep 2003 21:51:29 -0000 1.10
@@ -49,6 +49,13 @@
if (stack == null) {
stack = ServletValueStack.getStack(pageContext);
}
+ else
+ {
+ // Set the pageContext in the stack to make sure that the context
+ // is the correct one, since the same stack is used for the whole
+ // request, which can mean several different pageContexts
+ stack.setContext(pageContext);
+ }
return stack;
}
Index: WebWorkTagSupport.java
===================================================================
RCS file: /cvsroot/opensymphony/webwork/src/main/webwork/view/taglib/WebWorkTagSupport.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- WebWorkTagSupport.java 15 Sep 2002 02:02:09 -0000 1.7
+++ WebWorkTagSupport.java 10 Sep 2003 21:51:29 -0000 1.8
@@ -46,6 +46,13 @@
{
if (stack == null)
stack = ServletValueStack.getStack(pageContext);
+ else
+ {
+ // Set the pageContext in the stack to make sure that the context
+ // is the correct one, since the same stack is used for the whole
+ // request, which can mean several different pageContexts
+ stack.setContext(pageContext);
+ }
return stack;
}
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf