I think you're missing a '/'
<forward name="success" path="/showDocs.jsp" />

To keep your webapp a bit cleaner, perhaps consider
<forward name="success" path="/WEB-INF/jsps/showDocs.jsp" />

-----Original Message-----
From: Ken Hu [mailto:[EMAIL PROTECTED] 
Sent: 16 November 2006 09:03
To: user@struts.apache.org
Subject: can not reach the jsp file

Dear All:

I'm doing a simple strus test, but all I can see after I try to visit
"ShowDocs.do" is a blank page.

struts-config.xml:
<action-mappings>
        <action path="/Welcome" forward="/welcomeStruts.jsp"/>
        <action path="/ShowDocs"
type="com.kenhu.cdms.servlet.ShowDocsAct">
            <forward name="success" path="showDocs.jsp" />
        </action>
    </action-mappings>

My Action class:
public ActionForward execute(ActionMapping mapping,
            ActionForm form,
            ServletRequest request,
            ServletResponse response)
            throws Exception{
        return mapping.findForward("success");
    }

I can not find anything wrong , could someone please tell me what's
going on here ?

Thanks
-- 
研發部             胡重威             Ken Hu          [EMAIL PROTECTED]

孟華科技股份有限公司
http://www.mmti.com.tw

地址: 高雄市802苓雅區中正一路120號4F-7
電話: 07-7279337 分機: 120
傳真: 07-7279377
行動: 0937083880


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to