[ajug-members] Struts page not found
James Mitchell
jmitchell at apache.org
Wed Sep 8 20:19:31 EDT 2004
Not just that, but 'home' is not '/Home'
if you are using any release after 1.1, you can do this:
<logic:redirect action="/Home" />
^^^^^^
...otherwise, do this
(in your jsp)
<logic:redirect forward="/home" />
(in your struts-config)
<global-forwards>
<forward path="home" path="/Home.do"/>
...
...
<action path="/Home" type="org.apache.struts.actions.ForwardAction"
parameter=".index"/>
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
----- Original Message -----
From: Bill Siggelkow
To: 'General AJUG membership forum (100-200 messages/month)'
Sent: Wednesday, September 08, 2004 7:51 PM
Subject: RE: [ajug-members] Struts page not found
Well, if it says forward="home" then you need to have a global-forward
defined in your struts-config.xml with the name of "home".
Bill Siggelkow
billsigg at bellsouth.net
From: ajug-members-bounces at ajug.org [mailto:ajug-members-bounces at ajug.org]
On Behalf Of david wible
Sent: Wednesday, September 08, 2004 7:23 PM
To: General AJUG membership forum (100-200 messages/month)
Subject: [ajug-members] Struts page not found
hello... again. I'm back asking for help. I am using Struts 1.1 and I have
an ActionForward that is not working. I've inheirited a bunch of code and
sometimes it works and sometimes it does not! Any idea why it wouldn't even
be able to find this? The error text is on the bottom. Thanks
I'm using Jboss (tomcat 4) and myeclipse and jdk 1.4
The index.jsp has this
<%@ taglib uri="struts-logic" prefix="logic" %><logic:redirect
forward="home" />
struts 1.1 has this
<action path="/Home" type="org.apache.struts.actions.ForwardAction"
parameter=".index"/>
Tiles def has this
<definition name=".default" path="/pages/layouts/layout_default.jsp">
<put name="title" value="Warranty" />
<put name="header" value="/pages/common/common_header_default.jsp" />
<put name="content" value="/pages/content/content_default.jsp" />
</definition>
<definition name=".index" extends=".default">
<put name="header" value="/pages/common/common_header_index.jsp" />
<put name="content" value="/pages/content/content_index.jsp"/>
</definition >
Error
type Status report
message /index.jsp
description The requested resource (/index.jsp) is not available.
_______________________________________________
ajug-members mailing list
ajug-members at ajug.org
http://www.ajug.org/mailman/listinfo/ajug-members
More information about the ajug-members
mailing list