Web application development method (reposted)

xiaoxiao2021-03-06  107

Our development group 5 people, a group leader;

Develop web applications by MVC;

Use WinCVS to make a version control team development;

Ant to realize compilation publishing;

Application Server uses Tomcat, when used (Apache and Tomcat integration);

The database is Sybase and Oracle, which uses a connection pool;

The report is used by MingReport;

Project development stage: demand analysis, design, coding, test, trial operation, official operation;

An engineering project is almost 50W, 6 people, and 6 months.

----------------------------------

Our MVC implementation is this:

MVC mode: JSP, HTML acts as a VIDW (view); servlet acts as a Controler; Class class acts as a Module;

JSP is added by submitting the Form form, or the parameter URL requests the sevlet; servlet, the DOPOST or Doget method is added, deleted, and more

New, query the data of the data, then use the Forward method or response.sendredirect to return to the JSP page, here the servlet controls the process, the Class class handles business logic;

The request.setttribute () saves the data in the servlet, and the data is obtained in the JSP page request.getaTRibute ().

Some basic tools have been packaged in our project, such as (database connection, query add delete updates, page display, etc.), specific projects also extract some public business

Logical package is different. There is a completely perfect JS library and CSS style sheet.

In our development, almost every JSP page should be a servlet and module, of course, add, delete, update, query the composite function in a JSP page.

Only query data is written in SQL, insert, update, and delete it does not write SQL, just bind the fields in the Form and the fields in the table, here we encapsulate several classes to implement.

What I want to say is: I haven't used these things such as struts, spring, hibernate, ejb in our engineering development, and I hope that we have developed more new things or improve our technical content, but I don't know What to do, confuse if we need to use some Framework, is our development?

In general, I think your project management design and development still has a certain level, and many system methods developed using JSP / JavaBeans structure are raw, at least in design ideas, there is no MVC or obvious hierarchical concept.

In fact, no matter what framework and structure used, as long as its own system can do hierarchical control strictly clear, the class has achieved a certain degree of decoupling, such a system has a good scalability and reuse. Use those frames to be initial purpose is to strengthen (forced) or facilitates beginners to achieve a hierarchical purpose.

I have discovered from your expression:> Only write SQL, insert, update, delete if you query data, you don't need to write SQL, just> To bind the fields in the Form and the fields in the table, Here we encapsulate several classes to achieve.

Among them, "Insert, Update, Delete Don't Write SQL", I don't know what technology do you use? Does this technology affect performance issues? Sitting When you are read, it is recommended to use a cache to improve performance.

You have such a good foundation, I think using struts, ejb, spring or hibernate, etc., you can upgrade your system, because their purpose is consistent, and there will be many advantages, especially in terms of maintenance. Because everyone is more than understanding these popular frameworks, everyone can maintain the expansion of your system.

转载请注明原文地址:https://www.9cbs.com/read-103601.html

New Post(0)