Struts : Simple Error we confuse


1.Errors are Not shown In Webpage

A.In Forwors make sure that All extensions in.JSP or Not
<global-forwards>
        <forward name="welcome"  path="/Welcome.do"/>
        <forward name="fail"  path="/login"/>  ERRor    [/login.jsp]
        <forward name="ok"  path="/ok.jsp"/>
    </global-forwards>

Error:
<action-mappings>
        <action input="/login" name="LoginForm" path="/login" scope="session" type="com.myapp.struts.LoginAction" validate="true"/>

Correct:
<action-mappings>
        <action input="/login.jsp" name="LoginForm" path="/login" scope="session" type="com.myapp.struts.LoginAction" validate="true"/>
        <action path="/Welcome" forward="/welcomeStruts.jsp"/>
    </action-mappings>
_________________________________________________
2.Login Succes but not found Resultpage - Empty

A.Check <forword-tags>

Post a Comment

Thank You

Previous Post Next Post