Function: Enter the ID number, inquire personal information
Build tables,HTML and js,action ( Configure struts),bo and boimpl ( config spring),sqlmap
1. Create a table in the database
Define table columns and add data to the table.
2. Write the HTM and js files.
The function in the HTML is written in the JS file.
Js file using the ajax,ajax call action,action need to use bo implementation Spring 's injection capabilities.
This method allows you to return information in the database.
3. Write action.
The Action needs to use spring 's dependency injection.
Then the struts are configured, andthe namespace in the. XML file is in Ajax It is used in the URL.
4. Write bo and Boimpl
Bo writes the interface. Boimpl implements the interface.
Then configure it in Spring , and notethatBeanid is used in the action .
5. Write Sqlmap
Specifies another form of SQL statement.
Eg:
<sqlmap namespace= "WX_ZZCX" >
<select id= "select_wx_zzcx" resultclass= "Resulthashmap" >
SELECT * from Wx_ldrk_zzcx WHERE sfzh= #SFZH #
</select>
</sqlMap>
And where namespace and ID are used in boimpl .
SSI Framework Development