CONFIGURE ECLIPSE TO RUN SERVLET AND JSP:
1) Download apache server from www. Tomcat.apache.org that is version Tomcat 6.x
2) Extract that and put at the top level directory in C drive.
3) Now set the environment variable classpath
d:\javadev> SET CLASSPATH=.;d:\Program Files\Apache Group\
jakarta-tomcat-3.2.3\lib\servlet-api.jar
jakarta-tomcat-3.2.3\lib\servlet-api.jar
4) Same thing with jsp
d:\javadev> SET CLASSPATH=.;d:\Program Files\Apache Group\
jakarta-tomcat-3.2.3\lib\jsp-api.jar
jakarta-tomcat-3.2.3\lib\jsp-api.jar
if u want to connect to mysql database while using eclipse :
DATABASE CONNECTION WITH MYSQL
1) For database connection with mysql download mysql/j connector and extract it put it in top level c directory.
2) Copy mysql-connector-java.jar file into tomcat’s lib directory.
No comments:
Post a Comment