session trakking in jsp or in Bean

2006-01-12 Thread marju jalloh
Hi I want to track a session of an input a user enter in my jsp page.The jsp page is using a bean to execute sql queries.That works wel. My question is it advisable to track the session in the jsp page or in the Bean.Which is better Thanks in advance

RE: session trakking in jsp or in Bean

2006-01-12 Thread marju jalloh
Thanks I know all about java session.What I mean is implementing session in jsp or in bean which one is advisable Fredrik Rubensson [EMAIL PROTECTED] wrote: Marju wrote: I want to track a session of an input a user enter in my jsp page.The jsp page is using a bean to execute sql

error Ljavax/servlet/http/HttpServletRequest

2006-01-11 Thread marju jalloh
I `m calling a bean from a jsp page that return HttpServletRequest snippet HttpServletRequest req= myBean.getMessage(); out.write(req.getParameter(mess)); where mess is a variable that was set in the bean My problem jsp can`t compile I got the following errors

Re: problem calling request.getParameter(myparameter) in jsp

2006-01-10 Thread marju jalloh
I see %! String query = request.getParameter(display) ; % is declared in the init() of the servlet.I changed it but now I`m getting org.apache.jasper.JasperException java.lang.NullPointerException which should not execute the query Can anyone throw licht on this Thanks marju jalloh

Re: problem calling request.getParameter(myparameter) in jsp

2006-01-10 Thread marju jalloh
I got it. HttpRequest throws an exception by enclosing String query = request.getParameter(display) in a try and catch block everything was fine marju jalloh [EMAIL PROTECTED] wrote: I see %! String query = request.getParameter(display) ; % is declared in the init() of the servlet.I

jsp cannont find my bean class

2006-01-09 Thread marju jalloh
Hi everyone I`m using Tomcat 4.1.* on Linux .All my servlet and jsp work fine including the interaction with mysql database. Now I want to test a simple Bean but my jsp cannont find the Bean. Where to place the jsp file? How to direct the jsp file where to find the bean?

Re: jsp cannont find my bean class

2006-01-09 Thread marju jalloh
I understand what you mean but where the jsp file should be Edoardo Panfili [EMAIL PROTECTED] wrote: marju jalloh ha scritto: Hi everyone I`m using Tomcat 4.1.* on Linux .All my servlet and jsp work fine including the interaction with mysql database. Now I want to test a simple

RE: jsp cannont find my bean class

2006-01-09 Thread marju jalloh
I don`t know what is going wrong I place my compiled bean in mywabapps/WEF-INF/classes/com and my jsp file in mywebapps and my path is jsp:useBean id=stringBean class=com.mybean / when access I got two error 1. javax.servlet.ServletException: com/mybean (wrong name: mybean 2.

how to execute javascript file in jsp

2006-01-06 Thread marju jalloh
Hi everyone, I`m using tomcat 4.1.* on Linux (serge) but find it diffecult to include javascript file in my jsp.I did it with %@ page import=myjavascript.js*% but it could not find the file.Also with jsp:include page=myjavascript.js flush=true/. It compile but the scriptcould not execute

Re: how to execute javascript file in jsp

2006-01-06 Thread marju jalloh
I did what you said script language=javascript src=myjavascript.js type=text/javascript/script it compile with no error but the script did not execute.Still no solution Thanks Charl Gerber [EMAIL PROTECTED] wrote: type=text/javascript --- marju jalloh wrote: Hi everyone, I`m

erro jdbc connection with mysql

2006-01-05 Thread marju jalloh
Hi everyone, I`m trying to connect to mysql from jdbc but I freequently get this errror ...java.sql.SQLException: Data source rejected establishment of connection, message from server: Host 'localhost.localdomain' is not allowed to connect to this MySQL server... env linux debian(serge)

Re: tomcat servles tutorial

2005-12-27 Thread marju jalloh
for servlet this is the best http://pdf.coreservlets.com/ and for tomcat google tomcat tutorial Marju WJ van Zyl [EMAIL PROTECTED] wrote: Hi there. Bit new to Tomcat and Servles Do anyone know of a great tutotial explaining everything. Thanks. W

Re: Please Help! Error in using Packages

2005-12-20 Thread marju jalloh
What is your enviroment,which version are you using. Have you made context for myfirstwebapp in server.xml -Marju Teh Noranis Mohd Aris [EMAIL PROTECTED] wrote: Hi, I'm learning to use packages from a book example to create my own servlet instead of putting the code in the examples

Re: Re: problem with stopping Tomcat

2005-12-20 Thread marju jalloh
the app and re-installing with apt. From: marju jalloh Date: 2005/12/19 Mon PM 02:18:22 EST To: Tomcat Users List Subject: Re: Re: problem with stopping Tomcat no I did not use apt. It was working but now on rebooting I got the following error INFO: Initializing Coyote HTTP/1.1 on http

problem with stopping Tomcat

2005-12-18 Thread marju jalloh
Hi everyone I havae problem with stopping tomcat.When I start it it show no sign of error but I can`t get to my http:localhost:8080/ page if I tried to restart Tomcat by sotpping and the starting I got thefollowing error during stopping Catalina.stop: java.net.ConnectException: Connection

Re: Re: problem with stopping Tomcat

2005-12-18 Thread marju jalloh
version of Tomcat? What command are you using to start it? marju jalloh wrote: Hi everyone I havae problem with stopping tomcat.When I start it it show no sign of error but I can`t get to my http:localhost:8080/ page if I tried to restart Tomcat by sotpping and the starting I got

Re: problem with stopping Tomcat

2005-12-18 Thread marju jalloh
Dodge [EMAIL PROTECTED] wrote: Well, if 8080 is not accepting connections and there is no process on the machine, tomat is probably starting then immediatly stopping. Do you have a catalina.out, and or a catalina.log, I'd check in both of those to see what's failing. marju jalloh wrote: Sorry

implementation difference between Cookie and HttpSession

2005-12-15 Thread marju jalloh
I want to track the last time a user visited my website and publish it.I don`t know the implementation difference between java Cookies and HttpSession or is it possible to use both. Byfour - Yahoo! Shopping Find Great Deals

Tomcat JDBC connection with Mysql

2005-12-12 Thread marju jalloh
I can`connect to my database with via servlet. The connection works well in PHP but not with servlet. I have googled but no solution. this is my error page I got java.sql.SQLException: Data source rejected establishment of connection, message from server: Host

RE: Tomcat JDBC connection with Mysql

2005-12-12 Thread marju jalloh
DB USE A FRONT END LIKE MYSQL FRONT TO DO THIS HOPE THIS HELPS. WITH REGARS kARTHIK -Original Message- From: marju jalloh [mailto:[EMAIL PROTECTED] Sent: Monday, December 12, 2005 4:53 PM To: Tomcat Users List Subject: Tomcat JDBC connection with Mysql I can`connect to my

Re: Antwort: RE: Tomcat JDBC connection with Mysql

2005-12-12 Thread marju jalloh
*/ } } } out.println(my first servlet); } } Any help would be appreciated Byfour Jan Behrens [EMAIL PROTECTED] wrote: look here -- http://dev.mysql.com/doc/refman/4.1/en/connection-access.html rtfm ;) marju jalloh schrieb am 12.12.2005 13:33:54

Re: Antwort: RE: Tomcat JDBC connection with Mysql

2005-12-12 Thread marju jalloh
' really the right host? Did you tried it with the ip-address? Best Regards, Sebastian On Dec 12, 2005, at 2:37 PM, marju jalloh wrote: I went throug the permission and now I get another error java.sql.SQLException: Unable to connect to any hosts due to exception

RE: Tomcat JDBC connection with MySQL

2005-12-12 Thread marju jalloh
I made it Thanks everyone especially jan and Kirthik Byfour Jan Behrens [EMAIL PROTECTED] wrote:String userName = root; String password = ; String URL = jdbc:mysql://l/AdressBook; Are you sure this is correct? You are connecting

Communication between Apache an Tomcat

2005-12-08 Thread marju jalloh
Hi everyone, I cannot access my servlet from Apache but I can access my jsp.I am using Apache 1.3.33, jk_mod1.3 en Tomcat 4.1.27 on Linux (Debian Serge).Tomcat is running and I can access all my servlets and jsp via port 8080.Apache is also running.I can access all my jsp via Apache

Re: Communication between Apache an Tomcat

2005-12-08 Thread marju jalloh
is the problem is setting of JkMount directive. looks like you have: 'JkMount /*.jsp worker' only while you should have: JkMount /your_context or /* worker or something like that. Hope it helps. Cheers, Mirek On 12/8/05, marju jalloh wrote: Hi everyone, I cannot access my servlet from Apache but I

Re: Communication between Apache an Tomcat

2005-12-08 Thread marju jalloh
Thanks Mirek it helps and save from another 100 hr of googling Byfour marju jalloh [EMAIL PROTECTED] wrote: Sorry for the long Httpd.conf file.This is the jk_mod section in the Httpd.config file JkWorkersFile /etc/tomcat4/jk/workers.properties JkLogFile /var/log/apache

unale to stop Tomcat-4.1.27

2005-10-31 Thread marju jalloh
Hello Can someone lease help.I`m using tomcat-4.1.27.When starten its gives all indication of clean start Using CATALINA_BASE: /etc/tomcat4 Using CATALINA_HOME: /etc/tomcat4 Using CATALINA_TMPDIR: /etc/tomcat4/temp Using JAVA_HOME: /usr/lib/j2sdk1.5-sun/ ... testing with

Re: R�f. : unale to stop Tomcat-4.1.27

2005-10-31 Thread marju jalloh
..but it seems tomcat/bin/startup.sh was executed. How can I get around this problem? any help Byfour --- Richard Leotard [EMAIL PROTECTED] wrote: That's because you tomcat server is not startes I think richard marju jalloh [EMAIL PROTECTED] 31/10/2005 15:01 Veuillez répondre