You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2002/11/07 19:57:44 UTC
DO NOT REPLY [Bug 14366] New: -
useAttribute tag causes nullPointerexception if id attribute not specified
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=14366>.
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=14366
useAttribute tag causes nullPointerexception if id attribute not specified
Summary: useAttribute tag causes nullPointerexception if id
attribute not specified
Product: Struts
Version: Nightly Build
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: Tiles framework
AssignedTo: struts-dev@jakarta.apache.org
ReportedBy: anandj@us.ibm.com
useAttribute tag causes nullPointerexception if id attribute not specified.
As a workaround I copy name attribute's value in ID attribute field..but this
workaround causes lot of jsps to be changed..
I took nightly build 1031 and extracted struts.jar from it but unfortunately it
did not solve problem.
It is very easy to recreate this bug. I have 2 lines in JSP
<tiles:useAttribute name="iterationName" classname="java.lang.String" />
<tiles:useAttribute name="iterationProperty" classname="java.lang.String"/>
this does not work causing JSPException. I do not get underlying exception..
<tiles:useAttribute id="iterationName" name="iterationName"
classname="java.lang.String" />
<tiles:useAttribute id="iterationProperty" name="iterationProperty"
classname="java.lang.String"/>
After I put id attribute in above lines, then everything works fine.
tiles.tld does not specify id attribute of tag useAttribute as mandatory.
I have noticed this happening only if I have more than 1 tiles:useAttribute in
my JSPS.
please address issue.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>