Main BLOGGER
Google
WWW THIS BLOG
Thursday, August 31, 2006
 
Java Preference resources
An introduction to the API
http://www-128.ibm.com/developerworks/java/library/j-prefapi.html?ca=dgr-lnxw16PrefAPI
1. init the Preference object
2. read value
3. write value
4. import/export tree
5. listening on the change


Preference with encryption
http://www.ddj.com/dept/windows/184416587

Monday, August 21, 2006
 
First servlet and JSP
1. download and install Eclipse and Tomcat plugin
see http://www-128.ibm.com/developerworks/library/os-ectom/

2. create a Tomcat project

3. Write the Servlet code

4. create web.xml file
specify servlet and servlet-mapping section

5. start tomcat
from the icon

6. in the browser type in:
http://localhost:8080/firstServlet/hello


Also see
http://www.xwt.org/tutorial/eclipse/
http://jakarta.apache.org/cactus/integration/howto_tomcat.html

Trouble shoot for JSP
If tomcat is started as windows services, tomcat will complain it can not find tools.jar to compile jsp file. To solve this issue, simply copy the tools.jar file to TOMCAT_HOME/common/lib

Thursday, August 17, 2006
 
Subversion: replacement for CVS
http://www-128.ibm.com/developerworks/java/library/j-subversion/index.html

1. Similiar to CVS: diff, patch, tag, commit, revert, and branch
2. Support non-ASCII test and binary data
3. track moves and deletes
4. lack of obliterate (Once the content is in the repository, it will never be lost)

1. Install Subversion plugin in Eclipse
a. In eclipse, Menu Help --> Software Updates --> Find and Install...
b. Check "Search for new features to install" --> Click "Next" Button
c. Click "New Remote Site", input Name-->"Subclipse",
URL "http://subclipse.tigris.org/update_1.0.x"
d. Check "Subclipse", and click "Finish"

Following the wizard to finish up the installation.

2. Check out
svn URL
svn://repos.pok.ibm.com/zhmc


Powered by Blogger

Google
WWW THIS BLOG