proyal 2003/09/03 18:25:51
Modified: jelly/src/java/org/apache/commons/jelly JellyContext.java
Log:
[JELLY-74] Obey scope inheritance when using getVariable()
Patch from Scott Howlett
Revision Changes Path
1.47 +2 -3
jakarta-commons/jelly/src/java/org/apache/commons/jelly/JellyContext.java
Index: JellyContext.java
===================================================================
RCS file:
/home/cvs/jakarta-commons/jelly/src/java/org/apache/commons/jelly/JellyContext.java,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- JellyContext.java 2 Sep 2003 15:57:54 -0000 1.46
+++ JellyContext.java 4 Sep 2003 01:25:51 -0000 1.47
@@ -232,7 +232,7 @@
if ( value == null && isInherit() ) {
JellyContext parent = getParent();
if (parent != null) {
- value = parent.findVariable( name );
+ value = parent.getVariable( name );
}
}
@@ -294,7 +294,6 @@
* @param name is the name of the variable
* @param scopeName is the optional scope name such as 'parent'. For servlet
environments
* this could be 'application', 'session' or 'request'.
- * @param value is the value of the attribute
*/
public void removeVariable(String name, String scopeName) {
JellyContext scope = getScope(scopeName);
@@ -843,7 +842,7 @@
* using Context ClassLoader, then the class-loading defaults to
* using the calling-class' ClassLoader.
*
- * @param boolean determines whether to use JellyContext ClassLoader.
+ * @param use determines whether to use JellyContext ClassLoader.
*/
public void setUseContextClassLoader(boolean use) {
useContextClassLoader = use;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]