JSP running environment Getting started setup

Source: Internet
Author: User

JSP basic articles have a lot of, but still have a lot of friends asked me to get started JSP some related issues. So simple to write their own installation process,

I often use ghost to restore the system, after the recovery, no JSP running environment, I operate as follows:
1
Installation j2sdk-1_4_2_04- Windows-i586-p.exe (full default installation)

2
Configure classpath,
Classpath=c:j2sdk1.4libtool.jar;c:j2sdk1.4libdt.jar;

3
Extract resin2.1.12 to C:resin

4
under cmd   enter &NBSP
C:
Cd resin
Cd bin
Httpd-install

5
Modify c:resinconfresin.conf
To change <app-dir>doc</app-dir> to <app-dir>d: Wwwjsp</app-dir>
where d:wwwjsp is my JSP service directory

6
Install MySQL, full default install
Enter C:mysqlbin, Run Winmysqladmin.exe, enter user name and password (System has default
Username and password),
7
in [services] (My Computer-control Panel-management tools-services), find MySQL, start

8
in [ Services] (My Computer-control Panel-management tools-services), find Resin web server, start the

9
Create hello.jsp under D:wwwjsp, as follows
<%  out.println ("Hello,world");  %>


ie inside input http://localhost:8080/hell.jsp, display Hello,world, On OK

to connect to MySQL
One
download mysql driver, org.gjt.mm.mysql
http://www.jspcn.net/htmldown/51654541354348.html


placed under D:wwwjspweb-inflib


Write the MySQL connection database JSP program, refer to the following:
http://www.webjx.com/ Program/200410181.htm
Where the connection string is changed to:
string url = "jdbc:mysql://localhost/test?user=root& Password=&useunicode=true&characterencoding=8859_1 " 
to create a table of its own in database test, the relevant MySQL operations can find their own

14 Test, should OK

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.