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 qu

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 ---

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 javax.servlet.Ser

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") ; %> i

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

problem calling request.getParameter("myparameter") in jsp

2006-01-10 Thread marju jalloh
Hi everyone I `m writing a bean application to execute sql query.The query properties in the Bean works perfect.I have a jsp with textArea where the user can enter query.The query is the required parameter that the Bean should execute. snippet ... <%! String query = request.g

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 /WEF-INF/classes/com and my jsp file in and my path is when access I got two error 1. javax.servlet.ServletException: com/mybean (wrong name: mybean 2. java.lang.NoClassDefFoundError: com/mybean (wrong name: myb

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. > >

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? I used

Re: how to execute javascript file in jsp

2006-01-06 Thread marju jalloh
I did what you said 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 using tomcat 4.1.* on Linux (serge) but find

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 . It compile but the scriptcould not execute Can anyone help me Thanks in advance

Re: erro jdbc connection with mysql

2006-01-05 Thread marju jalloh
I made it thanks to Rafal Zawadzki and Bjørge Solli The solution was to grant permision to hostname and not localhost of ip address Once more thanks Rafal Zawadzki <[EMAIL PROTECTED]> wrote: > In short, run this as root inside mysql: > GRANT ALL PRIVILEGES ON your_db_name.* TO > 'your_mysql_us

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) j

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: tomcat error

2005-12-20 Thread marju jalloh
something wrong about the coyoto protocol context what is your enviroment.operating system,version tomcat Marju James Taylor <[EMAIL PROTECTED]> wrote: Hi there, Can someone please help me resolve the following error I keep getting; INFO: Server startup in 9072 ms Dec 20, 2005 6:18:58 PM org.apac

Re: How does tomcat parse multipart requests?

2005-12-20 Thread marju jalloh
is why when you are writing your servlet make sure that shared variable are synchronized Hope it helps Marju Jalloh Sam Lee <[EMAIL PROTECTED]> wrote: Dear Guys, I want to know how tomcat parse multipart requests? Or tomcat does not parse multipart requests at all? I try to find the

Re: Re: problem with stopping Tomcat

2005-12-20 Thread marju jalloh
ort of removing 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 > er

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 web

Re: Re: problem with stopping Tomcat

2005-12-19 Thread marju jalloh
tryinh to sutituted my server.xml and web.xml fiel with the original and see if it would work thanks Marju Warren Pace <[EMAIL PROTECTED]> wrote: Did you originally install Tomcat using apt? The Debian package configures Tomcat to listen on port 8180. > > From: marju jalloh > D

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. ma

Re: Re: problem with stopping Tomcat

2005-12-18 Thread marju jalloh
> What's you environment? What 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:8

Re: problem with stopping Tomcat

2005-12-18 Thread marju jalloh
, Byfour Steve Dodge <[EMAIL PROTECTED]> wrote: What's you environment? What 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

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 refus

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 o

Re: How to access webapps class path as env variable.

2005-12-14 Thread marju jalloh
make an enviroment variable WEBAPPS-PATH in your profile an call String strDir = System.getProperty("WEBAPPS-PATH"); Hope it helps Marju Saha Rabindra N <[EMAIL PROTECTED]> wrote: Hi, I am trying to access the webapps class path through some environment variable. Can you tell me

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

Re: Antwort: RE: Tomcat JDBC connection with Mysql

2005-12-12 Thread marju jalloh
s right? Is 'l' 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 a

Re: Antwort: RE: Tomcat JDBC connection with Mysql

2005-12-12 Thread marju jalloh
} catch (Exception e) { /* ignore close errors */ } } } out.println("my first servlet"); } } Any help would be appreciated Byfour Jan Behrens <[EMAIL PROTECTED]> wrote: look here --

RE: Tomcat JDBC connection with Mysql

2005-12-12 Thread marju jalloh
MYSQL 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

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 'localhost.localdoma

re: Servelts under IIS or Apache integration

2005-12-09 Thread marju jalloh
try */servlet/*=main JT Neville <[EMAIL PROTECTED]> wrote: Anyone clarify this for me? Using IIS and Tomcat, I created this file: uiworkermap.properties with this text in it (as suggested by Reynir - http://www.reynir.net/java/greinar/nr/52) /*jsp=main /servlet/*=main I expect

Re: Servelts under IIS or Apache integration

2005-12-08 Thread marju jalloh
have you install the connector between tomcat and IIS6? Marju JT Neville <[EMAIL PROTECTED]> wrote: Hello, checked FAQ's, Googled, trial/errored and still unclear how to resolve this. I have a servlett that works in Tomcat over 8080 (in standalone mode) [it's a form that passes informat

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/

Re: Communication between Apache an Tomcat

2005-12-08 Thread marju jalloh
tive. 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 can access my

Re: Communication between Apache an Tomcat

2005-12-08 Thread marju jalloh
.34.56.78 # # VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # # #ServerAdmin [EMAIL PROTECTED] #DocumentRoot /www/docs/host.some_domain.com #ServerName host.some_domain.com #ErrorLog logs/host.some_domain.com-error.

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 whic

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 jall

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 http://loca