Thanks,
the error was the name. i changed to portal.index where was
/jsp/frameset.jsp.
Monkeyden wrote:
Your forward's path needs to point to the tile-def name
(portal.index), not
the JSP page that defines the tile-def (/jsp/frameset.jsp). Also, be
sure
you are using either the tiles plugin or the TilesRequestProcessor.
<plug-in className="org.apache.struts.tiles.TilesPlugin" >
<set-property property="definitions-config" value="/WEB-INF/tiles-
defs.xml" />
<set-property property="definitions-debug" value="2" />
</plug-in>
OR
<controller
processorClass="org.apache.struts.tiles.TilesRequestProcessor"
/>
On 6/27/06, Alex Rodrigues da Silva <[EMAIL PROTECTED]> wrote:
Hi,
I´m trying to use tiles with struts.
in my tiles-defs.xml i have
<definition name="portal.index"
path="/jsp/frameset.jsp">
<put name="topo" value="/jsp/topo.jsp"/>
<put name="menu" value="/jsp/menu.jsp"/>
<put name="conteudo" value="/jsp/conteudo.jsp"/>
<put name="rodape" value="/jsp/rodape.jsp"/>
</definition>
in my struts-config i have
<action attribute="logonForm"
input="/jsp/logon.jsp" name="logonForm"
parameter="dispatch"
path="/logonAction" scope="request"
type="br.com.stasolutions.login.WSFLogonAction"
validate="true">
<forward name="success" path="/jsp/frameset.jsp"/>
<forward name="portal.index" path="/jsp/frameset.jsp"/>
in my frameset.jsp i have
<body>
<div align="left">
<table width="100%">
<tr><td colspan="2"><tiles:get name="topo"/></td></tr>
<tr><td width="17%"><tiles:get name="menu"/></td>
<td width="83%"><tiles:get
name="conteudo"/></td></tr>
<tr><td colspan="2"><tiles:get name="rodape"/></td></tr>
</table>
</div>
</body>
but when i logon im my project, i receive
org.apache.jasper.JasperException: Exception in JSP: /jsp/frameset.jsp
<tiles:get name="topo"/> is this line
java.lang.NullPointerException
org.apache.struts.taglib.tiles.InsertTag.processName(InsertTag.java
:527)
org.apache.struts.taglib.tiles.InsertTag.createTagHandler(
InsertTag.java:482)
org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java
:438)
org.apache.jsp.jsp.frameset_jsp._jspx_meth_tiles_get_0(
org.apache.jsp.jsp.frameset_jsp:200)
org.apache.jsp.jsp.frameset_jsp._jspx_meth_html_html_0(
org.apache.jsp.jsp.frameset_jsp:113)
org.apache.jsp.jsp.frameset_jsp._jspService(
org.apache.jsp.jsp.frameset_jsp:71)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.struts.action.RequestProcessor.doForward(
RequestProcessor.java:1085)
org.apache.struts.tiles.TilesRequestProcessor.doForward(
TilesRequestProcessor.java:263)
org.apache.struts.action.RequestProcessor.processForwardConfig(
RequestProcessor.java:398)
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(
TilesRequestProcessor.java:318)
org.apache.struts.action.RequestProcessor.process(
RequestProcessor.java:241)
org.apache.struts.action.ActionServlet.process(ActionServlet.java
:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java
:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
can you help me?
thanks
Alex Rodrigues
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
_______________________________________________________
Yahoo! Copa 2006: cobertura dos jogos em tempo real e tudo sobre a seleção brasileira!
http://br.esportes.yahoo.com/copa2006/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]