You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ganesan malairaja <ss...@hotmail.com> on 2005/07/27 03:39:43 UTC
confused
guys i am seriously confused now..
a normal jsp i can display in tomcat..
ok i have some questions here :-
1) let say i have admin.jsp , i create a folder call MGT .. i put in side
the file admin.jsp and create a WEB-INF folder and inside i put web.xml ..
is it correct ?
2) do i have customise web.xml or can simply copy and paste the default
WEB-INF folder into MGT.
3) i having problem displaying jsp files with Database access, do i haveto
use the same mysql-javaconnecter or some other file ( need indepth guide )
? i know the are alot of guides there .. but most of the skip the
prerequisite .. what i really need to have in my linux system in order to
setup the tomcat seerver which can display jsp with database access
i am sorry if the questions are elementary.. but i have tried to solve on my
own but no solution till now
any help will be greatly appreciated ...
thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: confused
Posted by Adile Abbadi <ad...@minitdrugs.com>.
It's really quite simple - you first need a JDBC driver for Mysql - once you
have that place it in the common/lib directory under tomcat. Restart tomcat
and the driver will be loaded into memory.
Once you have that - use Java code to connect to your db. That's it - you
don't have to fool around with WEB-INF folders or web.xml or anything like
that unless you plan on using beans and/or connection pooling classes.
I know you have checked the web - but keep checking - there is a ton of info
out there.
HTH
Adile
-----Original Message-----
From: ganesan malairaja [mailto:ssganesan@hotmail.com]
Sent: July 26, 2005 7:40 PM
To: tomcat-user@jakarta.apache.org
Subject: confused
guys i am seriously confused now..
a normal jsp i can display in tomcat..
ok i have some questions here :-
1) let say i have admin.jsp , i create a folder call MGT .. i put in side
the file admin.jsp and create a WEB-INF folder and inside i put web.xml ..
is it correct ?
2) do i have customise web.xml or can simply copy and paste the default
WEB-INF folder into MGT.
3) i having problem displaying jsp files with Database access, do i haveto
use the same mysql-javaconnecter or some other file ( need indepth guide )
? i know the are alot of guides there .. but most of the skip the
prerequisite .. what i really need to have in my linux system in order to
setup the tomcat seerver which can display jsp with database access
i am sorry if the questions are elementary.. but i have tried to solve on my
own but no solution till now
any help will be greatly appreciated ...
thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.5/58 - Release Date: 7/25/05
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.5/58 - Release Date: 7/25/05
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org