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.
- JSP bean code optimization
- Detailed introduction to JSP environment configuration Scheme
- Use stored procedures in JSP JSTL
- Which of ASP. NET, JSP, and PHP is better?
- JSP-related software