Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

404 prob.

 
Neeraj Vij
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Show your code of jsp and Action class
 
Neeraj Vij
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 315
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic