You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/09/11 13:45:06 UTC
DO NOT REPLY [Bug 12517] -
JSP compilation error with nested scripting variable
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12517>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12517
JSP compilation error with nested scripting variable
------- Additional Comments From d.gaffuri@reply.it 2002-09-11 11:45 -------
I've tried to compile a page with a custom tag extending BodyTagSupport and
declaring a NESTED scripting variable named as the id attribute. In this case
the scripting variable is initialized after doInitBody() but is never declared.
It seems that another variable named _jspx_columnDescr_1, already declared at
the beginning of service method, is declared instead, and the result generates
two compilation errors.
/* ---- cb:column ---- */
browser.ViewColumn _jspx_columnDescr_1 = columnDescr;
browser.client.jsp.tag.Column _jspx_th_cb_column_1 =
(browser.client.jsp.tag.Column) _jspx_tagPool_cb_column_value_name_id.get
(browser.client.jsp.tag.Column.class);
_jspx_th_cb_column_1.setPageContext(pageContext);
_jspx_th_cb_column_1.setParent(_jspx_th_cb_column_0);
_jspx_th_cb_column_1.setId("columnDescr");
int _jspx_eval_cb_column_1 = _jspx_th_cb_column_1.doStartTag();
if (_jspx_eval_cb_column_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
if (_jspx_eval_cb_column_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE){
javax.servlet.jsp.tagext.BodyContent _bc = pageContext.pushBody();
_bc.clear();
out = _bc;
_jspx_th_cb_column_1.setBodyContent(_bc);
_jspx_th_cb_column_1.doInitBody();
columnDescr = (browser.ViewColumn) pageContext.findAttribute("columnDescr");
}
do {
/* body */
int evalDoAfterBody = _jspx_th_cb_column_1.doAfterBody();
columnDescr = (browser.ViewColumn) pageContext.findAttribute("columnDescr");
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
if (_jspx_eval_cb_column_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
out = pageContext.popBody();
}
if (_jspx_th_cb_column_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return;
_jspx_tagPool_cb_column_value_name_id.reuse(_jspx_th_cb_column_1);
columnDescr = _jspx_columnDescr_1;
The generated errors are:
Generated servlet error:
[javac] Compiling 1 source file
D:\jakarta-tomcat-4.1.10
\work\Standalone\localhost\click\data\codes_jsp.java:514: _jspx_columnDescr_1
is already defined in _jspService
(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
browser.ViewColumn _jspx_columnDescr_1 = columnDescr;
^
An error occurred at line: 84 in the jsp file: /data/codes.jsp
Generated servlet error:
D:\jakarta-tomcat-4.1.10
\work\Standalone\localhost\click\data\codes_jsp.java:514: cannot resolve symbol
symbol : variable columnDescr
location: class org.apache.jsp.codes_jsp
browser.ViewColumn _jspx_columnDescr_1 = columnDescr;
^
Don't know if the two problems are related, so I add a comment instead of
opening a new bug.
Thanks.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>