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
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
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
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
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
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 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
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.
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
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
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)
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
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
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
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
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
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
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
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
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
*/ }
}
}
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
' 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
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
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
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
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
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
..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
28 matches
Mail list logo