You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by di...@apache.org on 2002/12/20 05:41:36 UTC
cvs commit: jakarta-commons/latka/src/java/org/apache/commons/latka/jelly RequestTag.java
dion 2002/12/19 20:41:36
Modified: latka/src/java/org/apache/commons/latka/jelly
RequestTag.java
Log:
- Make the response available to jelly with the label attribute as the variable name
Revision Changes Path
1.9 +10 -3 jakarta-commons/latka/src/java/org/apache/commons/latka/jelly/RequestTag.java
Index: RequestTag.java
===================================================================
RCS file: /home/cvs/jakarta-commons/latka/src/java/org/apache/commons/latka/jelly/RequestTag.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- RequestTag.java 11 Oct 2002 22:02:12 -0000 1.8
+++ RequestTag.java 20 Dec 2002 04:41:36 -0000 1.9
@@ -79,6 +79,7 @@
import org.apache.commons.latka.http.SessionImpl;
import org.apache.log4j.Category;
+import sun.security.action.GetLongAction;
/**
*
@@ -129,6 +130,12 @@
// will throw an unrecoverable LatkaException if the request could not
// be created, typically because of a malformed URL
Response response = getResponse();
+
+ // if there's been a response, and the request has a label
+ // make the response available to the jelly context
+ if (response != null && _label != null) {
+ getContext().setVariable(_label, response);
+ }
if (listener.didRequestSucceed(_request)) {
listener.requestSucceeded(new RequestSucceededEvent(
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>