Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
3Activity
0 of .
Results for:
No results containing your search query
P. 1
HeartOfStruts

HeartOfStruts

Ratings: (0)|Views: 31|Likes:
Published by api-3774122

More info:

Published by: api-3774122 on Oct 16, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

Digital Book\u00ae
Heart of the Struts Framework
A division of ActiveNET\u00ae
\ue000\ue001\ue001\ue002\ue003\ue004\ue004\ue005\ue005\ue005\ue006\ue007\ue008\ue001\ue009\ue00a\ue00b\ue00c\ue00b\ue001\ue009\ue00c\ue00d\ue009\ue007\ue006\ue008\ue00e\ue00f\ue000
1
\ue000\ue001\ue002\ue003\ue004\ue005\ue006\ue007\ue003\ue008\ue004\ue009\ue005\ue00a\ue007\ue00b\ue00c\ue007\ue003\ue007\ue00b\ue00d\ue006\ue003\ue008\ue00c\ue003\ue006\ue007\ue00a\ue00e\ue007\ue006
\ue000\ue001\ue002\ue003\ue004\ue005\ue006\ue007\ue003\ue008\ue004\ue009\ue005\ue00a\ue007\ue00b\ue00c\ue007\ue003\ue007\ue00b\ue00d\ue006\ue003\ue008\ue00c\ue003\ue006\ue007\ue00a\ue00e\ue007\ue006
\ue000\ue001\ue002\ue003\ue004\ue005\ue006\ue007\ue003\ue008\ue004\ue009\ue005\ue00a\ue007\ue00b\ue00c\ue007\ue003\ue007\ue00b\ue00d\ue006\ue003\ue008\ue00c\ue003\ue006\ue007\ue00a\ue00e\ue007\ue006
\ue000\ue001\ue002\ue003\ue004\ue005\ue006\ue007\ue003\ue008\ue004\ue009\ue005\ue00a\ue007\ue00b\ue00c\ue007\ue003\ue007\ue00b\ue00d\ue006\ue003\ue008\ue00c\ue003\ue006\ue007\ue00a\ue00e\ue007\ue006\ue00f
\ue00f\ue00f
\ue00f\ue010\ue005\ue00c\ue011\ue008\ue00d\ue012\ue013\ue004\ue014\ue003\ue011\ue008\ue014\ue002\ue003\ue00b\ue00a\ue002
\ue010\ue005\ue00c\ue011\ue008\ue00d\ue012\ue013\ue004\ue014\ue003\ue011\ue008\ue014\ue002\ue003\ue00b\ue00a\ue002
\ue010\ue005\ue00c\ue011\ue008\ue00d\ue012\ue013\ue004\ue014\ue003\ue011\ue008\ue014\ue002\ue003\ue00b\ue00a\ue002
\ue010\ue005\ue00c\ue011\ue008\ue00d\ue012\ue013\ue004\ue014\ue003\ue011\ue008\ue014\ue002\ue003\ue00b\ue00a\ue002\ue003
\ue003\ue003
\ue003
struts-config.xml
<struts-config>
<data-sources>
<data-source>
</data-source>
</data-sources>
<form-beans>
<form-bean>
<form-property/>
</form-bean>
</form-beans>
<global-exceptions>
<exception>
</exception>
</global-exceptions>
<global-forwards>
<forward>
</forward>
</global-forwards>
<action-mappings>
<action>
<exception/>
<forward/>
</action>

</action-mappings>
<controller/>
<message-resources/>
<plug-in/>
</struts-config>

Optional
This element is used only when connection pool objects are required
Mandatory
For each form used in struts framework requires one copy for-bean element
Optional
Exceptions commonly raised through out our application are handled via
this element
Optional
ActionForwards returned from more than one Action class are configured
here
Mandatory
For each Form one Action class is required to handle business logic,
such Action class are configured here
Optional This element is used if want to configure our own RequestProcessor
class
NA This element is used to configure messages used often in struts framework
Optional This element is used only when validation and Tiles frameworks are
used
Digital Book\u00ae
Heart of the Struts Framework
A division of ActiveNET\u00ae
\ue000\ue001\ue001\ue002\ue003\ue004\ue004\ue005\ue005\ue005\ue006\ue007\ue008\ue001\ue009\ue00a\ue00b\ue00c\ue00b\ue001\ue009\ue00c\ue00d\ue009\ue007\ue006\ue008\ue00e\ue00f\ue000
2
\ue015\ue001\ue00b\ue007\ue003\ue008\ue006\ue003\ue016\ue005\ue017\ue00e\ue014\ue002\ue018\ue005\ue00c\ue011\ue008\ue00d\ue003\ue010\ue014\ue00b\ue006\ue006\ue019
\ue015\ue001\ue00b\ue007\ue003\ue008\ue006\ue003\ue016\ue005\ue017\ue00e\ue014\ue002\ue018\ue005\ue00c\ue011\ue008\ue00d\ue003\ue010\ue014\ue00b\ue006\ue006\ue019
\ue015\ue001\ue00b\ue007\ue003\ue008\ue006\ue003\ue016\ue005\ue017\ue00e\ue014\ue002\ue018\ue005\ue00c\ue011\ue008\ue00d\ue003\ue010\ue014\ue00b\ue006\ue006\ue019
\ue015\ue001\ue00b\ue007\ue003\ue008\ue006\ue003\ue016\ue005\ue017\ue00e\ue014\ue002\ue018\ue005\ue00c\ue011\ue008\ue00d\ue003\ue010\ue014\ue00b\ue006\ue006\ue019
<struts-config>
<data-sources>
<data-source>
</data-source>
</data-sources>
<form-beans>
<form-bean>
<form-property/>
</form-bean>
</form-beans>
<global-exceptions>
<exception>
</exception>
</global-exceptions>
<global-forwards>
<forward>
</forward>
</global-forwards>
<action-mappings>
<action>
<exception/>
<forward/>
</action>

</action-mappings>
<controller/>
<message-resources/>
<plug-in/>
</struts-config>

\ue000\ue001\ue002\ue001\ue003\ue004\ue005\ue006\ue007\ue008\ue009\ue004\ue00a\ue00b\ue00c\ue00d\ue00e
\ue00f\ue004\ue006\ue010\ue011\ue008\ue001\ue00a\ue009\ue004\ue00a\ue00b\ue00c\ue00d\ue00e
\ue00f\ue004\ue006\ue010\ue012\ue006\ue004\ue013\ue008\ue006\ue002\ue014\ue009\ue004\ue00a\ue00b\ue00c\ue00d\ue00e
\ue015\ue016\ue007\ue008\ue013\ue002\ue00c\ue004\ue00a\ue009\ue004\ue00a\ue00b\ue00c\ue00d\ue00e
\ue00f\ue004\ue006\ue017\ue001\ue006\ue018\ue009\ue004\ue00a\ue00b\ue00c\ue00d\ue00e
\ue019\ue007\ue002\ue00c\ue004\ue00a\ue009\ue004\ue00a\ue00b\ue00c\ue00d\ue00e
\ue015\ue016\ue007\ue008\ue013\ue002\ue00c\ue004\ue00a\ue009\ue004\ue00a\ue00b\ue00c\ue00d\ue00e
\ue00f\ue004\ue006\ue017\ue001\ue006\ue018\ue009\ue004\ue00a\ue00b\ue00c\ue00d\ue00e
\ue019\ue007\ue002\ue00c\ue004\ue00a\ue01a\ue001\ue013\ue013\ue00c\ue00a\ue00d\ue00e
\ue01b\ue008\ue01c\ue005\ue008\ue01d\ue002\ue019\ue007\ue002\ue00c\ue004\ue00a\ue01a\ue001\ue013\ue013\ue00c\ue00a\ue00d\ue00e
\ue003\ue008\ue01d\ue01d\ue00c\ue004\ue00a\ue019\ue007\ue002\ue00c\ue004\ue00a\ue01a\ue001\ue013\ue013\ue00c\ue00a\ue00d\ue00e
\ue009\ue004\ue00a\ue002\ue006\ue004\ue01e\ue01e\ue008\ue006\ue009\ue004\ue00a\ue00b\ue00c\ue00d\ue00e
\ue01a\ue008\ue01d\ue01d\ue001\ue00d\ue008\ue01b\ue008\ue01d\ue004\ue005\ue006\ue007\ue008\ue01d\ue009\ue004\ue00a\ue00b\ue00c\ue00d\ue00e
\ue012\ue01e\ue005\ue00d\ue00c\ue00a\ue009\ue004\ue00a\ue00b\ue00c\ue00d\ue00e
\ue00e\ue002\ue00d\ue003\ue010
\ue00e\ue002\ue00d\ue003\ue010
\ue00e\ue002\ue00d\ue003\ue010
\ue00e\ue002\ue00d\ue003\ue010\ue005\ue006\ue002\ue007\ue008\ue009\ue00a
\ue005\ue006\ue002\ue007\ue008\ue009\ue00a
\ue005\ue006\ue002\ue007\ue008\ue009\ue00a
\ue005\ue006\ue002\ue007\ue008\ue009\ue00a\ue00b
\ue00b\ue00b
\ue00b
\ue00b
\ue00b\ue00b
\ue00b\ue000\ue00d\ue00d\ue011\ue011\ue011!"\ue00b

\ue008\ue009\ue007\ue00d\ue011\ue011\ue011!"\ue00b
\ue00a\ue005\ue001\ue011\ue011\ue011!"\ue00b
\ue00f\ue005\ue001\ue011\ue011\ue011!"\ue00b

\ue004\ue005\ue00c\ue002#\ue005\ue011\ue011\ue011!"\ue00b
Digital Book\u00ae
Heart of the Struts Framework
A division of ActiveNET\u00ae
\ue000\ue001\ue001\ue002\ue003\ue004\ue004\ue005\ue005\ue005\ue006\ue007\ue008\ue001\ue009\ue00a\ue00b\ue00c\ue00b\ue001\ue009\ue00c\ue00d\ue009\ue007\ue006\ue008\ue00e\ue00f\ue000
3
\ue01a\ue007\ue00a\ue00e\ue007\ue006\ue003\ue01b\ue005\ue00a\ue01c\ue011\ue014\ue005\ue01b
\ue01a\ue007\ue00a\ue00e\ue007\ue006\ue003\ue01b\ue005\ue00a\ue01c\ue011\ue014\ue005\ue01b
\ue01a\ue007\ue00a\ue00e\ue007\ue006\ue003\ue01b\ue005\ue00a\ue01c\ue011\ue014\ue005\ue01b
\ue01a\ue007\ue00a\ue00e\ue007\ue006\ue003\ue01b\ue005\ue00a\ue01c\ue011\ue014\ue005\ue01bActionForm
setXXX(){}
setXXX(){}
validate(){}
Action
execute(){
}
JSP

SUCCESSS u ccess. j sp
FAILEDF ai l ed . j sp
Homeind ex.jsp

\ue000\ue001\ue002\ue003\ue004\ue005\ue006\ue005\ue003\ue007\ue008\ue008\ue006\ue009\ue005\ue00a\ue004\ue00b\ue00c\ue00d\ue00e\ue00f\ue010\ue003\ue00e\ue00a\ue006\ue011
\ue000\ue001\ue002\ue003\ue004\ue005\ue006\ue005\ue003\ue007\ue008\ue008\ue006\ue009\ue005\ue00a\ue004\ue00b\ue00c\ue00d\ue00e\ue00f\ue010\ue003\ue00e\ue00a\ue006\ue011
\ue000\ue001\ue002\ue003\ue004\ue005\ue006\ue005\ue003\ue007\ue008\ue008\ue006\ue009\ue005\ue00a\ue004\ue00b\ue00c\ue00d\ue00e\ue00f\ue010\ue003\ue00e\ue00a\ue006\ue011
\ue000\ue001\ue002\ue003\ue004\ue005\ue006\ue005\ue003\ue007\ue008\ue008\ue006\ue009\ue005\ue00a\ue004\ue00b\ue00c\ue00d\ue00e\ue00f\ue010\ue003\ue00e\ue00a\ue006\ue011\ue006
\ue006\ue006
\ue006

public ActionServlet() {}
init(ServletConfig config)
{mc=initModuleConfig();}
service(req, resp){}
service(hreq, hresp){}

doGet(hreq, hresp){}
doPost(hreq, hresp){}
process(hreq, hresp)
{}
\ue000
\ue000\ue000
\ue000\ue001
\ue001\ue001
\ue001
\ue002
\ue002\ue002
\ue002\ue001
\ue001\ue001
\ue001
\ue003
\ue003\ue003
\ue003\ue001
\ue001\ue001
\ue001
\ue004
\ue004\ue004
\ue004\ue001
\ue001\ue001
\ue001
\ue005
\ue005\ue005
\ue005\ue001
\ue001\ue001
\ue001
\ue005
\ue005\ue005
\ue005\ue001
\ue001\ue001
\ue001
\ue006
\ue006\ue006
\ue006\ue001
\ue001\ue001
\ue001
public class RequestProcessor extends Object {
init(ActionServlet, ModuleConfig){}
process(hreq, resp) {}

processActionForm(hreq, hresp){}
processActionCreate(hreq, hresp){}
processForward(hreq, hresp){}
processException(hreq, hresp){}

}
\ue000\ue001\ue002\ue003\ue004\ue005\ue006
\ue000\ue001\ue002\ue003\ue004\ue005\ue006
\ue000\ue001\ue002\ue003\ue004\ue005\ue006
\ue000\ue001\ue002\ue003\ue004\ue005\ue006\ue007
\ue007\ue007

\ue007
\ue008\ue009\ue00a\ue00b\ue00c\ue007
\ue008\ue00b\ue00a\ue00d\ue00c\ue00e\ue00f\ue00d\ue010\ue009\ue011\ue008\ue012\ue00b\ue00a\ue00d\ue00c\ue007
\ue008\ue00b\ue00a\ue013\ue00c\ue012\ue014\ue015\ue016\ue00a\ue017\ue018\ue019\ue012\ue01a\ue01b\ue01c\ue01d\ue01b\ue01a\ue00a\ue00e\ue00f\ue00d\ue010\ue009\ue011\ue003\ue004\ue005\ue006\ue008\ue012\ue00b\ue00a\ue013\ue00c\ue007
\ue008\ue012\ue009\ue00a\ue00b\ue00c\ue007
\ue008\ue009\ue00a\ue00b\ue00c\ue007
\ue008\ue00b\ue00a\ue00d\ue00c\ue00e\ue00f\ue00d\ue010\ue009\ue011\ue012\ue01c\ue001\ue011\ue008\ue012\ue00b\ue00a\ue00d\ue00c\ue007
\ue008\ue00b\ue00a\ue013\ue00c\ue012\ue014\ue015\ue016\ue00a\ue017\ue018\ue019\ue012\ue01a\ue01b\ue01c\ue01d\ue01b\ue01a\ue00a\ue00e\ue00f\ue00d\ue010\ue009\ue011\ue00a\ue01c\ue001\ue011\ue003\ue004\ue005\ue006\ue008\ue012\ue00b\ue00a\ue013\ue00c\ue007
\ue008\ue012\ue009\ue00a\ue00b\ue00c\ue007

\ue000\ue000\ue001\ue002\ue002\ue003\ue004\ue005\ue006\ue007\ue008\ue005\ue002\ue009\ue009\ue00a
\ue009\ue00d\ue009\ue01b\ue01e\ue00f\ue01f\ue01d\ue006\ue001!\ue00f\ue00d\ue010\ue009\ue011"\ue00b\ue01c\ue001\ue010\ue009\ue004#\ue007\ue00b$\ue01b%&
\ue009\ue00d\ue009\ue01b\ue01e\ue00f\ue01f\ue01d\ue006\ue001!\ue00f\ue00d\ue010\ue009\ue011"\ue00b\ue01c\ue001\ue010\ue009\ue004#\ue007\ue00b$\ue01b%&
\ue009\ue00d\ue009\ue01b\ue01e\ue00f\ue01f\ue01d\ue006\ue001!\ue00f\ue00d\ue010\ue009\ue011"\ue00b\ue01c\ue001\ue010\ue009\ue004#\ue007\ue00b$\ue01b%&
\ue009\ue00d\ue009\ue01b\ue01e\ue00f\ue01f\ue01d\ue006\ue001!\ue00f\ue00d\ue010\ue009\ue011"\ue00b\ue01c\ue001\ue010\ue009\ue004#\ue007\ue00b$\ue01b%&\ue007
\ue007\ue007
\ue007

\ue015$\ue00e%\ue007\ue00e\ue00f\ue00d\ue010\ue009\ue011\ue003\ue004\ue005\ue006\ue007\ue009\ue01a\ue007$\ue01a\ue01a\ue01d\ue005\ue001\ue01f\ue007$\ue01a\ue007\ue00f\ue00d\ue001\ue007 \ue005\ue00f\ue01f\ue01d\ue006\ue001\ue007 $\ue00d\ue01f\ue007 \ue00e\ue01c\ue001$\ue01b\ue001\ue01a\ue007 \ue00f\ue00d\ue001\ue007 \ue00d\ue001\ue000\ue007 \ue009\ue00d\ue01a\ue01b$\ue00d\ue00e\ue001\ue007 \ue00f\ue010\ue007 \ue005\ue00f\ue01f\ue01d\ue006\ue001\ue00e\ue00f\ue00d\ue010\ue009\ue011\ue007 \ue00f\ue002'\ue001\ue00e\ue01b\ue007 \ue010\ue00f\ue01c\ue007\ue001$\ue00e%\ue007\ue00e\ue00f\ue00d\ue010\ue009\ue011\ue003\ue004\ue005\ue006\ue007\ue010\ue009\ue006\ue001\ue007

\ue009\ue00d\ue009\ue01b\ue01e\ue00f\ue01f\ue01d\ue006\ue001($\ue01b$)\ue00f\ue01d\ue01c\ue00e\ue001\ue01a"\ue005\ue00e&
\ue009\ue00d\ue009\ue01b\ue01e\ue00f\ue01f\ue01d\ue006\ue001($\ue01b$)\ue00f\ue01d\ue01c\ue00e\ue001\ue01a"\ue005\ue00e&
\ue009\ue00d\ue009\ue01b\ue01e\ue00f\ue01f\ue01d\ue006\ue001($\ue01b$)\ue00f\ue01d\ue01c\ue00e\ue001\ue01a"\ue005\ue00e&
\ue009\ue00d\ue009\ue01b\ue01e\ue00f\ue01f\ue01d\ue006\ue001($\ue01b$)\ue00f\ue01d\ue01c\ue00e\ue001\ue01a"\ue005\ue00e&\ue007
\ue007\ue007
\ue007
\ue009\ue00d\ue009\ue01b\ue01e\ue00f\ue01f\ue01d\ue006\ue001\ue01e\ue001\ue01a\ue01a$\ue011\ue001*\ue001\ue01a\ue00f\ue01d\ue01c\ue00e\ue001\ue01a"\ue005\ue00e&
\ue009\ue00d\ue009\ue01b\ue01e\ue00f\ue01f\ue01d\ue006\ue001\ue01e\ue001\ue01a\ue01a$\ue011\ue001*\ue001\ue01a\ue00f\ue01d\ue01c\ue00e\ue001\ue01a"\ue005\ue00e&
\ue009\ue00d\ue009\ue01b\ue01e\ue00f\ue01f\ue01d\ue006\ue001\ue01e\ue001\ue01a\ue01a$\ue011\ue001*\ue001\ue01a\ue00f\ue01d\ue01c\ue00e\ue001\ue01a"\ue005\ue00e&
\ue009\ue00d\ue009\ue01b\ue01e\ue00f\ue01f\ue01d\ue006\ue001\ue01e\ue001\ue01a\ue01a$\ue011\ue001*\ue001\ue01a\ue00f\ue01d\ue01c\ue00e\ue001\ue01a"\ue005\ue00e&\ue007
\ue002\ue007\ue000
\ue002\ue007\ue000
\ue002\ue007\ue000
\ue002\ue007\ue000\ue001
\ue001\ue001
\ue001
\ue002\ue007
\ue002\ue007
\ue002\ue007
\ue002\ue007\ue002
\ue002\ue002
\ue002\ue001
\ue001\ue001
\ue001
\ue002\ue007
\ue002\ue007
\ue002\ue007
\ue002\ue007\ue003
\ue003\ue003
\ue003\ue001
\ue001\ue001
\ue001
\ue008
\ue008\ue008
\ue008\ue001
\ue001\ue001
\ue001
\ue009
\ue009\ue009
\ue009\ue001
\ue001\ue001
\ue001
\ue00a
\ue00a\ue00a
\ue00a\ue001
\ue001\ue001
\ue001
\ue000\ue00b
\ue000\ue00b
\ue000\ue00b
\ue000\ue00b\ue001
\ue001\ue001
\ue001
\ue000\ue000
\ue000\ue000
\ue000\ue000
\ue000\ue000\ue001
\ue001\ue001
\ue001
\ue000\ue002
\ue000\ue002
\ue000\ue002
\ue000\ue002\ue001
\ue001\ue001
\ue001
DB
EJB
DAO
JDBC
\ue00a\ue007\ue000
\ue00a\ue007\ue000
\ue00a\ue007\ue000
\ue00a\ue007\ue000\ue001
\ue001\ue001
\ue001
\ue000\ue00b\ue007\ue000
\ue000\ue00b\ue007\ue000
\ue000\ue00b\ue007\ue000
\ue000\ue00b\ue007\ue000\ue001
\ue001\ue001
\ue001
\ue000\ue000\ue007\ue000
\ue000\ue000\ue007\ue000
\ue000\ue000\ue007\ue000
\ue000\ue000\ue007\ue000\ue001
\ue001\ue001
\ue001
\ue000\ue00b\ue007\ue000\ue007\ue000
\ue000\ue00b\ue007\ue000\ue007\ue000
\ue000\ue00b\ue007\ue000\ue007\ue000
\ue000\ue00b\ue007\ue000\ue007\ue000\ue001
\ue001\ue001
\ue001

\ue000\ue001\ue002\ue003\ue004\ue002\ue005\ue006\ue002\ue007\ue008\ue009\ue00a\ue00b\ue00c\ue002\ue007\ue007\ue00b\ue00a\ue003\ue00b\ue00d\ue00e\ue002\ue00c\ue008\ue003\ue00f\ue007\ue003\ue00c\ue00a\ue002\ue010\ue008\ue002\ue011\ue003 \ue012\ue002\ue00a\ue003\ue013\ue00b\ue011\ue006\ue014\ue002\ue015\ue00b\ue001\ue016\ue00f\ue017\ue003\ue00b\ue00d\ue00e\ue002\ue00c\ue008\ue003\ue008\ue018\ue010\ue008\ue003\ue019\ue002\ue010\ue001\ue007\ue003\ue016\ue00b\ue00a\ue003 \ue002\ue010\ue00c\ue018\ue003 \ue019\ue00b\ue011\ue006\ue014\ue002\ue003 \ue008\ue018\ue010\ue008\ue003 \ue017\ue010\ue00f\ue001\ue003 \ue019\ue002\ue010\ue001\ue007\ue003 \ue00b\ue001\ue002\ue003 \ue016\ue00b\ue00a\ue003 \ue002\ue010\ue00c\ue018\ue003\ue00c\ue00b\ue001\ue016\ue00f\ue017\ue01a\ue01b\ue019\ue014\ue003\ue016\ue00f\ue014\ue002\ue003

\ue000
\ue000
\ue000
\ue000
\ue000

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->