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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -