You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ibha Gandhi <ga...@india.hp.com> on 2005/05/11 08:34:46 UTC
Problem using Artimus by Ted
Hi All,
I am studying the code in Artimus_1_0 to make sure
that I understand how things actually work.
I tried running http://localhost:8080/artimus/index.jsp but got the
following error
javax.servlet.ServletException: Cannot create redirect URL:
java.net.MalformedURLException: Cannot retrieve ActionForwards collection
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI
mpl.java:846)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:779)
org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:68)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
25)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Can anyone please help me to make this application work.
Here is the code..
The index.jsp of the application contains two lines:
code:
-----------------------------------------------------
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<logic:redirect forward="welcome"/>
-------------------------------------------------------
The code in struts-config is:
-------------------------------------------------------
<global-forwards>
.......
<!-- MENU forwards -->
<forward
name="welcome"
path="/do/Menu"/>
.......
</global-forwards>
<action
path="/Menu"
name="menuForm"
type="org.apache.struts.scaffold.ExistsAttributeAction"
parameter="application;HOURS">
<forward
name="success"
path=".article.Menu"/>
<forward
name="failure"
path="/do/MenuCreate"/>
</action>
----------------------------------------------------
Tiles-def code is
----------------------------------------------------
<definition name=".article.Menu" extends=".article.Base">
<put name="title" value="article.Menu.title"/>
<put name="content" value="/article/content/menu.jsp"/>
<put name="navbar" value="/article/common/navbarMenu.jsp"/>
</definition>