SSH development steps and problems encountered

Source: Internet
Author: User

The past week has been assigned to an ERP project team to assist in the development of SSH projects. I've only known ssh before, and in the past week, many new knowledge in the development of middle school, there are about 2 aspects: After the framework is set up, write SSH project steps, problems encountered in development and solutions.

To write an SSH project:

First, set up the corresponding table in the database, down in the MyEclipse to open the db browser view, set up Hibernate mapping files and class files, configure the mapping, and then you can write for the table of additions and deletions to check the operation, business logic and action, They call each other with spring for injection; After the JSP file is written, you can configure the action in the Struts.xml file.

In general, for these processes, the SSH project is important for business logic and interfaces.

Problems encountered in development and solutions:

1 SQL statement Error:

A compares strings with single quotes.

b Multi-table connection: No LEFT Join

2 ERP projects generally have the audit process, the audit process to invoke other action to show the audit order details, and after the audit to callback other processes. After finding the data, we found that the order details were displayed with the <s:action tag, and the result was not (it only accepted the static action name). Finally, when the order details are displayed, use the IFRAME control, and the callback action is submitted with the form form. Although struts provides access to action, it eventually takes a form form to submit.

Development experience: Although the use of a new framework, there are many new things, but the basic idea has not changed, the problem solving ideas or the same.



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.