Differences between Struts 1.1 and SPF tag library classes

This topic describes the differences between the Apache Struts 1.1 tag libraries and the Struts Portlet Framework tag libraries provided in RationalĀ® Software Delivery Platform.

 

Tag class differences

TLD Tag Struts 1.1 class SPF class
struts-bean.tld include org.apache.struts.taglib.bean.IncludeTag com.ibm.struts.taglib.bean.IncludeTag
struts-html.tld cancel org.apache.struts.taglib.html.CancelTag com.ibm.struts.taglib.html.CancelTag
file org.apache.struts.taglib.html.FileTag com.ibm.struts.taglib.html.FileTag

with added attribute:

  • dir
form org.apache.struts.taglib.html.FormTag com.ibm.struts.taglib.html.FormTag

with added attributes:

  • urlType

  • windowState

  • validate

  • focusTimeout

  • portletMode

  • generateMarkup
frame org.apache.struts.taglib.html.FrameTag com.ibm.struts.taglib.html.FrameTag
html org.apache.struts.taglib.html.HtmlTag com.ibm.struts.taglib.html.HtmlTag
javascript org.apache.struts.taglib.html.JavascriptValidatorTag com.ibm.struts.taglib.html.JavascriptValidatorTag
link org.apache.struts.taglib.html.LinkTag com.ibm.struts.taglib.html.LinkTag

with added attributes:

  • urlType

  • windowState

  • portletMode
password org.apache.struts.taglib.html.PasswordTag com.ibm.struts.taglib.html.PasswordTag

with added attribute:

  • dir
rewrite org.apache.struts.taglib.html.RewriteTag com.ibm.struts.taglib.html.RewriteTag
select org.apache.struts.taglib.html.SelectTag com.ibm.struts.taglib.html.SelectTag

with added attribute:

  • dir
text org.apache.struts.taglib.html.TextTag com.ibm.struts.taglib.html.TextTag

with added attribute:

  • dir
textarea org.apache.struts.taglib.html.TextareaTag com.ibm.struts.taglib.html.TextareaTag

with added attribute:

  • dir
struts-logic.tld forward org.apache.struts.taglib.logic.ForwardTag com.ibm.struts.taglib.logic.ForwardTag
redirect org.apache.struts.taglib.logic.RedirectTag com.ibm.struts.taglib.logic.RedirectTag
struts-nested.tld form org.apache.struts.taglib.nested.html.NestedFormTag com.ibm.struts.taglib.nested.html.NestedFormTag
link org.apache.struts.taglib.nested.html.NestedLinkTag com.ibm.struts.taglib.nested.html.NestedLinkTag
struts-template.tld Ā  No difference
struts-tiles.tld insert org.apache.struts.taglib.tiles.InsertTag com.ibm.struts.taglib.tiles.InsertTag
Additional tag libraries (unique to SPF)
struts-portal-html.tld body Not applicable com.ibm.struts.taglib.html.BodyTag
head com.ibm.struts.taglib.html.HeadTag
script com.ibm.struts.taglib.html.ScriptTag
struts-portal-wml.tld card Not applicable com.ibm.struts.taglib.wml.CardTag
head com.ibm.struts.taglib.wml.HeadTag
struts-wml.tld cancel Not applicable com.ibm.struts.taglib.wml.CancelTag
error org.apache.struts.taglib.html.ErrorsTag No difference
form Not applicable com.ibm.struts.taglib.wml.FormTag
go com.ibm.struts.taglib.wml.GoTag
link com.ibm.struts.taglib.wml.LinkTag
option com.ibm.struts.taglib.wml.OptionTag
optionsCollection com.ibm.struts.taglib.wml.OptionsCollectionTag
options com.ibm.struts.taglib.wml.OptionsTag
password com.ibm.struts.taglib.wml.PasswordTag
postfield com.ibm.struts.taglib.wml.PostfieldTag
rewrite com.ibm.struts.taglib.html.RewriteTag
select com.ibm.struts.taglib.wml.SelectTag
text com.ibm.struts.taglib.wml.TextTag
wml com.ibm.struts.taglib.wml.WmlTag

 

Related concepts

Creating Struts portlets and projects

Struts portlet applications

Struts Portlet Framework

Generating Struts portlet actions and action mapping codes

Creating data access Web applications using Struts

 

Related tasks

Creating Struts portlet projects

Creating portlets

Creating Struts portlet JSP files

Creating Struts applications