Greetings,

I am trying to get an existing tg that I have written
under Tomcat 4.1.x.  I have a tag that extends
BodyTagSupport, within the doStart tag I return
EVAL_BODY_INCLUDE, however I keep  getting a null
pointer exception, because none of my scripting
element attributes are being found.  I checked the
generated source code and found the following if
statement:

int _jspx_eval_tag_iterate_0 =
_jspx_th_tag_iterate_0.doStartTag();
if (_jspx_eval_tag_iterate_0 !=
javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
RowBean row = null;
if (_jspx_eval_tag_iterate_0 !=
javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
  javax.servlet.jsp.tagext.BodyContent _bc =
pageContext.pushBody();
  _bc.clear();
  out = _bc;
  _jspx_th_tag_iterate_0.setBodyContent(_bc);
  _jspx_th_tag_iterate_0.doInitBody();
  row= (RowBean) pageContext.findAttribute("row");
}
do {


Inside the if block is where the findAttribute()
method is called to locate my scripting elements?

Any clues why Tomcat is generating source code to
exclude the finding of scripting elements if my
doStart returns EVAL_BODY_INCLUDE?

thanks in advance,

scott




=====
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Scott Walter--have you been to scottwalter.com lately?

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

Reply via email to