I
iindia
The Same set of code works fine with WebSphere 4.7 (J2EE 1.2 and JSP
1.1). Meaning doAfterBody() is called properly. but when I try using
the same piece of code with WebSphere 5.1 (J2EE 1.3 and JSP1.2)
doAfterBody() not called. I need some help on this ASAP. I thank you
all in advance!
This is my tld :
<tag>
<name>attribute</name>
<tag-class>com.xxx.yyy.GenericTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>attrib</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
And this is the part of my JSP where I am calling this tag:
<display:control name="ActFlg" elementName="ActFlg">[^<repeat:attribute
attrib="index"/>$]
And this is the part of the TagSupport :
public class GenericTag extends BodyTagSupport
{
private String attrib;
public void setAttrib(String attrib)
{
this.attrib = attrib;
}
public int doStartTag() throws JspException
{
return super.doStartTag();
}
public int doAfterBody()
{
-do something here
}
return(SKIP_BODY);
}
1.1). Meaning doAfterBody() is called properly. but when I try using
the same piece of code with WebSphere 5.1 (J2EE 1.3 and JSP1.2)
doAfterBody() not called. I need some help on this ASAP. I thank you
all in advance!
This is my tld :
<tag>
<name>attribute</name>
<tag-class>com.xxx.yyy.GenericTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>attrib</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
And this is the part of my JSP where I am calling this tag:
<display:control name="ActFlg" elementName="ActFlg">[^<repeat:attribute
attrib="index"/>$]
And this is the part of the TagSupport :
public class GenericTag extends BodyTagSupport
{
private String attrib;
public void setAttrib(String attrib)
{
this.attrib = attrib;
}
public int doStartTag() throws JspException
{
return super.doStartTag();
}
public int doAfterBody()
{
-do something here
}
return(SKIP_BODY);
}