*
The moose likes Struts and the fly likes 404 prob. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "404 prob." Watch "404 prob." New topic
Author

404 prob.

Neeraj Vij
Ranch Hand

Joined: Nov 25, 2003
Posts: 315
Hi,

I have done foloowing configuration in my struts-config.xml

<action path="/brochure"
type="com.ihg.dec.components.goDiscover.struts.GDBrochureAction"
name="gdBrochureForm"
scope="request"
validate="true"
input="/jsp/goDiscover/common/gdBrochureHomeBody.jsp">
<forward name="submitSuccess" path="/jsp/goDiscover/common/gdBrochureSuccessBody.jsp"/>
</action>

I am getting 404 error. I am not getting any exceptions in my server logs. Please give some inputs, if something is wrong with my configuration.I am using atg7.0 server

Thanks,
Neeraj.
vidya sagar
Ranch Hand

Joined: Mar 02, 2005
Posts: 580
Show your code of jsp and Action class
Neeraj Vij
Ranch Hand

Joined: Nov 25, 2003
Posts: 315
Hi,
Control is not reaching my action class. It is getting stoped during the process method of RequestProcessor class.I have extended the base class RequestProcessor.


my action class--
public class GDBrochureAction extends Action {
private static DbgLogger _logger = null;
private static final GDAppManager appManager = GDAppManager.getInstance();

static {
_logger = DbgLoggerFactory.getLogger(GDBrochureAction.class
.getName());
}

public GDBrochureAction() {
super();
}

public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws Exception{
if(isCancelled(request)) {
return mapping.findForward("submitSuccess");
}

}
vidya sagar
Ranch Hand

Joined: Mar 02, 2005
Posts: 580

if(isCancelled(request))
{
return mapping.findForward("submitSuccess");
}


where is isCancelled method.
Then suppose if condition fails nothing will return

Action class has compile time error,First correct it.
Neeraj Vij
Ranch Hand

Joined: Nov 25, 2003
Posts: 315
it is part of the complete code. I copied some of it. It is a big file. I cannot paste all of it.



Thanks,
Neeraj
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 404 prob.
 
Similar Threads
Struts validation problem..
setting up ACTION attribute of FORM element
The requested resource (/Login.do) is not available wiht Tomcat 5.0
Getting org.xml.sax.SAXParseException
Getting the Parser Error struts