JAVA_HOME beginner

2005-08-27 Thread ganesan malairaja

i am using win XP. tomcat 5.0.xx and jdk1.4_02

i tried running several jsp pages ..it resturns this errors

Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK


how do i over come this ..pls help


thx



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



logout

2005-08-18 Thread ganesan malairaja

hi guys

i am wondering .. is it possible for me to disable and internet (http / ftp 
) connection on particular machine just buy knowing the Ip address


or logout the current user after certain amount of time

currently i have jsp codes which allow users to login .. now i want to know 
how to terminate the internet connection to the pc after certain amount of 
time..


thank you



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: query problem

2005-08-08 Thread ganesan malairaja

i have checked all.. there is no other username

i have put all the codes involved in the coding..

please point out the mistake ..


html
head
title
Staffing
/title
/head
h1Add Staff/h1
body

%@ page language=java import=java.sql.* %
%!
String con_url =  jdbc:mysql:///AAAServer?user=tjcpassword=password;
Connection c;
Statement stmt1;
String username,password,AdminName;
%

%




   try
   {
   Class.forName(com.mysql.jdbc.Driver).newInstance();
   }

   catch (Exception E)
   {

   System.err.println(CONCEPT: Unable to Load Driver );
   E.printStackTrace();
   }

%



table border=0 cellpadding=10
tr


%

   //   System.out.println(Connecting...);
   c = DriverManager.getConnection(con_url);
   //  System.out.println(Connection ok:  + c);



stmt1 = c.createStatement();
%
thUserName/th
td
form
input type=text name=username1 size=8

%
username = request.getParameter(username1);
%

/form
/td
/tr
tr
thName/th
td
form
input type=text name=AdminName size=12

/form
/td
/tr
tr
thPassword/th
td
form
input type=password name=password size=8
input type=submit name=Add value=AddStaff
/form
/td
/tr
/table
/body
/html
%

String submit1 = request.getParameter(Add);

if(submit1 == null)
{


}


else
{


password = request.getParameter(password);
AdminName = request.getParameter(AdminName);
		String query7 = Insert into 
Admin(UserName,PassWord,Admin_type,Admin_Name) 
values('+username+','+password+', 'Staff','+AdminName+');


stmt1.executeUpdate(query7);
stmt1.close();

}
%



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



query problem

2005-08-07 Thread ganesan malairaja


i am extracting info from html forms .. but one of the field allways return 
the value null only


html code

form
input type=text name=username size=8
/form

jsp code

String username = request.getParameter(username);

SQL codes;

String query7 = Insert into Admin(UserName,PassWord,Admin_type,Admin_Name) 
values('+username+','+password+', 'Staff','+AdminName+');


it returns the username as null

i cant figure out what is  the problem
..

any links or example how to do it properly will help

thanks

stmt1.executeUpdate(query7);
stmt1.close();



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: confused thx

2005-07-27 Thread ganesan malairaja

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

htmlDIV
DIVFONT color=#cc face=Lucida Handwriting, CursiveEMSTRONGIMG 
height=16 src=http://graphics.hotmail.com/emarrow_right.gif; 
width=16Ganesan_MalairajaIMG height=16 
src=http://graphics.hotmail.com/emarrow_left.gif; 
width=16/STRONG/EM/FONT/DIV/DIV/html





From: [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: confused
Date: Wed, 27 Jul 2005 10:40:51 +

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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



confused

2005-07-26 Thread 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



compiling

2005-07-24 Thread ganesan malairaja


if i add new jsp file to the a folder in webapps

will it be compiled when i access it  or i must compile it before accessing 
it ..


thankx



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: jsp stuff

2005-07-23 Thread ganesan malairaja

thanks


From: Adile Abbadi [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: RE: jsp stuff
Date: Fri, 22 Jul 2005 11:12:16 -0600

You don't need to change anything in tomcat to make it access a database
except one thing - you need is a compliant JDBC driver which you through
into the Common Library directory of tomcat. Once tomcat starts it will 
load
the driver and then at that point you can use code to access the Database. 
I

would recommend you use a pooling tool as well - to pool your connections
and limit resource use.

Check google - lots of info out there.

HTH

Adile


-Original Message-
From: ganesan malairaja [mailto:[EMAIL PROTECTED]
Sent: July 21, 2005 8:53 PM
To: tomcat-user@jakarta.apache.org
Subject: jsp stuff


hi guys

i want to know is there any setting to be done with tomcat so the JSP codes
can access the database ( MySQL) and display the information ?


thank you



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.9.2/54 - Release Date: 7/21/05

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.2/55 - Release Date: 7/21/05


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Ganesan_Malairaja



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



jsp stuff

2005-07-21 Thread ganesan malairaja

hi guys

i want to know is there any setting to be done with tomcat so the JSP codes 
can access the database ( MySQL) and display the information ?



thank you



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



how to link

2005-07-12 Thread ganesan malairaja

hi guys

how to  link apache2 and tomcat

i have apache 2.0.54 and tomcat 4.1.xx running on linux ..

my both apache and tomcat runs indepently fine

i need to link both how i do it ... i trying following one example on the
http://wass.homelinux.net/howtos/Jakarta_How-To.shtml


i cant find jk folder under jakarta folder ..

anybody got any example to guide me ..

thanks for help



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



apache and tomcat

2005-07-05 Thread ganesan malairaja

hi guys ..

i am confused now.. i need help undeerstanding apache and tomcat ..

what purpose each serve and how to link both them ...

i want to know how to link html and applets   in tomcat htdoc folder to jsp 
codes in tomcat webapps folder ..


thank you guys..


i am new apache and tomcat ..



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



connection refused

2005-07-04 Thread ganesan malairaja

hi guys

when i try to access tomcat using  //localserver:8080 it says connection 
refused ..


why is this ?

how do i solve this ?

i need to check whether the default page of tomcat loading or not

note that .. i neva do any changes .. i installed tomcat and started it ..

when i try to access it show refused connection..

thank you



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: connection refused

2005-07-04 Thread ganesan malairaja

sorry guys

problem solved

when i type catalina.sh start .. i could not access the //localhost:8080

but when i type catalina.sh run .. now i could access the default page..

but is this the corect way to start tomcat

thanks

i am using tomcat 4.1.xx



From: Anto Paul [EMAIL PROTECTED]
Reply-To: Anto Paul [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: connection refused
Date: Mon, 4 Jul 2005 12:01:11 +0530

On 7/4/05, ganesan malairaja [EMAIL PROTECTED] wrote:
 hi guys

 when i try to access tomcat using  //localserver:8080 it says connection
 refused ..


I presume it is http://localhost:8080 or hostname:8080. Check for any
firewalls. Check log messages in console.


--
rgds
Anto Paul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: connection refused

2005-07-04 Thread ganesan malairaja

sorry guys

i think the aparent delay in tomcat is the cause of the problem..

when i close and open back my browser then i can acces the page with out a 
problem


is this a known problem .. anything can be done to overcome this ?

thanks .. sorry for waisting ur time and ur inbox space :D

htmlDIV
DIVFONT color=#cc face=Lucida Handwriting, CursiveEMSTRONGIMG 
height=16 src=http://graphics.hotmail.com/emarrow_right.gif; 
width=16Ganesan_MalairajaIMG height=16 
src=http://graphics.hotmail.com/emarrow_left.gif; 
width=16/STRONG/EM/FONT/DIV/DIV/html





From: ganesan malairaja [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: tomcat-user@jakarta.apache.org, [EMAIL PROTECTED]
Subject: Re: connection refused
Date: Mon, 04 Jul 2005 06:37:55 +

sorry guys

problem solved

when i type catalina.sh start .. i could not access the //localhost:8080

but when i type catalina.sh run .. now i could access the default page..

but is this the corect way to start tomcat

thanks

i am using tomcat 4.1.xx



From: Anto Paul [EMAIL PROTECTED]
Reply-To: Anto Paul [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: connection refused
Date: Mon, 4 Jul 2005 12:01:11 +0530

On 7/4/05, ganesan malairaja [EMAIL PROTECTED] wrote:
 hi guys

 when i try to access tomcat using  //localserver:8080 it says 
connection

 refused ..


I presume it is http://localhost:8080 or hostname:8080. Check for any
firewalls. Check log messages in console.


--
rgds
Anto Paul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



intergrating with apache

2005-07-03 Thread ganesan malairaja


i have setup tomcat 4.1.31 with j2sdk 1.4.2_08 ..

now i need to know  how to integrate apache with tomcat .. as i came across 
examples for tomcat 3.x.x


i am not sure the same procedures can be applied

i am using linux enviroment .. i am planning to intergrate tomcat with 
apache 2.0.x..


what connector i need to use ..  mod_jk ?

any urls with example will help alot and ur coments is also welcomed

thanks guys..

htmlDIV
DIVFONT color=#cc face=Lucida Handwriting, CursiveEMSTRONGIMG 
height=16 src=http://graphics.hotmail.com/emarrow_right.gif; 
width=16Ganesan_MalairajaIMG height=16 
src=http://graphics.hotmail.com/emarrow_left.gif; 
width=16/STRONG/EM/FONT/DIV/DIV/html




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



confused J2SE or J2EE

2005-06-30 Thread ganesan malairaja


hi guys

i am confused about using J2SE or J2EE

which one i am supposed to use ?

if i use J2SE do i have to install JRE also ?

please  clarify ..  i am stuck here ..

i already have Borland JBuilder , which comes with jdk 1.4,  do i need to   
install another copy of J2SE or use the one comes with JBuilder..


i am using SUZE 9.3 Profesional..

if u guys got a linux configuration with MySQL + APACEHE + TOMCAT + JAVA... 
i will be more than willing to follow the configurations..


windows XP sp2 configuration is also welcomed as i have another machine on 
XP sp2 ..


please try to give some guidance ..

any help is high appreaciated ..

thanks



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: help in setting up

2005-06-29 Thread ganesan malairaja

thankx

htmlDIV
DIVFONT color=#cc face=Lucida Handwriting, CursiveEMSTRONGIMG 
height=16 src=http://graphics.hotmail.com/emarrow_right.gif; 
width=16Ganesan_MalairajaIMG height=16 
src=http://graphics.hotmail.com/emarrow_left.gif; 
width=16/STRONG/EM/FONT/DIV/DIV/html





From: Parsons Technical Services [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: help in setting up
Date: Wed, 29 Jun 2005 01:52:39 -0400

It depends:

5.5.x only needs JRE
5.0.x and earlier versions needs full JDK
As for version I recommend Java 1.5 and it is required for the 5.5.x 
version unless you use the compatibility patch for 1.4


Doug

- Original Message - From: ganesan malairaja 
[EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Tuesday, June 28, 2005 11:42 PM
Subject: help in setting up




hi guys

i know that to settup tomcat , there no need for apache

i wanna know what java i should use

is it j2dk or j2ee

because i saw some example that uses both..

i am going to run JSP to retrieve info from database

i need guide on how to setup tomcat .. ie what java version i shoud use.

any links also would be helpfull .. consider a newbie case

thanks guys .. ur help is appreaciated.
htmlDIV
DIVFONT color=#cc face=Lucida Handwriting, 
CursiveEMSTRONGIMG height=16 
src=http://graphics.hotmail.com/emarrow_right.gif; 
width=16Ganesan_MalairajaIMG height=16 
src=http://graphics.hotmail.com/emarrow_left.gif; 
width=16/STRONG/EM/FONT/DIV/DIV/html




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



making clear

2005-06-29 Thread ganesan malairaja

hi guys

i already have apache 2,

java jdk 1.4.2 .. i need to know can i use tomcat version 5.0.x or must have 
version 4..


need to clarify..

thanks alot

htmlDIV
DIVFONT color=#cc face=Lucida Handwriting, CursiveEMSTRONGIMG 
height=16 src=http://graphics.hotmail.com/emarrow_right.gif; 
width=16Ganesan_MalairajaIMG height=16 
src=http://graphics.hotmail.com/emarrow_left.gif; 
width=16/STRONG/EM/FONT/DIV/DIV/html




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



help in setting up

2005-06-28 Thread ganesan malairaja


hi guys

i know that to settup tomcat , there no need for apache

i wanna know what java i should use

is it j2dk or j2ee

because i saw some example that uses both..

i am going to run JSP to retrieve info from database

i need guide on how to setup tomcat .. ie what java version i shoud use.

any links also would be helpfull .. consider a newbie case

thanks guys .. ur help is appreaciated.
htmlDIV
DIVFONT color=#cc face=Lucida Handwriting, CursiveEMSTRONGIMG 
height=16 src=http://graphics.hotmail.com/emarrow_right.gif; 
width=16Ganesan_MalairajaIMG height=16 
src=http://graphics.hotmail.com/emarrow_left.gif; 
width=16/STRONG/EM/FONT/DIV/DIV/html




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]