Introduction to the implementation scheme of JSP website construction

Source: Internet
Author: User

The general idea of JSP website construction is to include the link information, including the link title, Link, link prompt information, and link source website, and then generate static HTML files. Therefore, the main task is to develop a publishing system that includes inputting links and generating HTML.

In the initial stage of JSP website construction, in line with the principle of going online as soon as possible, the stalls are not too large for the time being, and functions are added slowly. Please do it a little bit.

The core content of JSP website construction is the connection of hot articles, so the link information is the main data to be maintained by the publishing system. The link content is displayed in different sections. Therefore, you need to maintain the information of the sections, such as the section name and position order. To enrich the link information, you must also provide the source website of the link, therefore, you must maintain the source website information. In addition to the preceding aspects, the connection information also includes the sequence and release date displayed in each section. Because javaei is updated every week, the release date determines whether the link is published this week or the next week. A maximum of 10 links can be displayed in each section. For more link information, see the "more" link in each section. Links, sections, and source websites are shown in.

The three main data of the publishing system are shown on the home page of the website. The link information of the main content of the website is displayed in a certain order, the connected source website is displayed.

Of course, the development tools are Eclipse and tomcat. hibernate is used for data access. The web layer uses a simple struts-like framework used in previous lectures, so you can use what you write.

When you enter a link, you should add, delete, modify, and query data, and also have the date-based preview function. JSP is used for page implementation. Many connections are dynamic connections. During preview, it is actually a common JSP request. When a static file is generated, the dynamic link must be replaced with a static HTML link, and the content of the file to which the static link points must be the content after the dynamic link is executed. Therefore, when constructing a JSP website, you cannot simply use it. The solution is to customize a tag. During previewing, the tag outputs a dynamic link, when HTML is generated, the tag is used to generate the HTML of the Dynamic Link and replace the dynamic link with the static link.

In order to make the generated HTML file easier to manage and generate algorithms, I will map the link level to the directory level.

  1. JSP bean code optimization
  2. Detailed introduction to JSP environment configuration Scheme
  3. Use stored procedures in JSP JSTL
  4. Which of ASP. NET, JSP, and PHP is better?
  5. JSP-related software

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.