System: win2003, IIS6.0, and J2SE 5.0For beginners of JSP, JSP + IIS must have a big header!Although JK2 in Jakarta can be used to solve the problem, its configuration is rather cumbersome!Use ServletExec!For mainstream JSP servers, besides TOMCAT,
Finally, we solved the annoying garbled problem of the news system, which is much more troublesome than the bookstore system. The bookstore system only needs to add three lines of code in front of each page. However, the news system does not work.
I. Overview The cache idea can be applied to all layers of software hierarchy. It is an internal mechanism that is imperceptible to the outside world.The database itself has a cache, And the persistence layer can also be cached. (For example,
Some examples are shown on the Internet. For a simple three-level linkage, Struts, Hibernate, and other frameworks are added. This Ajax interaction does not know how it relates to these frameworks. Why is a small Demo so big.Today, I made a dwr +
In the google process, I saw this article ("NicEdit cannot get textarea value under JQuery") Get an inspiration, that is, I can use js to read the content in the nicEdit Rich Text Editor, grant the content to textarea and then submit the form. Code:
Generally, I use the method to include this file. The main reason is that the contained page will be compiled into a file at compilation, the variables can be common to each other, while the method is compiled separately, and the variables cannot
After referring to some materials, I have summarized some commonly used commands Arguments during startup. If there are any errors, I hope you can point them out.-Arch [processor architecture]Description: Category of the processor used.Example:
// Write cookieCookie cooki;Cooki = new Cookie ("bbs_0001", String. valueOf (num); // user IDCooki. setMaxAge (60*60*24*365); // cookie timeCooki. setPath ("/"); // you can create cooki in different functional Paths Based on your needs.Response.
Problem: The verification framework is used. After the jsp page fails to be verified once, the verification t page cannot be displayed no matter whether the input is correct or not.Cause: When spring creates an action object, singleton is the
Call method: Use Image labels on the jsp page to directly call the following tag code: you only need to send the code to the area where the verification code is displayed)Public static String code =
Its value range is Page, Request, Session, and Application.$ {Param. id} is related to the input, relative to request. getParameter ("id "). Obtain the input parameter id.Because the id of a. jsp submitted to B. jsp does not belong to any range of
1. Install JDKFirst download JDK 5.0 (the download page of JDK 5.0 is:Jsp "target =" _ blank "> http://java.sun.com/j2se/1.5.0/download.jsp );Run the JDK 5.0installer jdk-rj5_0_06-windows-i586-p.exe, and keep all options as default during
DisplayFile. java//*********************************File parentDirectory = null; // Current DirectoryArrayList [] file = null; // stores all files in the current directoryArrayList [] directory = null; // stores all directories in the current
Garbled characters may occur when parameters are passed in the URL on the Jsp page.The solution is as follows:1. Use the method to change Tomcat. This method is simple, but it must be modified at the server software level. If the system is slightly
Please refer to the main principle of http://blog.hunan2s.com/article.asp? Id = 233After debugging, it is successful .. AhAdd the source code ..JDK 1.5 + ECLIPSE + TOMCAT 5.0.28 + MYSQL 5.0Database TEST, table name newsField: id int auto-increment,
Four years ago, it was also the fans of Java, and sun and java. of course, RMI will not be missed, but it has not been used in any project so far. I did not want to listen to a java course yesterday, think about how much money I paid and finally I
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.