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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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:   <mailto:struts-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@;jakarta.apache.org>

Reply via email to