RE: cvs commit: jakarta-servletapi-5/jsr152/examples/tagplugin choose.html choose.jsp foreach.html foreach.jsp howto.html if.html if.jsp notes.html

2004-02-06 Thread Ias
   1.1  
 jakarta-servletapi-5/jsr152/examples/tagplugin/howto.html
   
   Index: howto.html
   ===
   html
 head
   titleTag Plugin Implementation/title
   h2How to write tag plugins/h2
   p
 To write a plugin, you'll need to download the source 
 for Tomcat 5.
 There are two steps:
   ol
 li
   Implement the plugin class.p/
   This class, which implements 
   ttorg.apache.jasper.compiler.tagplugin.Plugin/tt

I guess org.apache.jasper.compiler.tagplugin.TagPlugin is correct. 

Ias

=
Lee, Changshin (Korean name)
Ias (International name)
   Company Web Site: http://www.tmax.co.kr
   Personal Web Site: http://www.iasandcb.pe.kr
-
JSR 201, 204, 222 and 224 EG member
Apache Axis (JAX-RPC and SAAJ) and JaxMe (JAXB) committer
RD Center
Tmax Soft, Inc.
= 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: jakarta-servletapi-5/jsr152/examples/tagplugin choose.html choose.jsp foreach.html foreach.jsp howto.html if.html if.jsp notes.html

2004-02-05 Thread kinman
kinman  2004/02/05 10:09:04

  Modified:jsr152/examples index.html
  Added:   jsr152/examples/WEB-INF tagPlugins.xml
   jsr152/examples/tagplugin choose.html choose.jsp
foreach.html foreach.jsp howto.html if.html if.jsp
notes.html
  Log:
  - Add examples, introductory notes, and a brief how-to notes for tag plugins.
  
  Revision  ChangesPath
  1.5   +46 -0 jakarta-servletapi-5/jsr152/examples/index.html
  
  Index: index.html
  ===
  RCS file: /home/cvs/jakarta-servletapi-5/jsr152/examples/index.html,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- index.html1 May 2003 22:39:53 -   1.4
  +++ index.html5 Feb 2004 18:09:04 -   1.5
  @@ -308,5 +308,51 @@
   
   /table
   
  +br/
  +bufont size=+1Tag Plugins/font/u/bbr
  +table BORDER=0 CELLSPACING=5 WIDTH=85% 
  +
  +tr VALIGN=TOP
  +  tdIfnbsp;/td
  +  td VALIGN=TOP WIDTH=30%
  +a href=tagplugin/if.jspimg SRC=images/execute.gif HSPACE=4 BORDER=0  
  +align=TOP/a
  +a href=tagplugin/if.jspExecute/a
  +  /td
  +  td WIDTH=30%
  +a href=tagplugin/if.htmlimg SRC=images/code.gif HSPACE=4 BORDER=0 hei
  +ght=24 width=24 align=TOP/a
  +a href=tagplugin/if.htmlSource/a
  +  /td
  +/tr
  +
  +tr VALIGN=TOP
  +  tdForEachnbsp;/td
  +  td VALIGN=TOP WIDTH=30%
  +a href=tagplugin/foreach.jspimg SRC=images/execute.gif HSPACE=4 BORDER=0 
 
  +align=TOP/a
  +a href=tagplugin/foreach.jspExecute/a
  +  /td
  +  td WIDTH=30%
  +a href=tagplugin/foreach.htmlimg SRC=images/code.gif HSPACE=4 BORDER=0 
hei
  +ght=24 width=24 align=TOP/a
  +a href=tagplugin/foreach.htmlSource/a
  +  /td
  +/tr
  +
  +tr VALIGN=TOP
  +  tdChoosenbsp;/td
  +  td VALIGN=TOP WIDTH=30%
  +a href=tagplugin/choose.jspimg SRC=images/execute.gif HSPACE=4 BORDER=0  
align=TOP/a
  +a href=tagplugin/choose.jspExecute/a
  +  /td
  +  td WIDTH=30%
  +a href=tagplugin/choose.htmlimg SRC=images/code.gif HSPACE=4 BORDER=0 
height=24 width=24 align=TOP/a
  +a href=tagplugin/choose.htmlSource/a
  +  /td
  +/tr
  +
  +/table
  +
   /body
   /html
  
  
  
  1.1  jakarta-servletapi-5/jsr152/examples/WEB-INF/tagPlugins.xml
  
  Index: tagPlugins.xml
  ===
  tag-plugins
tag-plugin
  tag-classorg.apache.taglibs.standard.tag.rt.core.IfTag/tag-class
  plugin-classorg.apache.jasper.tagplugins.jstl.If/plugin-class
/tag-plugin
tag-plugin
  tag-classorg.apache.taglibs.standard.tag.common.core.ChooseTag/tag-class
  plugin-classorg.apache.jasper.tagplugins.jstl.Choose/plugin-class
/tag-plugin
tag-plugin
  tag-classorg.apache.taglibs.standard.tag.rt.core.WhenTag/tag-class
  plugin-classorg.apache.jasper.tagplugins.jstl.When/plugin-class
/tag-plugin
tag-plugin
  tag-classorg.apache.taglibs.standard.tag.common.core.OtherwiseTag/tag-class
  plugin-classorg.apache.jasper.tagplugins.jstl.Otherwise/plugin-class
/tag-plugin
tag-plugin
  tag-classorg.apache.taglibs.standard.tag.rt.core.ForEachTag/tag-class
  plugin-classorg.apache.jasper.tagplugins.jstl.ForEach/plugin-class
/tag-plugin
  /tag-plugins
  
  
  
  1.1  jakarta-servletapi-5/jsr152/examples/tagplugin/choose.html
  
  Index: choose.html
  ===
  html
  head
  titleView Source Code/title
  /head
  
  body bgcolor=#FF
  pfont color=#FF
a href=choose.jsp
  img src=../images/execute.gif align=right border=0/a
a href=../index.html
  img src=../images/return.gif width=24 height=24 align=right border=0
/a/font
  /p
  
  h3
a href=choose.jsp.htmlSource Code for choose.jspfont color=#FF//a
  /h3
  
  /body
  /html
  
  
  
  1.1  jakarta-servletapi-5/jsr152/examples/tagplugin/choose.jsp
  
  Index: choose.jsp
  ===
  html
head
  titleTag Examples - choose/title
/head
body
  h1Tag Plugin Examples - lt;c:choose/h1
  
  hr
  /br
  a href=notes.htmlPlugin Introductory Notesfont font color=#FF/
  a
  br/
  a href=howto.htmlBrief Instructions for Writing Pluginsfont color=#000
  0
  FF/a
  br/ br/
  hr
  
  font color=#00/
  /br
  
  %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %
  
  c:forEach var=index begin=0 end=4
# ${index}: 
c:choose
c:when test=${index == 1}
One!/br
/c:when
c:when test=${index == 4}
Four!/br
/c:when
c:when test=${index == 3}
Three!/br
/c:when
c:otherwise
Huh?/br
/c:otherwise
/c:choose
  /c:forEach
/body
  /html 
  
  
  
  1.1