JSP has been completed in two semesters. In this way, only the last three chapters of software testing are left in the second semester. I compared JSP with my previous experience with ASP. jsp is indeed more suitable for websites than asp! However, there is no second school year, and there are no other advantages.
1. What impressed me most is the JSP filter.
This little thing is too suitable for websites. It is too difficult to implement such a thing in ASP. To ensure that each page is checked for request input, you must carefully check whether each page includes the request check.Code. It is easy to miss. In addition, newly added pages are Trojans uploaded to websites by hackers. It is not in this limit.
The filter is used. Oh my God! It's so easy! Configure/* URL-pattern, and write the filter with confidence! Remove all sensitive characters. OK! Don't worry about injection! This is so convenient! This is just the usual security use. making good use of the filter can make the website so convenient!
2. jsp is completely object-oriented. ASP can be written like class... end class. But it does not inherit the characteristics such as polymorphism. Inflexible use
3. asp cannot be detached from <%>, or it cannot make the artist handle the website comfortably. JSP tag, el... To make it easy for the artist to see the angle brackets, a page can be completely left blank <%>. It is very helpful for the artist to maintain the page
4. I was amazed at the addition of JSP, Which is JavaBean. Use <JSP: setproperty property = "*".../>. You can do nothing. Install all the items in the request to the corresponding attributes of Java Bean at one time. This is impossible in ASP. Write your own method.
5. When talking about usebean, we thought of four scope variables of JSP. Pagecontext, request, session, and application. These four variables, combined with various tags, and El, are very flexible to use, which makes ASP difficult to look back! ASP can only use the six objects. You must put the object in <%>. It must also be written. Add a long string of custom classes or methods. The development efficiency is still inferior to that of JSP.
Now I like JSP very much. Like JSP labels and El. Haha! Let's add something else.