I have the text:
Dynamic Web Application
Development using
XML and Java
David Parsons
ISBN: 9781844805419
well,
I build/compile war files success ...
yesterday, I was able to to the same for struts apps[app=changed name], but today I am getting errors for Struts only, i can NOT run struts completelly, I use TOMCAT, Well???
Error in struts appeared when go to run a script with LogFactory, Log classes but I continue run non-struts apps success!
ERRORS
HTTP Status 404 - /strutswebapp/page1.htm
--------------------------------------------------------------------------------
type Status report
message /strutswebapp/page1.htm
description The requested resource (/strutswebapp/page1.htm) is not available.
2222222222
HTTP Status 404 - /strutswebapp/home.jsp
--------------------------------------------------------------------------------
type Status report
message /strutswebapp/home.jsp
description The requested resource (/strutswebapp/home.jsp) is not available.
eg
Examples15\Examples\Example 15-3 Struts Global Forward App\java
Code:Page1Action.java package com.webhomecover.action; import org.apache.struts.action.* ; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import javax.servlet.http.*; public class Page1Action extends Action { private static Log log = LogFactory.getLog(Page1Action.class); public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { if (log.isInfoEnabled()) { log.info("In Page1Action"); } return mapping.findForward("success"); } }


Reply With Quote
Bookmarks