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