struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Susan Bradeen <sbrad...@gmail.com>
Subject Re: global-forward
Date Wed, 27 Oct 2004 20:44:12 GMT
On Wed, 27 Oct 2004 13:09:39 -0600, Sudip Shrestha <sudipster@gmail.com> wrote:
> I am trying this simple struts application here, that uses following:
>     <global-forwards>
>                 <forward name="welcome" path="/Welcome.do"/>
>     </global-forwards>
> and under <action-mappings> :
> <action  path="/Welcome"  forward="/pages/Welcome.jsp"/>
> However, I am getting following exceptions.....I could not find
> anything regarding this message in the archive.
> Any help would be appreciated.  I am wondering if this is being caused
> by tag libs...


Did you change the struts-config file and not restart the server? Just a guess.
What does the code calling your forward look like? Is the call coming
from an index.jsp (modeled after the Struts example app)?

Susan

> ---------------------------------------------------------------------------------------------------
> javax.servlet.ServletException: Cannot create redirect URL:
> java.net.MalformedURLException: Cannot retrieve ActionForward named
> welcome
>         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
>         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
>         org.apache.jsp.index_jsp._jspService(index_jsp.java:70)
>         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
>         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
>         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 
> root cause
> javax.servlet.jsp.JspException: Cannot create redirect URL:
> java.net.MalformedURLException: Cannot retrieve ActionForward named
> welcome
>         org.apache.struts.taglib.logic.RedirectTag.doEndTag(RedirectTag.java:298)
>         org.apache.jsp.index_jsp._jspx_meth_logic_redirect_0(index_jsp.java:87)
>         org.apache.jsp.index_jsp._jspService(index_jsp.java:59)
>         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
>         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
>         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> ---------------------------------------------------------------------------------------------------
> Thanx,
> Sudip
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message