JSP is better than ASP.

Source: Internet
Author: User
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.

Related Article

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.