struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karr, David" <>
Subject RE: Index.jsp hit 20 times and fails with "The page isn't redirecting properly"
Date Tue, 04 Mar 2008 23:59:26 GMT
Note that the "index.jsp" at the root of the webapp looks like this:

	<% response.sendRedirect("index.action"); %>

The action that this refers to is:

  <action name="index" class="com.fdar.apress.s2.IndexAction">

For some reason, instead of going to "/jsp/index.jsp", it appears to be
trying to serve "/index.jsp", which seems to be what causes the infinite

Martin Gainty pointed out to me that I was missing the "actionPackages"
init-param.  I fixed that, but that only made it so that it made it into
my "index" action class, 20 times before failing.

I tried enabling "devMode" in the file and sending
"?debug=console" to my URL, but that didn't appear to give me any
additional info anywhere.

> -----Original Message-----
> From: Karr, David 
> Sent: Tuesday, March 04, 2008 12:37 PM
> To: Struts Users Mailing List
> Subject: Index.jsp hit 20 times and fails with "The page 
> isn't redirecting properly"
> I'm trying to piece together the app described in chapter 2 
> from the Practical Apache Struts book (just from the soure 
> code zip).  I have
> Struts2.0.11 and Tomcat 6.0.14.
> After I got to the point where it appeared to deploy without 
> errors, when I execute the URL, the browser returns "The page 
> isn't redirecting properly".  I put a print statement at the 
> root "index.jsp" which shows that "index.jsp" is getting hit 
> 20 times on initial entry, before I get the "The page isn't 
> redirecting properly" error.  It never got into any of my action code.
> What could I be doing wrong?
> If it helps, I'll attach my web.xml and struts.xml.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message