You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Bips Sadhwani (JIRA)" <ji...@apache.org> on 2008/08/12 17:06:24 UTC

[jira] Created: (WW-2762) struts2 nested tiles

struts2 nested tiles
--------------------

                 Key: WW-2762
                 URL: https://issues.apache.org/struts/browse/WW-2762
             Project: Struts 2
          Issue Type: Bug
          Components: Plugin - Tiles
    Affects Versions: 2.0.6
         Environment: Windows XP Professional, MyEclipse 6.0.1, Struts2, Tiles 2.0.6, J2EE 1.4, JDK 5.0, JBoss 4.2.2 
            Reporter: Bips Sadhwani


I have this wierd issue with tiles.  Probably its a bug.
I am trying to insert a tile (a jsp page) into another tile (a jsp page) and so this is my config (simplified):
     
    tiles.xml
    ---------
     
    <definition name="rootPage.index" template="layout.jsp"> 		
    	<put-attribute name="pagetitle" value="Page Body Title" />
    	<put-attribute name="header" value="header.jsp" />
    	<put-attribute name="footer" value="footer.jsp" />
    </definition>
     
    <definition name="searchEmployee.index" extends="rootPage.index">	
    	<put-attribute name="body" value="searchEmpBody.index" />
    <definition name="searchEmpBody.index"
    		template="/searchEmployee.jsp"/>
    </definition>
     
    <definition name="status.index" template="/status.jsp">
    </definition>
     
    layout.jsp
    -----------
     
    <body>
        <div class="container">
    	<div id="header">
    	    <tiles:insertAttribute name="header" />
    	</div>	
    	
    	<div id="mainContent">	                   		
    		<tiles:insertAttribute name="body" />
    	</div>		
        </div>
    </body>

Now following are the things I try on my searchEmployee.jsp
     
searchEmployee.jsp - This works

    <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
    <%@ taglib prefix="s" uri="/struts-tags" %>
     
    <tiles:insertDefinition name="status.index"/>

searchEmployee.jsp - This also works

    <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
    <%@ taglib prefix="s" uri="/struts-tags" %>
     
    <s:form action="listEmployees">
    	<tiles:getAsString name="pagetitle"/>	
    </s:form>

searchEmployee.jsp - This does  work (only if I use tiles:insertDefinition below s:form)

    <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
    <%@ taglib prefix="s" uri="/struts-tags" %>
     
    <s:form action="listEmployees">		    	
    </s:form>

<tiles:insertDefinition name="status.index"/>

searchEmployee.jsp - This does NOT work (if I use tiles:insertDefinition above or within s:form things don't work)

    <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
    <%@ taglib prefix="s" uri="/struts-tags" %>
     
    <s:form action="listEmployees">		
    	<tiles:insertDefinition name="status.index"/>
    </s:form>

I get a long exception stack trace which basically says nullptrexception.

I've done the same thing using tiles1.x and it has always worked.

Tks


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2762) struts2 nested tiles

Posted by "John Norvell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44846#action_44846 ] 

John Norvell commented on WW-2762:
----------------------------------

This appears to be a show-stopper issue with no apparent work around.

What seems to be happening is that the NPE is thrown from the UrlHelper whenever a tile JSP page defines a s:form, and one of it's subtile JSP files has one or more of the form's  fields.

Here is a simplified test case:

/tiles-test-defs.xml

<!DOCTYPE tiles-definitions PUBLIC
       "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
       "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">

<tiles-definitions>

   <definition name="MainTile" template="/test/main.jsp">
      <put-attribute name="app_title" value="WW-2762" />
      <put-attribute name="subtile" value="/test/subtile.jsp" />
   </definition>

</tiles-definitions>


/main.jsp

<!DOCTYPE html PUBLIC "~//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<%@ page contentType="text/html;charset=cp1252" language="java"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>

<html>
	<head>
		<title><tiles:insertAttribute name="app_title" />
		</title>
	</head>
	<body>
		<div id="content_tile">
			<s:form namespace="/vpn" action="vpnManagement">
				<tiles:insertAttribute name="subtile" />
			</s:form>
		</div>
	</body>
</html>


/subtile.jsp

<%@ page contentType="text/html;charset=cp1252" language="java"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>


<s:textfield name="selectedAction" size="12" />



> struts2 nested tiles
> --------------------
>
>                 Key: WW-2762
>                 URL: https://issues.apache.org/struts/browse/WW-2762
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tiles
>    Affects Versions: 2.0.6
>         Environment: Windows XP Professional, MyEclipse 6.0.1, Struts2, Tiles 2.0.6, J2EE 1.4, JDK 5.0, JBoss 4.2.2 
>            Reporter: Bips Sadhwani
>
> I have this wierd issue with tiles.  Probably its a bug.
> I am trying to insert a tile (a jsp page) into another tile (a jsp page) and so this is my config (simplified):
>      
>     tiles.xml
>     ---------
>      
>     <definition name="rootPage.index" template="layout.jsp"> 		
>     	<put-attribute name="pagetitle" value="Page Body Title" />
>     	<put-attribute name="header" value="header.jsp" />
>     	<put-attribute name="footer" value="footer.jsp" />
>     </definition>
>      
>     <definition name="searchEmployee.index" extends="rootPage.index">	
>     	<put-attribute name="body" value="searchEmpBody.index" />
>     <definition name="searchEmpBody.index"
>     		template="/searchEmployee.jsp"/>
>     </definition>
>      
>     <definition name="status.index" template="/status.jsp">
>     </definition>
>      
>     layout.jsp
>     -----------
>      
>     <body>
>         <div class="container">
>     	<div id="header">
>     	    <tiles:insertAttribute name="header" />
>     	</div>	
>     	
>     	<div id="mainContent">	                   		
>     		<tiles:insertAttribute name="body" />
>     	</div>		
>         </div>
>     </body>
> Now following are the things I try on my searchEmployee.jsp
>      
> searchEmployee.jsp - This works
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <tiles:insertDefinition name="status.index"/>
> searchEmployee.jsp - This also works
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">
>     	<tiles:getAsString name="pagetitle"/>	
>     </s:form>
> searchEmployee.jsp - This does  work (only if I use tiles:insertDefinition below s:form)
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">		    	
>     </s:form>
> <tiles:insertDefinition name="status.index"/>
> searchEmployee.jsp - This does NOT work (if I use tiles:insertDefinition above or within s:form things don't work)
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">		
>     	<tiles:insertDefinition name="status.index"/>
>     </s:form>
> I get a long exception stack trace which basically says nullptrexception.
> I've done the same thing using tiles1.x and it has always worked.
> Tks

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2762) struts2 nested tiles

Posted by "John Norvell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Norvell updated WW-2762:
-----------------------------

    Attachment: norvell41.vcf

I asked in several of the mailing lists and never got a single reply.

-John

Musachy Barroso (JIRA) wrote:
    [ [1]https://issues.apache.org/struts/browse/WW-2762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45728#action_45728 ] 

Musachy Barroso commented on WW-2762:
-------------------------------------

Did you ask in the user mailing list? This seems like some bad filter config, but I couldn't say for sure

  
struts2 nested tiles
--------------------

                Key: WW-2762
                URL: [2]https://issues.apache.org/struts/browse/WW-2762
            Project: Struts 2
         Issue Type: Bug
         Components: Plugin - Tiles
   Affects Versions: 2.0.6
        Environment: Windows XP Professional, MyEclipse 6.0.1, Struts2, Tiles 2.0.6, J2EE 1.4, JDK 5.0, JBoss 4.2.2 
           Reporter: Bips Sadhwani
            Fix For: 2.1.7


I have this wierd issue with tiles.  Probably its a bug.
I am trying to insert a tile (a jsp page) into another tile (a jsp page) and so this is my config (simplified):
     
    tiles.xml
    ---------
     
    <definition name="rootPage.index" template="layout.jsp"> 		
    	<put-attribute name="pagetitle" value="Page Body Title" />
    	<put-attribute name="header" value="header.jsp" />
    	<put-attribute name="footer" value="footer.jsp" />
    </definition>
     
    <definition name="searchEmployee.index" extends="rootPage.index">	
    	<put-attribute name="body" value="searchEmpBody.index" />
    <definition name="searchEmpBody.index"
    		template="/searchEmployee.jsp"/>
    </definition>
     
    <definition name="status.index" template="/status.jsp">
    </definition>
     
    layout.jsp
    -----------
     
    <body>
        <div class="container">
    	<div id="header">
    	    <tiles:insertAttribute name="header" />
    	</div>	
    	
    	<div id="mainContent">	                   		
    		<tiles:insertAttribute name="body" />
    	</div>		
        </div>
    </body>
Now following are the things I try on my searchEmployee.jsp
     
searchEmployee.jsp - This works
    <%@ taglib prefix="tiles" uri=[3]"http://tiles.apache.org/tags-tiles"%>
    <%@ taglib prefix="s" uri="/struts-tags" %>
     
    <tiles:insertDefinition name="status.index"/>
searchEmployee.jsp - This also works
    <%@ taglib prefix="tiles" uri=[4]"http://tiles.apache.org/tags-tiles"%>
    <%@ taglib prefix="s" uri="/struts-tags" %>
     
    <s:form action="listEmployees">
    	<tiles:getAsString name="pagetitle"/>	
    </s:form>
searchEmployee.jsp - This does  work (only if I use tiles:insertDefinition below s:form)
    <%@ taglib prefix="tiles" uri=[5]"http://tiles.apache.org/tags-tiles"%>
    <%@ taglib prefix="s" uri="/struts-tags" %>
     
    <s:form action="listEmployees">		    	
    </s:form>
<tiles:insertDefinition name="status.index"/>
searchEmployee.jsp - This does NOT work (if I use tiles:insertDefinition above or within s:form things don't work)
    <%@ taglib prefix="tiles" uri=[6]"http://tiles.apache.org/tags-tiles"%>
    <%@ taglib prefix="s" uri="/struts-tags" %>
     
    <s:form action="listEmployees">		
    	<tiles:insertDefinition name="status.index"/>
    </s:form>
I get a long exception stack trace which basically says nullptrexception.
I've done the same thing using tiles1.x and it has always worked.
Tks
    

  
----------------------------------------------------------------------------------------
[1] https://issues.apache.org/struts/browse/WW-2762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45728#action_45728
[2] https://issues.apache.org/struts/browse/WW-2762
[3] http://tiles.apache.org/tags-tiles
[4] http://tiles.apache.org/tags-tiles
[5] http://tiles.apache.org/tags-tiles
[6] http://tiles.apache.org/tags-tiles


> struts2 nested tiles
> --------------------
>
>                 Key: WW-2762
>                 URL: https://issues.apache.org/struts/browse/WW-2762
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tiles
>    Affects Versions: 2.0.6
>         Environment: Windows XP Professional, MyEclipse 6.0.1, Struts2, Tiles 2.0.6, J2EE 1.4, JDK 5.0, JBoss 4.2.2 
>            Reporter: Bips Sadhwani
>             Fix For: 2.1.7
>
>         Attachments: norvell41.vcf
>
>
> I have this wierd issue with tiles.  Probably its a bug.
> I am trying to insert a tile (a jsp page) into another tile (a jsp page) and so this is my config (simplified):
>      
>     tiles.xml
>     ---------
>      
>     <definition name="rootPage.index" template="layout.jsp"> 		
>     	<put-attribute name="pagetitle" value="Page Body Title" />
>     	<put-attribute name="header" value="header.jsp" />
>     	<put-attribute name="footer" value="footer.jsp" />
>     </definition>
>      
>     <definition name="searchEmployee.index" extends="rootPage.index">	
>     	<put-attribute name="body" value="searchEmpBody.index" />
>     <definition name="searchEmpBody.index"
>     		template="/searchEmployee.jsp"/>
>     </definition>
>      
>     <definition name="status.index" template="/status.jsp">
>     </definition>
>      
>     layout.jsp
>     -----------
>      
>     <body>
>         <div class="container">
>     	<div id="header">
>     	    <tiles:insertAttribute name="header" />
>     	</div>	
>     	
>     	<div id="mainContent">	                   		
>     		<tiles:insertAttribute name="body" />
>     	</div>		
>         </div>
>     </body>
> Now following are the things I try on my searchEmployee.jsp
>      
> searchEmployee.jsp - This works
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <tiles:insertDefinition name="status.index"/>
> searchEmployee.jsp - This also works
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">
>     	<tiles:getAsString name="pagetitle"/>	
>     </s:form>
> searchEmployee.jsp - This does  work (only if I use tiles:insertDefinition below s:form)
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">		    	
>     </s:form>
> <tiles:insertDefinition name="status.index"/>
> searchEmployee.jsp - This does NOT work (if I use tiles:insertDefinition above or within s:form things don't work)
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">		
>     	<tiles:insertDefinition name="status.index"/>
>     </s:form>
> I get a long exception stack trace which basically says nullptrexception.
> I've done the same thing using tiles1.x and it has always worked.
> Tks

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2762) struts2 nested tiles

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso updated WW-2762:
--------------------------------

         Priority: Major  (was: Blocker)
    Fix Version/s:     (was: 2.1.3)
                   2.1.4

Downgrading to major priority and moving to 2.1.4

> struts2 nested tiles
> --------------------
>
>                 Key: WW-2762
>                 URL: https://issues.apache.org/struts/browse/WW-2762
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tiles
>    Affects Versions: 2.0.6
>         Environment: Windows XP Professional, MyEclipse 6.0.1, Struts2, Tiles 2.0.6, J2EE 1.4, JDK 5.0, JBoss 4.2.2 
>            Reporter: Bips Sadhwani
>             Fix For: 2.1.4
>
>
> I have this wierd issue with tiles.  Probably its a bug.
> I am trying to insert a tile (a jsp page) into another tile (a jsp page) and so this is my config (simplified):
>      
>     tiles.xml
>     ---------
>      
>     <definition name="rootPage.index" template="layout.jsp"> 		
>     	<put-attribute name="pagetitle" value="Page Body Title" />
>     	<put-attribute name="header" value="header.jsp" />
>     	<put-attribute name="footer" value="footer.jsp" />
>     </definition>
>      
>     <definition name="searchEmployee.index" extends="rootPage.index">	
>     	<put-attribute name="body" value="searchEmpBody.index" />
>     <definition name="searchEmpBody.index"
>     		template="/searchEmployee.jsp"/>
>     </definition>
>      
>     <definition name="status.index" template="/status.jsp">
>     </definition>
>      
>     layout.jsp
>     -----------
>      
>     <body>
>         <div class="container">
>     	<div id="header">
>     	    <tiles:insertAttribute name="header" />
>     	</div>	
>     	
>     	<div id="mainContent">	                   		
>     		<tiles:insertAttribute name="body" />
>     	</div>		
>         </div>
>     </body>
> Now following are the things I try on my searchEmployee.jsp
>      
> searchEmployee.jsp - This works
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <tiles:insertDefinition name="status.index"/>
> searchEmployee.jsp - This also works
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">
>     	<tiles:getAsString name="pagetitle"/>	
>     </s:form>
> searchEmployee.jsp - This does  work (only if I use tiles:insertDefinition below s:form)
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">		    	
>     </s:form>
> <tiles:insertDefinition name="status.index"/>
> searchEmployee.jsp - This does NOT work (if I use tiles:insertDefinition above or within s:form things don't work)
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">		
>     	<tiles:insertDefinition name="status.index"/>
>     </s:form>
> I get a long exception stack trace which basically says nullptrexception.
> I've done the same thing using tiles1.x and it has always worked.
> Tks

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2762) struts2 nested tiles

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45728#action_45728 ] 

Musachy Barroso commented on WW-2762:
-------------------------------------

Did you ask in the user mailing list? This seems like some bad filter config, but I couldn't say for sure

> struts2 nested tiles
> --------------------
>
>                 Key: WW-2762
>                 URL: https://issues.apache.org/struts/browse/WW-2762
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tiles
>    Affects Versions: 2.0.6
>         Environment: Windows XP Professional, MyEclipse 6.0.1, Struts2, Tiles 2.0.6, J2EE 1.4, JDK 5.0, JBoss 4.2.2 
>            Reporter: Bips Sadhwani
>             Fix For: 2.1.7
>
>
> I have this wierd issue with tiles.  Probably its a bug.
> I am trying to insert a tile (a jsp page) into another tile (a jsp page) and so this is my config (simplified):
>      
>     tiles.xml
>     ---------
>      
>     <definition name="rootPage.index" template="layout.jsp"> 		
>     	<put-attribute name="pagetitle" value="Page Body Title" />
>     	<put-attribute name="header" value="header.jsp" />
>     	<put-attribute name="footer" value="footer.jsp" />
>     </definition>
>      
>     <definition name="searchEmployee.index" extends="rootPage.index">	
>     	<put-attribute name="body" value="searchEmpBody.index" />
>     <definition name="searchEmpBody.index"
>     		template="/searchEmployee.jsp"/>
>     </definition>
>      
>     <definition name="status.index" template="/status.jsp">
>     </definition>
>      
>     layout.jsp
>     -----------
>      
>     <body>
>         <div class="container">
>     	<div id="header">
>     	    <tiles:insertAttribute name="header" />
>     	</div>	
>     	
>     	<div id="mainContent">	                   		
>     		<tiles:insertAttribute name="body" />
>     	</div>		
>         </div>
>     </body>
> Now following are the things I try on my searchEmployee.jsp
>      
> searchEmployee.jsp - This works
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <tiles:insertDefinition name="status.index"/>
> searchEmployee.jsp - This also works
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">
>     	<tiles:getAsString name="pagetitle"/>	
>     </s:form>
> searchEmployee.jsp - This does  work (only if I use tiles:insertDefinition below s:form)
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">		    	
>     </s:form>
> <tiles:insertDefinition name="status.index"/>
> searchEmployee.jsp - This does NOT work (if I use tiles:insertDefinition above or within s:form things don't work)
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">		
>     	<tiles:insertDefinition name="status.index"/>
>     </s:form>
> I get a long exception stack trace which basically says nullptrexception.
> I've done the same thing using tiles1.x and it has always worked.
> Tks

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (WW-2762) struts2 nested tiles

Posted by "John Norvell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44833#action_44833 ] 

jenorvell edited comment on WW-2762 at 10/16/08 8:17 AM:
------------------------------------------------------------

I am also consistently having this issue using struts 2.1.2 and tiles 2.0.5

I checked in the debugger and here is the line of code throwing the NPE:

UrlHelper.java:85

        // FIXME: temporary hack until class is made a properly injected bean
        Container cont = ActionContext.getContext().getContainer();

The ActionContext.getContext()  is return null.


Here is the top of the stack trace:

java.lang.NullPointerException
        at org.apache.struts2.views.util.UrlHelper.buildUrl(UrlHelper.java:85)
        at org.apache.struts2.views.util.UrlHelper.buildUrl(UrlHelper.java:76)
        at org.apache.struts2.views.util.UrlHelper.buildUrl(UrlHelper.java:72)
        at org.apache.struts2.views.util.UrlHelper.buildUrl(UrlHelper.java:68)
        at org.apache.struts2.components.ServletUrlRenderer.renderFormUrl(ServletUrlRenderer.java:138)
        at org.apache.struts2.components.Form.populateComponentHtmlId(Form.java:223)
        at org.apache.struts2.components.UIBean.evaluateParams(UIBean.java:786)
        at org.apache.struts2.components.UIBean.end(UIBean.java:509)
        at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
        at jsp_servlet._common.__wizardframe._jsp__tag2(__wizardframe.java:276)
        at jsp_servlet._common.__wizardframe._jspService(__wizardframe.java:127)
        at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
        at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:461)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
        at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:526)
        at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:454)
        at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:163)
        at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:98)
        at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
        at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
        at org.apache.tiles.context.TilesRequestContextWrapper.dispatch(TilesRequestContextWrapper.java:72)
        at org.apache.struts2.tiles.StrutsTilesRequestContext.dispatch(StrutsTilesRequestContext.java:88)
        at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:419)
        at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:462)
        at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
        at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
        at org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
        at org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
        at org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
        at jsp_servlet._common.__mainpagelayout._jsp__tag33(__mainpagelayout.java:1496)
        at jsp_servlet._common.__mainpagelayout._jspService(__mainpagelayout.java:190)
        at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
        at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:394)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)

      was (Author: jenorvell):
    I am also consistently having this issue using struts 2.1.2 and tiles 2.0.5

Here is the top of the stack trace:

java.lang.NullPointerException
        at org.apache.struts2.views.util.UrlHelper.buildUrl(UrlHelper.java:85)
        at org.apache.struts2.views.util.UrlHelper.buildUrl(UrlHelper.java:76)
        at org.apache.struts2.views.util.UrlHelper.buildUrl(UrlHelper.java:72)
        at org.apache.struts2.views.util.UrlHelper.buildUrl(UrlHelper.java:68)
        at org.apache.struts2.components.ServletUrlRenderer.renderFormUrl(ServletUrlRenderer.java:138)
        at org.apache.struts2.components.Form.populateComponentHtmlId(Form.java:223)
        at org.apache.struts2.components.UIBean.evaluateParams(UIBean.java:786)
        at org.apache.struts2.components.UIBean.end(UIBean.java:509)
        at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
        at jsp_servlet._common.__wizardframe._jsp__tag2(__wizardframe.java:276)
        at jsp_servlet._common.__wizardframe._jspService(__wizardframe.java:127)
        at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
        at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:461)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
        at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:526)
        at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:454)
        at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:163)
        at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:98)
        at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
        at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
        at org.apache.tiles.context.TilesRequestContextWrapper.dispatch(TilesRequestContextWrapper.java:72)
        at org.apache.struts2.tiles.StrutsTilesRequestContext.dispatch(StrutsTilesRequestContext.java:88)
        at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:419)
        at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:462)
        at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
        at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
        at org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
        at org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
        at org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
        at jsp_servlet._common.__mainpagelayout._jsp__tag33(__mainpagelayout.java:1496)
        at jsp_servlet._common.__mainpagelayout._jspService(__mainpagelayout.java:190)
        at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
        at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:394)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)
  
> struts2 nested tiles
> --------------------
>
>                 Key: WW-2762
>                 URL: https://issues.apache.org/struts/browse/WW-2762
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tiles
>    Affects Versions: 2.0.6
>         Environment: Windows XP Professional, MyEclipse 6.0.1, Struts2, Tiles 2.0.6, J2EE 1.4, JDK 5.0, JBoss 4.2.2 
>            Reporter: Bips Sadhwani
>
> I have this wierd issue with tiles.  Probably its a bug.
> I am trying to insert a tile (a jsp page) into another tile (a jsp page) and so this is my config (simplified):
>      
>     tiles.xml
>     ---------
>      
>     <definition name="rootPage.index" template="layout.jsp"> 		
>     	<put-attribute name="pagetitle" value="Page Body Title" />
>     	<put-attribute name="header" value="header.jsp" />
>     	<put-attribute name="footer" value="footer.jsp" />
>     </definition>
>      
>     <definition name="searchEmployee.index" extends="rootPage.index">	
>     	<put-attribute name="body" value="searchEmpBody.index" />
>     <definition name="searchEmpBody.index"
>     		template="/searchEmployee.jsp"/>
>     </definition>
>      
>     <definition name="status.index" template="/status.jsp">
>     </definition>
>      
>     layout.jsp
>     -----------
>      
>     <body>
>         <div class="container">
>     	<div id="header">
>     	    <tiles:insertAttribute name="header" />
>     	</div>	
>     	
>     	<div id="mainContent">	                   		
>     		<tiles:insertAttribute name="body" />
>     	</div>		
>         </div>
>     </body>
> Now following are the things I try on my searchEmployee.jsp
>      
> searchEmployee.jsp - This works
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <tiles:insertDefinition name="status.index"/>
> searchEmployee.jsp - This also works
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">
>     	<tiles:getAsString name="pagetitle"/>	
>     </s:form>
> searchEmployee.jsp - This does  work (only if I use tiles:insertDefinition below s:form)
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">		    	
>     </s:form>
> <tiles:insertDefinition name="status.index"/>
> searchEmployee.jsp - This does NOT work (if I use tiles:insertDefinition above or within s:form things don't work)
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">		
>     	<tiles:insertDefinition name="status.index"/>
>     </s:form>
> I get a long exception stack trace which basically says nullptrexception.
> I've done the same thing using tiles1.x and it has always worked.
> Tks

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2762) struts2 nested tiles

Posted by "Wes Wannemacher (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wes Wannemacher updated WW-2762:
--------------------------------

    Fix Version/s:     (was: 2.1.4)
                   2.1.5

> struts2 nested tiles
> --------------------
>
>                 Key: WW-2762
>                 URL: https://issues.apache.org/struts/browse/WW-2762
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tiles
>    Affects Versions: 2.0.6
>         Environment: Windows XP Professional, MyEclipse 6.0.1, Struts2, Tiles 2.0.6, J2EE 1.4, JDK 5.0, JBoss 4.2.2 
>            Reporter: Bips Sadhwani
>             Fix For: 2.1.5
>
>
> I have this wierd issue with tiles.  Probably its a bug.
> I am trying to insert a tile (a jsp page) into another tile (a jsp page) and so this is my config (simplified):
>      
>     tiles.xml
>     ---------
>      
>     <definition name="rootPage.index" template="layout.jsp"> 		
>     	<put-attribute name="pagetitle" value="Page Body Title" />
>     	<put-attribute name="header" value="header.jsp" />
>     	<put-attribute name="footer" value="footer.jsp" />
>     </definition>
>      
>     <definition name="searchEmployee.index" extends="rootPage.index">	
>     	<put-attribute name="body" value="searchEmpBody.index" />
>     <definition name="searchEmpBody.index"
>     		template="/searchEmployee.jsp"/>
>     </definition>
>      
>     <definition name="status.index" template="/status.jsp">
>     </definition>
>      
>     layout.jsp
>     -----------
>      
>     <body>
>         <div class="container">
>     	<div id="header">
>     	    <tiles:insertAttribute name="header" />
>     	</div>	
>     	
>     	<div id="mainContent">	                   		
>     		<tiles:insertAttribute name="body" />
>     	</div>		
>         </div>
>     </body>
> Now following are the things I try on my searchEmployee.jsp
>      
> searchEmployee.jsp - This works
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <tiles:insertDefinition name="status.index"/>
> searchEmployee.jsp - This also works
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">
>     	<tiles:getAsString name="pagetitle"/>	
>     </s:form>
> searchEmployee.jsp - This does  work (only if I use tiles:insertDefinition below s:form)
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">		    	
>     </s:form>
> <tiles:insertDefinition name="status.index"/>
> searchEmployee.jsp - This does NOT work (if I use tiles:insertDefinition above or within s:form things don't work)
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">		
>     	<tiles:insertDefinition name="status.index"/>
>     </s:form>
> I get a long exception stack trace which basically says nullptrexception.
> I've done the same thing using tiles1.x and it has always worked.
> Tks

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2762) struts2 nested tiles

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso updated WW-2762:
--------------------------------

    Fix Version/s:     (was: 2.1.7)
                   Future

moving to future, as it seems nobody knows how to fix this tile issues

> struts2 nested tiles
> --------------------
>
>                 Key: WW-2762
>                 URL: https://issues.apache.org/struts/browse/WW-2762
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tiles
>    Affects Versions: 2.0.6
>         Environment: Windows XP Professional, MyEclipse 6.0.1, Struts2, Tiles 2.0.6, J2EE 1.4, JDK 5.0, JBoss 4.2.2 
>            Reporter: Bips Sadhwani
>             Fix For: Future
>
>         Attachments: norvell41.vcf
>
>
> I have this wierd issue with tiles.  Probably its a bug.
> I am trying to insert a tile (a jsp page) into another tile (a jsp page) and so this is my config (simplified):
>      
>     tiles.xml
>     ---------
>      
>     <definition name="rootPage.index" template="layout.jsp"> 		
>     	<put-attribute name="pagetitle" value="Page Body Title" />
>     	<put-attribute name="header" value="header.jsp" />
>     	<put-attribute name="footer" value="footer.jsp" />
>     </definition>
>      
>     <definition name="searchEmployee.index" extends="rootPage.index">	
>     	<put-attribute name="body" value="searchEmpBody.index" />
>     <definition name="searchEmpBody.index"
>     		template="/searchEmployee.jsp"/>
>     </definition>
>      
>     <definition name="status.index" template="/status.jsp">
>     </definition>
>      
>     layout.jsp
>     -----------
>      
>     <body>
>         <div class="container">
>     	<div id="header">
>     	    <tiles:insertAttribute name="header" />
>     	</div>	
>     	
>     	<div id="mainContent">	                   		
>     		<tiles:insertAttribute name="body" />
>     	</div>		
>         </div>
>     </body>
> Now following are the things I try on my searchEmployee.jsp
>      
> searchEmployee.jsp - This works
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <tiles:insertDefinition name="status.index"/>
> searchEmployee.jsp - This also works
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">
>     	<tiles:getAsString name="pagetitle"/>	
>     </s:form>
> searchEmployee.jsp - This does  work (only if I use tiles:insertDefinition below s:form)
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">		    	
>     </s:form>
> <tiles:insertDefinition name="status.index"/>
> searchEmployee.jsp - This does NOT work (if I use tiles:insertDefinition above or within s:form things don't work)
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">		
>     	<tiles:insertDefinition name="status.index"/>
>     </s:form>
> I get a long exception stack trace which basically says nullptrexception.
> I've done the same thing using tiles1.x and it has always worked.
> Tks

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2762) struts2 nested tiles

Posted by "John Norvell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Norvell updated WW-2762:
-----------------------------

    Priority: Blocker  (was: Major)

> struts2 nested tiles
> --------------------
>
>                 Key: WW-2762
>                 URL: https://issues.apache.org/struts/browse/WW-2762
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tiles
>    Affects Versions: 2.0.6
>         Environment: Windows XP Professional, MyEclipse 6.0.1, Struts2, Tiles 2.0.6, J2EE 1.4, JDK 5.0, JBoss 4.2.2 
>            Reporter: Bips Sadhwani
>            Priority: Blocker
>
> I have this wierd issue with tiles.  Probably its a bug.
> I am trying to insert a tile (a jsp page) into another tile (a jsp page) and so this is my config (simplified):
>      
>     tiles.xml
>     ---------
>      
>     <definition name="rootPage.index" template="layout.jsp"> 		
>     	<put-attribute name="pagetitle" value="Page Body Title" />
>     	<put-attribute name="header" value="header.jsp" />
>     	<put-attribute name="footer" value="footer.jsp" />
>     </definition>
>      
>     <definition name="searchEmployee.index" extends="rootPage.index">	
>     	<put-attribute name="body" value="searchEmpBody.index" />
>     <definition name="searchEmpBody.index"
>     		template="/searchEmployee.jsp"/>
>     </definition>
>      
>     <definition name="status.index" template="/status.jsp">
>     </definition>
>      
>     layout.jsp
>     -----------
>      
>     <body>
>         <div class="container">
>     	<div id="header">
>     	    <tiles:insertAttribute name="header" />
>     	</div>	
>     	
>     	<div id="mainContent">	                   		
>     		<tiles:insertAttribute name="body" />
>     	</div>		
>         </div>
>     </body>
> Now following are the things I try on my searchEmployee.jsp
>      
> searchEmployee.jsp - This works
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <tiles:insertDefinition name="status.index"/>
> searchEmployee.jsp - This also works
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">
>     	<tiles:getAsString name="pagetitle"/>	
>     </s:form>
> searchEmployee.jsp - This does  work (only if I use tiles:insertDefinition below s:form)
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">		    	
>     </s:form>
> <tiles:insertDefinition name="status.index"/>
> searchEmployee.jsp - This does NOT work (if I use tiles:insertDefinition above or within s:form things don't work)
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">		
>     	<tiles:insertDefinition name="status.index"/>
>     </s:form>
> I get a long exception stack trace which basically says nullptrexception.
> I've done the same thing using tiles1.x and it has always worked.
> Tks

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2762) struts2 nested tiles

Posted by "John Norvell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44833#action_44833 ] 

John Norvell commented on WW-2762:
----------------------------------

I am also consistently having this issue using struts 2.1.2 and tiles 2.0.5

Here is the top of the stack trace:

java.lang.NullPointerException
        at org.apache.struts2.views.util.UrlHelper.buildUrl(UrlHelper.java:85)
        at org.apache.struts2.views.util.UrlHelper.buildUrl(UrlHelper.java:76)
        at org.apache.struts2.views.util.UrlHelper.buildUrl(UrlHelper.java:72)
        at org.apache.struts2.views.util.UrlHelper.buildUrl(UrlHelper.java:68)
        at org.apache.struts2.components.ServletUrlRenderer.renderFormUrl(ServletUrlRenderer.java:138)
        at org.apache.struts2.components.Form.populateComponentHtmlId(Form.java:223)
        at org.apache.struts2.components.UIBean.evaluateParams(UIBean.java:786)
        at org.apache.struts2.components.UIBean.end(UIBean.java:509)
        at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
        at jsp_servlet._common.__wizardframe._jsp__tag2(__wizardframe.java:276)
        at jsp_servlet._common.__wizardframe._jspService(__wizardframe.java:127)
        at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
        at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:461)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
        at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:526)
        at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:454)
        at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:163)
        at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:98)
        at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
        at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
        at org.apache.tiles.context.TilesRequestContextWrapper.dispatch(TilesRequestContextWrapper.java:72)
        at org.apache.struts2.tiles.StrutsTilesRequestContext.dispatch(StrutsTilesRequestContext.java:88)
        at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:419)
        at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:462)
        at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
        at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
        at org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
        at org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
        at org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
        at jsp_servlet._common.__mainpagelayout._jsp__tag33(__mainpagelayout.java:1496)
        at jsp_servlet._common.__mainpagelayout._jspService(__mainpagelayout.java:190)
        at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
        at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:394)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)

> struts2 nested tiles
> --------------------
>
>                 Key: WW-2762
>                 URL: https://issues.apache.org/struts/browse/WW-2762
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tiles
>    Affects Versions: 2.0.6
>         Environment: Windows XP Professional, MyEclipse 6.0.1, Struts2, Tiles 2.0.6, J2EE 1.4, JDK 5.0, JBoss 4.2.2 
>            Reporter: Bips Sadhwani
>
> I have this wierd issue with tiles.  Probably its a bug.
> I am trying to insert a tile (a jsp page) into another tile (a jsp page) and so this is my config (simplified):
>      
>     tiles.xml
>     ---------
>      
>     <definition name="rootPage.index" template="layout.jsp"> 		
>     	<put-attribute name="pagetitle" value="Page Body Title" />
>     	<put-attribute name="header" value="header.jsp" />
>     	<put-attribute name="footer" value="footer.jsp" />
>     </definition>
>      
>     <definition name="searchEmployee.index" extends="rootPage.index">	
>     	<put-attribute name="body" value="searchEmpBody.index" />
>     <definition name="searchEmpBody.index"
>     		template="/searchEmployee.jsp"/>
>     </definition>
>      
>     <definition name="status.index" template="/status.jsp">
>     </definition>
>      
>     layout.jsp
>     -----------
>      
>     <body>
>         <div class="container">
>     	<div id="header">
>     	    <tiles:insertAttribute name="header" />
>     	</div>	
>     	
>     	<div id="mainContent">	                   		
>     		<tiles:insertAttribute name="body" />
>     	</div>		
>         </div>
>     </body>
> Now following are the things I try on my searchEmployee.jsp
>      
> searchEmployee.jsp - This works
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <tiles:insertDefinition name="status.index"/>
> searchEmployee.jsp - This also works
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">
>     	<tiles:getAsString name="pagetitle"/>	
>     </s:form>
> searchEmployee.jsp - This does  work (only if I use tiles:insertDefinition below s:form)
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">		    	
>     </s:form>
> <tiles:insertDefinition name="status.index"/>
> searchEmployee.jsp - This does NOT work (if I use tiles:insertDefinition above or within s:form things don't work)
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">		
>     	<tiles:insertDefinition name="status.index"/>
>     </s:form>
> I get a long exception stack trace which basically says nullptrexception.
> I've done the same thing using tiles1.x and it has always worked.
> Tks

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2762) struts2 nested tiles

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes updated WW-2762:
-----------------------------

    Fix Version/s: 2.1.3

> struts2 nested tiles
> --------------------
>
>                 Key: WW-2762
>                 URL: https://issues.apache.org/struts/browse/WW-2762
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tiles
>    Affects Versions: 2.0.6
>         Environment: Windows XP Professional, MyEclipse 6.0.1, Struts2, Tiles 2.0.6, J2EE 1.4, JDK 5.0, JBoss 4.2.2 
>            Reporter: Bips Sadhwani
>            Priority: Blocker
>             Fix For: 2.1.3
>
>
> I have this wierd issue with tiles.  Probably its a bug.
> I am trying to insert a tile (a jsp page) into another tile (a jsp page) and so this is my config (simplified):
>      
>     tiles.xml
>     ---------
>      
>     <definition name="rootPage.index" template="layout.jsp"> 		
>     	<put-attribute name="pagetitle" value="Page Body Title" />
>     	<put-attribute name="header" value="header.jsp" />
>     	<put-attribute name="footer" value="footer.jsp" />
>     </definition>
>      
>     <definition name="searchEmployee.index" extends="rootPage.index">	
>     	<put-attribute name="body" value="searchEmpBody.index" />
>     <definition name="searchEmpBody.index"
>     		template="/searchEmployee.jsp"/>
>     </definition>
>      
>     <definition name="status.index" template="/status.jsp">
>     </definition>
>      
>     layout.jsp
>     -----------
>      
>     <body>
>         <div class="container">
>     	<div id="header">
>     	    <tiles:insertAttribute name="header" />
>     	</div>	
>     	
>     	<div id="mainContent">	                   		
>     		<tiles:insertAttribute name="body" />
>     	</div>		
>         </div>
>     </body>
> Now following are the things I try on my searchEmployee.jsp
>      
> searchEmployee.jsp - This works
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <tiles:insertDefinition name="status.index"/>
> searchEmployee.jsp - This also works
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">
>     	<tiles:getAsString name="pagetitle"/>	
>     </s:form>
> searchEmployee.jsp - This does  work (only if I use tiles:insertDefinition below s:form)
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">		    	
>     </s:form>
> <tiles:insertDefinition name="status.index"/>
> searchEmployee.jsp - This does NOT work (if I use tiles:insertDefinition above or within s:form things don't work)
>     <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
>     <%@ taglib prefix="s" uri="/struts-tags" %>
>      
>     <s:form action="listEmployees">		
>     	<tiles:insertDefinition name="status.index"/>
>     </s:form>
> I get a long exception stack trace which basically says nullptrexception.
> I've done the same thing using tiles1.x and it has always worked.
> Tks

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.