This is a followup to an earlier message about a bug causing an infinite redirect in my Struts application. We integrate with Spring via action-servlet.xml. The following is the content of my index.jsp page (the only JSP not behind WEB-INF): ------------------------------------------------------------------------ ---------------------------------------------------------------- <br/> <br/> <center> <img src="images/loading.gif" /><strong>Loading login page</strong> </center>
<jsp:forward page="loginRedirect.do"/> ------------------------------------------------------------------------ ---------------------------------------------------------------- Now, here is the entry in struts-config.xml: ------------------------------------------------------------------------ ---------------------------------------------------------------- <action path="/loginRedirect" forward="/WEB-INF/jsp/admin/login/login.jsp" /> ------------------------------------------------------------------------ ---------------------------------------------------------------- Here is the entry in action-servlet.xml: <bean name="/loginRedirect" class="mil.af.amc.projecttracker.web.actions.LoginRedirectAction" autowire="byName" /> ------------------------------------------------------------------------ ---------------------------------------------------------------- And here is LoginRedirectAction.java: ------------------------------------------------------------------------ ---------------------------------------------------------------- package mil.af.amc.projecttracker.web.actions; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionForm; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * Quick action to forward to the login page * * @author TSgt Jason Ferguson */ public class LoginRedirectAction extends AbstractAction { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { return mapping.findForward("success"); } } ------------------------------------------------------------------------ ---------------------------------------------------------------- Unfortunately, the application is apparently not even making it to the display of index.jsp. I've commented out the <jsp:forward> and the infinite redirect still occurs. I'm attempting to run this on OC4J 10.1.3.2, using Struts 1.3.8 and Spring 2.0.6. (Note: AbstractAction.java is not doing anything in this case... it's mostly some convenience methods). JASON M. FERGUSON, TSgt, USAF NCOIC, MAJCOM Application Development Equipment Custodian, Accounts 07R, 12C DSN: 576-5309 Commercial: (618) 256-5309 Email: [EMAIL PROTECTED]