Summary of JSP/JAVABEAN+TOMCAT4.0.5+MYSQL combination website building
Author:Eve Cole
Update Time:2009-07-02 17:12:20
System configuration: win2000 English version+JDK1.4.1+TOMCAT4.0.5+APACHE2.043
Development cycle: go all out, which lasted nearly 15 days.
Implementation function:
1. gallery:
Submission of pictures and related text, paginated display, and deletion.
2. Album:
Create a new album theme, submit photos and related text, display them by theme, page by page, and delete them.
3. Article/news release system:
Create new article category directory, display article categories, edit and delete articles. (With the ability to upload 10 illustrations)
4. Search articles by topic and fuzzy search.
5. Display a specified directory on the hard disk in the form of a list, automatically search for the description file in the directory, and parse its structure. When the directory containing the description file is accessed, the analysis results will be displayed together.
6. Configuration of LEO Forum (CGI) operating environment.
Knowledge points involved:
1. MYSQL database connection BEAN.
2. Paging BEAN.
3. Database query, add, modify and delete operations.
4. String filtering and replacement.
5. Parsing of text file contents.
6. TOMCAT configuration.
7. APACHE configuration.
Involving classes and common methods:
String
Replace();replaceAll();indexOf();lastIndexOf();substring();
StringBuffer
Append();
StringReader
Reader
ResultSet
getString();getInt();getDate();
StreamTokenizer
resetSyntax();ordinaryChar();wordChars();
File
FileReader
LineNumberReader
readLine();getLineNumber();
Connection
Statement
JspSmartUpload
Production experience:
1. You have to learn how to use JAVA DOC in English. Don't think that there is a Chinese document for you to read, so you will always run behind most people.
2. Beginners who use online forums and search engines always like to ask questions. It is recommended that you search online before answering. Most of the questions can be answered online because others have asked similar questions before.
3. Proficiency in Commonly Used Classes If you want to truly enter the industry, you must be proficient in some common classes. Don't ask to check JAVA DOC for a common method during the interview, which will lead to missed job opportunities. A year ago, I had this experience.
4. Thinking about the production ideas of some common website functions, such as thinking about how the article system realizes the mixed arrangement of pictures and texts. You can take a look at some production ideas for large websites.
5. Tutorials and examples on the SUN website. There are many good tutorials here, including examples of using some methods of classes in the JAVA class library.
Difficult encounters:
1. If Chinese issues were not developed on the English version of the operating system, this would not be regarded as a big deal. Until now, some problems have not found good solutions. For example, TOMCAT started in the service under the control panel will generate a DOS window after running. The two startup methods have different support for Chinese.
2. I don’t know whether the problem of bad pictures on the website is a problem with the network server or a problem with TOMCAT. There will be bad pictures.
at last:
Congratulations on using JSP/JAVABEAN technology to develop a dynamic website for the first time. After many hardships, it finally paid off! In the past two years, I have frequently visited DEV-CLUB (CHINAASP), CHINAJAVAWORLD, and JAVAUNION, and I have benefited greatly. Thanks!