SSI Framework Development

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.