Post Subject: question about Struts (Author: bird Posted: 2002-08-23 1:30 AM)
I just want to know your opinion on these problems. What is the real benefit of Struts? Are each web application written into this form? Is it better performance or just a better organizational structure? Why is it not good in java in JSPS? It's just from Java and HTML? From my personal point of view, I prefer to include Java in HTML instead of HTML in Java (servlets / beans). Thank you
Reply Topic: Re: question about Struts (Author: Eagle Posted: 2002-08-25 2:27 PM)
According to my experience, and some of the articles I have read, whether I use Struts depending on the size of the application. If you only have two or three JSP pages, and you don't need all things to provide, I think there is no need to use a frame like Struts that will bring a lot of management costs, but a large application can be Benefit. I think it is important to separate display layers with commercial logic layers. I have used Beans and JSPs in the first Java web application project, but there are many conditions logic on routing and data operations in JSP, which makes debugging very difficult, more no use of routing changes. When we must first find the code, then change it. Since then, we purchase / build an application architecture according to MVC Concept, which forces us to use components and results (patterns and views) instead of encoding all things in JSP. Routing is also in the properties file, so when a path changes, do not change the code, or restart the application server. These are just my thoughts ...
Reply Topic: Re: question about Struts (Author: jintooth Published: 2002-09-06 11:39 AM)
Web development does exist like this: Is it written Java code in JSP or writes HTML code in the Java Servlet? I have two experiences. Write an HTML code in the Java Servlet. For a complex display page, it is simply a nightmare, especially HTML code with a lot of modified pages, and some don't know what to do. No matter what point of view, this is not an effective way. Write a Java code in JSP, and most companies are currently employed. Its effect is also dependent on the designer's ability. A good designer can make Most of the JSP in HTML, Java code is just some simple embedded data Provider. As for the control, I will write another JSP page specifically managed, and these control pages are not HTML code, the function is a bit like servlet. In fact, this design is similar to Struts, but it has not improved theory. It is not allowed to implement MVC in unknowing, although not using Struts. I think that truly improves efficiency is MVC thinking, Struts is just an implementation, we can implement one MVC at all, it may be more suitable for yourself. This can be determined according to the size of the project.
Reply Topic: Re: question about Struts (Author: lrfly Posted: 2002-12-04 1:38 PM)
I very much agree with Jintooth's point of view, I have done a system, which is implemented with JSP JavaBeans, where the JSP file is named divided into "file name" "form" ".jsp" and "file name" "PRG" ".Jsp" two kinds, the former one is mainly responsible for interface display (JSP HTML), which is responsible for process control (pure JSP), while JavaBeans implements business logic. I understand now that this is a simple MVC implementation, huh, huh. For whether I use MVC design mode or Struts, I think it is only to really understand the depth of it (not just skilled applications), and it may be better, otherwise the fastest and most effective way is the best (for project, The use of HTML in Java cost is lower, more effective). Reply Topic: Re: question about Struts (Author: programboy Published: 2003-02-16 12:30 AM)
The use of MVC is a proven effective development means, Struts is a framework that implements MVC, using it to improve the speed and quality of development, but I often feel that it is a little too dead in development, making some original Very simple things become very complicated, so my suggestion is to determine the technique used based on the size and complexity of the program. Submit data from a typical struts program to database operations, need to be from the page -> Action class-> BO class -> DAO class -> form bean This is too much trouble for a small website, and more Nasty is if this operation is not only the database operation, the above aspect is more clumsy. So I think Struts is suitable for Web applications whose Entity and database tables correspond to the database operation. This is just a point of view, because the time of Struts is not long, or maybe I haven't fully understood the true marrow, anyway, it is now in this way: if the page is extracted, the data is more operation, It's not easy to use Struts.
Reply Topic: Re: question about Struts (Author: nikita Published: 2003-02-17 12:09 PM)
BO class -> DAO class is not StruCTS requirements. Struts is the most useful is the ideology of Action. Second Actionform is also good, other things see your own demand is going to pay, there is no need to strictly follow, called dogmatism!
Reply Topic: Re: question about Struts (Author: huyuefox Posted: 2003-06-23 3:39 PM)
Yes, Structs can have a lot of variations to implement MVC.