You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Libersan, Martin" <Ma...@microcell.ca> on 2001/03/12 22:01:58 UTC

Absolute URL in global-forward

I have a problem using global-forward with an absolute URL.

  <!-- ========== Global Forward Definitions ============================== -->
  <global-forwards>
    <forward   name="logon"                path="/logon"/>
    <forward   name="simulation"           path="http://poseidon:6969/logon/index.jsp"/>
    <forward   name="index"                path="/index.html"/>
    <forward   name="installation"         path="/installation.html"/>
  </global-forwards>

When i rerefer to the global forward name simualtion i got this exception

Mon Mar 12 15:34:16 EST 2001:<E> <WebAppServletContext-dispatcher> Servlet failed with Exception
java.lang.NullPointerException
        at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1697)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1540)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
        at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:106)
        at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:907)
        at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
        at weblogic.servlet.internal.ServletContextManager.invokeServlet(Compiled Code)
        at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
        at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
        at weblogic.kernel.ExecuteThread.run(Compiled Code)

When i rerefer to ohters global forwards i got no problem at all

Is it possible to use absolute url path in a global-forward ?
Martin Libersan
Myriap inc.
Sun Certified Java2 Programmer
* (514) 804-7237 
* Martin.Libersan@microcell.ca