JSP format file is a dynamic web page technical standard, it is a dynamic web page written in Java languageProgramFiles mainly appear in the Process of website development. However, some users may accidentally download JSP files, such as jb51..
1. Install j2sdk and resin. (I installed j2sdk in D: \ j2sdk, and resin in the D: \ resin_3.0.8 folder ).
2. environment variables. Right-click my computer and choose Properties> advanced> environment variable.
1) create two system variables (click
[Previous] I often see people asking questions about request. getsession (false) on the Internet. I am also confused for the first time. I read j2ee1.3 API and how it is explained on the official website.
[Official explanation] Getsession
Public
Last week, the leader told me to deploy a JSP project. Since I have never been in touch with JSP, I immediately found some documents on the Internet about how to deploy the jsp project in Apache Tomcat 5.5. In fact, this is not difficult, but it is
The following is the full function of Automatic Filling of input boxes implemented by ajax. The database data is very small and the prompt function of Baidu homepage is largely imitated. Of course, Baidu's stuff is not just that simple! First look
A java code cannot appear because of jsp code specifications. All have the jsp custom tag technology.
Therefore, jsp's custom tag technology is to remove the java code in jsp. At the same time, encapsulation of the tag's personal feeling is also a
When I passed parameters in Chinese today, I was unable to pass the live encoding, so I thought of using escape.Request. getParameter could not receive the parameter, so he thought about how to receive the parameter.Tested and approved
Copy codeThe
If the page in jsp: include is garbled, you must add the
Request. setCharacterEncoding ('utf-8 "); // or the specified encoding (GBK or other)
%>
As shown below:
Copy codeCode: jsp-include.jsp
jsp include test page
Request.
At present, both blog forums and enterprise offices cannot do without sharing resources. By uploading files, we can share them with you to achieve extensive communication and communication among the masses. We can gain more knowledge and experience
Json is easy to understand and fast to transmit. And can be well integrated with javascript.
Without adding jar, jsp paging can be well completed.
The following describes paging instances:
Effect: jsp + servlet Technology
First: Write A javaBean
Define entities in jspBean obtain the bean property value and output the value to the page;
EL expression:$ {Object name}When an el expression is used to retrieve data, it usually uses a. sign or a. Sign. []
PageContext. findAttribute ("data"); //
JSP requires two "encodings". pageEncoding is used in the first stage, UTF-8 to UTF-8 is used in the second stage, and the third stage is the webpage from Tomcat, with contentType.
Differences between the pageEncoding and contentType attributes on
Copy codeThe Code is as follows:
Java. awt. image. *, java. util. *, javax. imageio. * "%>Color getRandColor (int fc, int bc) {// obtain a random Color from a given rangeRandom random = new Random ();If (fc> 255) fc = 255;If (bc> 255) bc = 255;Int r
1. When declaring a variable: (generate the variable into a member variable of the servlet class, multiple clients share one copy) and when using (only a local variable in a method, each client has one), try to avoid declaring a variable as a
1. Package:
Copy codeThe Code is as follows: package beanpackage;
/**
*
* @ Author lucifer
*/
Public class SystemProperties {
Public String getRuntimeEnvironmentVersion (){
Return System. getProperty ("java. version ");
}
Public String
1. Create a report style in Word or Excel.
The Row Height and column width in Excel cannot be expressed in mm or cm.
Computing required. In 1024*768, 1CM is about 38 pixels.
Based on this, you can calculate and control the row and column positions
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