Revision: 428
Author: dbrosius
Date: 2006-04-09 13:18:34 -0700 (Sun, 09 Apr 2006)
ViewCVS: http://svn.sourceforge.net/fb-contrib/?rev=428&view=rev
Log Message:
-----------
start samples
Added Paths:
-----------
trunk/fb-contrib/samples/NRTL_Sample.java
Added: trunk/fb-contrib/samples/NRTL_Sample.java
===================================================================
--- trunk/fb-contrib/samples/NRTL_Sample.java (rev 0)
+++ trunk/fb-contrib/samples/NRTL_Sample.java 2006-04-09 20:18:34 UTC (rev 428)
@@ -0,0 +1,26 @@
+import javax.servlet.jsp.JspException;
+import javax.servlet.jsp.JspTagException;
+import javax.servlet.jsp.tagext.TagSupport;
+
+public class NRTL_Sample extends TagSupport {
+ private String sample;
+
+ public void setSample(String s) {
+ sample = s;
+ }
+
+ public int doStartTag() throws JspException {
+ try {
+ sample += Math.random();
+ pageContext.getOut().print(sample);
+ } catch (Exception ex) {
+ throw new JspTagException("NRTL_Sample: " + ex.getMessage());
+ }
+ return SKIP_BODY;
+ }
+
+ public int doEndTag() {
+ return EVAL_PAGE;
+ }
+
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|