In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces JSP how to build a website, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
The general idea of JSP website construction is to include link information (including link title, link prompt information, link source website, etc.), and then generate a static HTML file. So the main task is to develop a publishing system that mainly includes typing links and generating HTML.
At the initial stage of JSP website construction, in line with the principle of going online as soon as possible, the stall is not too big for the time being, and the function is slowly added, a little bit.
The core content of JSP website construction is the connection of hot articles, so the linked information is the main data to be maintained by the publishing system. The link content is displayed in different sections, so it is necessary to maintain the information of the plate, such as the name of the plate and the order in which it is displayed. In order to enrich the information of the link, but also provide the source website of the link, so it is necessary to maintain the information of the source website. In addition to the aspects mentioned above, the connection information also includes the order and release date displayed in each section. Because javaei is updated once a week, the release date determines whether the link is posted this week or next week. A maximum of 10 links are displayed in each section, and more link information can be seen through the "more" link in each section. The relationship between the link information, the section information and the source website is shown in the following figure.
The main data of the publishing system are these three, the main page of the website shows a plate, and the link information as the main content of the website is displayed in a certain order and a certain number in the plate, while showing the source site of the connection.
Of course, the development tools are Eclipse and tomcat, and the data access directly uses the hibernate,web layer to use a simple imitation struts framework used in previous lectures.
When entering links, there should be additions, deletions, changes and queries, as well as the function of preview by date, the realization of the page uses JSP, many connections are naturally dynamic links, in fact, when previewing, it is a general JSP request. When generating a static file, the dynamic link should be replaced with a static HTML link, and the content of the file pointed to by the static link must be the content after the dynamic link is executed. So in the JSP website construction, can not use simple, I take the approach is to customize a tag, in the preview, the tag output is a dynamic link, in the generation of HTML, the tag is responsible for generating dynamic link HTML, and the dynamic link to replace the static link.
In order to make the generated HTML files easy to manage and the generation algorithm is not too complex, I let the link hierarchy correspond to the directory level.
Thank you for reading this article carefully. I hope the article "how to build a website with JSP" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.