confused

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

confused

ganesan malairaja

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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: confused

pacea
Try the jspbook - http://www.jspbook.com .  You can download the entire book after you register.  It's written for tomcat 5 using jdk 1.4 but seems to translate well for tomcat4 (for the most part).  This will help.
al


>
> 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: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: confused

Adile Abbadi
In reply to this post by ganesan malairaja
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:[hidden email]]
Sent: July 26, 2005 7:40 PM
To: [hidden email]
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: [hidden email]
For additional commands, e-mail: [hidden email]

--
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: confused thx

ganesan malairaja
In reply to this post by pacea
thanks guys

i have managed to solve the problem ..

the solution was staring at my face all the time

i just the mysql-j-connector.jar file  into  the common/lib folder :)

thanks for ur help

<html><DIV>
<DIV><FONT color=#3333cc face="Lucida Handwriting, Cursive"><EM><STRONG><IMG
height=16 src="http://graphics.hotmail.com/emarrow_right.gif"
width=16>Ganesan_Malairaja<IMG height=16
src="http://graphics.hotmail.com/emarrow_left.gif"
width=16></STRONG></EM></FONT></DIV></DIV></html>



>From: [hidden email]
>Reply-To: "Tomcat Users List" <[hidden email]>
>To: "Tomcat Users List" <[hidden email]>
>Subject: Re: confused
>Date: Wed, 27 Jul 2005 10:40:51 +0000
>
>Try the jspbook - http://www.jspbook.com .  You can download the entire
>book after you register.  It's written for tomcat 5 using jdk 1.4 but seems
>to translate well for tomcat4 (for the most part).  This will help.
>al
>
>
> >
> > 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: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [hidden email]
>For additional commands, e-mail: [hidden email]
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]