1. First make sure you have installed Apache Tomcat. Tomcat 6.0 for the http://www.duote.com/soft/10004.html
2. Create a folder myweb under the webapp folder of Tomcat (any name is used to store website content ). And create a folder WEB-INF under
Now I am building the JSP platform.
I use Windows2000 Professional + JDK + Tomcat
JSP platform construction:
1. Download and install JDK:
Step 1: go to Sun's Java JDK 1.4 for free installationProgramTo download the Home Page:
Disable eclipse before making any changes.
Find the JAR file in the eclipse installation directory:
Myeclipse 7.0 m2 \ eclipse \ plugins \ com. genuitec. Eclipse. wizards_6.9.200.zmyeclipse69200200809.jar
Open the jar using WinRAR:
Drag \
Configuration of JSP, Servlet, and JavaBean environments in Tomcat
I often see JSP beginners asking how to configure JSP, Servlet, and bean in Tomcat, So I summarized how to configure
Set JSP, Servlet, and Ben to help beginners.I. Development
JSP standard action (actually, the GetUserName and setusername methods of object attributes are used)
Common:// Create a JavaBean object named orderCreate Object Name create object type specify object range (page. Request, response, application) is
1 // First: include command: When JSP is converted to servlet, the specified file 2 3 4 5 // Type 2: action element: Introduce the specified file when the JSP page is requested 6 7 8 9 10 11 12 // The second method can
Separation of HTML and JSP developmentDate: 2003-10-15 17:28:16Source: dynamic website creation GuideAuthor: sayyes
In the traditional JSPProgram.CodeIt is convenient to write code
Public void doget (httpservletrequest request, httpservletresponse response)
Throws servletexception, ioexception {// ID of the photo in the databaseString photoid = NULL;Try {Photoid = request. getparameter ("photoid ");}Catch (exception e ){E.
1. Using the init () method in servlet for high-speed cacheAfter the application server initializes the servlet instance and provides services for client requests, it will call the init () method of the servlet. In the lifecycle of a servlet, The
1. JavascriptJavascript is a new description language that can be written into HTML files. Javascript can be used to respond to user request events (such as form input) without any network to transmit data back and forth. Therefore, when a user
Servlet and JSP Learning GuideOriginal title of basic information: servlet & JSP: a tutorial Author: (plus) Budi kurniawan Translator: Cui Yi Yu Zhe Jun Yu Li Min series name: Chapter Hua programmer library Press: Machinery Industry Press ISBN: 97871
This is actually very simple, as long as you add the above Code to HTML, it will be OK, the premise is that you have installed a player on your computer, such as RealPlay.
Copy codeThe Code is as follows:
More players and settings are
This section describes the ServletContext and ServletConfig interfaces. Through these two interfaces, we can. set some parameters in xml, such as the database address and user name and password, to be used by Servlet, so that the Servlet does not
Custom tags)
(Prepared study notes)
Step 1. Create a Tag handler class (Tag Processor class)
Package javax. servlet. jsp. tagext
Develop a label processor class for an empty Body -----> 1) implements Tag 2) extends TagSupport
The method of
Image. jsp -------------------------------- Jsp page for Generating Random verification code Images
The Code is as follows:
Copy codeThe Code is as follows: Java. awt. image. *, java. util. *, javax. imageio. * "%>
Color getRandColor (int fc, int bc)
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