Or simply :
 <global-forwards>
      <forward name="goMain" path="base.definition"/>
 </global-forwards>

Rémi

Le Dimanche 24 Juillet 2005 05:59, Laurie Harper a écrit :
> Your global forward needs to point to an action, not directly to a tiles
> definition. Change your struts-config.xml as follows:
>
>    ...
>    <global-forwards>
>      <forward contextRelative="true" name="goMain" path="/Main"/>
>    </global-forwards>
>    <action-mappings>
>      <action path="/Main"
>        type="org.apache.struts.actions.ForwardAction"
>        parameter="base.definition"/>
>    <action-mappings>
>    ...
>
> That should do the trick, roughly.
>
> L.
>
> Werner Punz wrote:
> > Hi I am trying to get tiles up and running and so far
> > I am trying to do a simple tiled forward
> >
> > the problem is, I can call the forwarded page directly and it displays
> > but as soon as I call the tiles definition name I get errors
> >
> > here are my config files:
> > <?xml version="1.0" encoding="ISO-8859-1"?>
> > <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD
> > Struts Configuration 1.2//EN"
> >
> > "http://struts.apache.org/dtds/struts-config_1_2.dtd";>
> > <struts-config>
> >  <data-sources/>
> >  <form-beans/>
> >  <global-exceptions/>
> >  <global-forwards>
> >   <forward contextRelative="true" name="goMain" path="base.definition"/>
> >  </global-forwards>
> >  <action-mappings/>
> >  <controller bufferSize="4096"
> > className="org.apache.struts.tiles.TilesRequestProcessor"/>
> >  <message-resources
> > parameter="com.sonydadc.claudio.resources.ApplicationResource"/>
> >  <plug-in className="org.apache.struts.tiles.TilesPlugin">
> >   <set-property property="definitions-config"
> > value="/WEB-INF/tiles-defs.xml"/>
> >   <set-property property="moduleAware" value="true"/>
> >   <set-property property="definitions-parser-validate" value="true"/>
> >  </plug-in>
> > </struts-config>
> >
> >
> > for the struts-config
> >
> > <?xml version="1.0" encoding="ISO-8859-1"?>
> > <!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD
> > Tiles Configuration 1.1//EN"
> >
> > "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd";>
> > <tiles-definitions>
> >  <definition name="base.definition" path="/helloworld.jsp"/>
> > </tiles-definitions>
> >
> > for the tiles definition
> >
> > and as soon as I global forward goMain I get following error
> >
> > Exception report
> >
> > message
> >
> > description The server encountered an internal error () that prevented
> > it from fulfilling this request.
> >
> > exception
> >
> > org.apache.jasper.JasperException
> >    
> > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.jav
> >a:370)
> >
> >    
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
> >
> >     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> >     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >
> > root cause
> >
> > java.lang.NullPointerException
> >    
> > org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.jav
> >a:446)
> >
> >    
> > org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.jav
> >a:329)
> >
> >    
> > org.apache.struts.taglib.logic.RedirectTag.generateRedirectURL(RedirectTa
> >g.java:296)
> >
> >    
> > org.apache.struts.taglib.logic.RedirectTag.doEndTag(RedirectTag.java:270)
> >
> >    
> > org.apache.jsp.index_jsp._jspx_meth_logic_redirect_0(org.apache.jsp.index
> >_jsp:85)
> >
> >     org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:59)
> >     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> >     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >    
> > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.jav
> >a:322)
> >
> >    
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
> >
> >     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> >     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >
> > note The full stack trace of the root cause is available in the Apache
> > Tomcat/5.5.9 logs.
> >
> >
> > I am sort of stumped on what is going on here
> >
> > Does anyone know the cause?

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

Reply via email to