servlets - Action form forward path not a url -
what mean when have path example below in first forward (then success forward)
<action type="com.testpackage.servlettest" path="/classhomepage" scope="request"> <forward name="success" path=".class.homepage" redirect="true" /> <forward name="failure" path="/homepage.do" module="/" redirect="false" /> </action> i understand failure forward forward page "/homepage.do" if "failure" returned
return mapping.findforward("failure"); but happens if return
return mapping.findforward("success"); what package try load? how find out looking @ web.xml , struct-config.xml files?
you using tiles, , need in tiles definition file (usually web-inf/tiles-defs.xml). search <definition name=".class.homepage"> ... </definition> find out view direct to.
Comments
Post a Comment