henning 2004/10/08 05:31:43
Modified: src/java/org/apache/turbine/services/pull/tools Tag:
TURBINE_2_3_BRANCH TemplateLink.java
Log:
Expose setEvent() to the templates
Revision Changes Path
No revision
No revision
1.8.2.3 +17 -1
jakarta-turbine-2/src/java/org/apache/turbine/services/pull/tools/TemplateLink.java
Index: TemplateLink.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/services/pull/tools/TemplateLink.java,v
retrieving revision 1.8.2.2
retrieving revision 1.8.2.3
diff -u -r1.8.2.2 -r1.8.2.3
--- TemplateLink.java 20 May 2004 03:06:51 -0000 1.8.2.2
+++ TemplateLink.java 8 Oct 2004 12:31:43 -0000 1.8.2.3
@@ -210,6 +210,22 @@
}
/**
+ * Sets the eventSubmit_= value for this URL.
+ *
+ * By default it adds the information to the path_info instead
+ * of the query data.
+ *
+ * @param action A String with the event value.
+ * @return A <code>TemplateLink</code> (self).
+ */
+ public TemplateLink setEvent(String action)
+ {
+ log.debug("setEvent(" + action + ")");
+ templateURI.setEvent(action);
+ return this;
+ }
+
+ /**
* Sets the screen= value for this URL.
*
* By default it adds the information to the path_info instead
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]