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=12265>.
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=12265

tabsLayout.jsp fix to allow tabs to work

           Summary: tabsLayout.jsp fix to allow tabs to work
           Product: Struts
           Version: Nightly Build
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Tiles framework
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


In the tiles-documentation webapp, the tabs (chosen pages or summary) in the
live examples causes a NPE.  From the log file:

----- Root Cause -----
java.lang.NullPointerException
        at org.apache.jsp.tabsLayout_jsp._jspService(tabsLayout_jsp.java:127)


This patch fixes the NPE (tabList is null) so the above examples work.

vlad: gdiff -wruN web/tiles-documentation/layouts/tabsLayout.jsp.orig
web/tiles-documentation/layouts/tabsLayout.jsp
--- web/tiles-documentation/layouts/tabsLayout.jsp.orig Fri Jul  5 20:13:51 2002
+++ web/tiles-documentation/layouts/tabsLayout.jsp      Tue Sep  3 11:08:30 2002
@@ -17,7 +17,7 @@
 
 <tiles:useAttribute name="parameterName" classname="java.lang.String" />
 <tiles:useAttribute id="selectedIndexStr" name="selectedIndex" ignore="true"
classname="java.lang.String" />
-<tiles:useAttribute name="tabList" classname="java.util.List" />
+<tiles:useAttribute id="tabList" name="tabList" classname="java.util.List" />
 <%
   String selectedColor="#98ABC7";
   String notSelectedColor="#C0C0C0";

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

Reply via email to