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 Developer.

 

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
form org.apache.struts.taglib.html.FormTag com.ibm.struts.taglib.html.FormTag

with added attributes:

  • urlType

  • windowState

  • validate

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

rewrite org.apache.struts.taglib.html.RewriteTag com.ibm.struts.taglib.html.RewriteTag
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   No difference
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

 

Related concepts

Struts portlet applications
Creating Struts portlets and projects
Struts-based Web applications - overview

 

Related tasks

Creating Struts portlet projects
Creating Struts portlet JSP files
Creating well-architected Web applications using Struts