One is to embed javascript in the output
out.println(HTMLHEADtitleJavaScriptExample/title);
out.println(SCRIPT LANGUAGE=JavaScript);
out.println(function back() {);
out.println(history.back(-1););
out.println(});
out.println(/SCRIPT);
Hi,
May be you can use:
request.getDateHeader()
Have a look at, there is a related thread there:
http://www.theserverside.com/discussions/thread.tss?thread_id=38542
Vinu Varghese [EMAIL PROTECTED] wrote: Hi All,
I am doing a project in jsp/servlet and tomcat, which requires to take
the
Vinu
Yeah, you are right about it, I can't get getDateHeader working.
For the solution one, I have setup like this for jsp and worked.
%@ page session=false %
html
head
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
title%= application.getServerInfo() %/title
/head
SK,
That javascript prints the current client time. But I want the client
time with the request.
The scenario is :
I have a index.jsp
%@ page language=java contentType=text/html; charset=ISO-8859-1
pageEncoding=ISO-8859-1%
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
uh...
no luck yet. getDateHeader only returns the date value when
you have some query strings in date format.
So, send the time as a part of query string like this
index.jsp?requesttime=25:40:12 or something similar.
If one has a better solution let him know.
SK
- Original Message -
The HTTP spec (rfc2616) says clients should only send the Date header
with http messages with body content (POST, PUT) and even then it's
optional.
Try adding a date string as a parameter on your GET request which your
servlet can then parse from request.getParameter(...).
One way to do
Hello list,
I have a servlet that handles POST requests. Sometimes the request needs to be
forwarded to a different servlet, which may be running on a different server.
What is the best way to do that?
Thanks,
Zohar.
Hi,
Please help me in guiding to find out the root cause of this problem.
Tomcat Version: jakarta-tomcat-4.1.31
Server OS: SUN OS 5.8
JDK version: j2sdk1.4.2_11
Initially the tomcat server is running perfectly and there is no problem.
There is no operation done on the server. Simply it is kept
I'm no expert, but off the top of my head it appears your JVM is
crashing. Especially true if there is absolutely no logging data just
before the process stops. You may have indications of what's happening
in other log files like syslog or a core dump file. You may also want
to look at bug
you can get a Locale from the request, and adjust the time accordingly.
Vinu Varghese wrote:
but that still sets the server date - yes ?
Pid wrote:
write a filter that activates for that url, and get the time just before
you doFilter. if you need to, you can pass the date obj as an
not unless you've got clustering setup and the cluster is correctly
sharing session data. the session data is otherwise local to the server
in use.
Vinu Varghese wrote:
Avi,
What will happen with the session and objects bound to it ?, Will they
be accessible in the second server ?
-
Hi Zohar
Check this
http://marc.theaimsgroup.com/?l=tomcat-userm=108568149602563w=2
http://marc.theaimsgroup.com/?l=tomcat-userm=108568149602563w=2
Hope this helps
- Regards
Vinu
Zohar wrote:
Hello list,
I have a servlet that handles POST requests. Sometimes the request needs to be
Thanks Pid,
I think that is a good idea
Let me try
- Regards
Vinu
Pid wrote:
you can get a Locale from the request, and adjust the time accordingly.
Vinu Varghese wrote:
but that still sets the server date - yes ?
Pid wrote:
write a filter that activates for that url, and get the
Change the servlet mapping in Blojsom from blog/* to *. Then change the
name of the Blojsom webapp to blogs. The end result is the desired URL
such as http://www.company.com/blogs/employee.name.
Consult the Blojsom docs before making these changes to insure they work
as expected and Blojsom
What's the easiest way to transfer all the data from the Request to the
PostMethod?
- Original Message -
From: Avi Deitcher [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, July 11, 2006 14:38
Subject: Re: forwarding to a remote host
Zohar,
- In the
We have a /3GB switch (and the /PAE switch active), but the allocation limit
is still 1500m.
We were using j2sdk-1_4_2_03 and tomcat-5.0.19. I have now tried the
combination jdk-1_5_0_06 and tomcat-5.5..17.exe with the same poor result.
So something seems to be wrong but what is it?
Rg.
Elly
I think you need 64bit jvm.
With 32bit vm 1.5 is pretty much the limit.
With 64 bit sky is your limit :-)
regards
Leon
On 7/11/06, Speulman, Elly [EMAIL PROTECTED] wrote:
We have a /3GB switch (and the /PAE switch active), but the allocation limit
is still 1500m.
We were using j2sdk-1_4_2_03
If the app is crashing then you would see exceptions thrown in wither
catalina.out / stdout_MMDD.log / stderr_MMDD.log
If the service is crashing on startup(misconfigured JVM, startup jars missing)
then check the jakarta_service_MMDD.log
HTH,
Martin--
Hi,
I hope I get it correctly, the Tomcat shutdowns when it is ideal. That means no
one is working with it and there is no connection to it.
If I assume correct and this is the case, please let me know if this shutdown
happens when there are some connections to it.
We had this problem once with
Hi,
This is a question for mod_jk folks.
We ran into a situation where maxThreads on one of the Tomcats in our mod_jk
load balanced cluster were exceeded.
The result of this situation was that mod_jk could not talk to any
of the Tomcats.
It appeared like the whole cluster is non-responsive.
I have placed an index.jsp file that I created in my servers
webapps/ROOT folder. When I place the following address in my browser:
http://localhost/index.jsp
I still come up with the tomcat homepage on my local host. I know that
file is located in the ROOT/admin folder is there some way that
Hi David, Martin, and Alireza,
Thank you very much for your comments and suggestions. Thanks a lot.
Hi David,
There is no logs corresponding to this shutdown anywhere on the system. I
couldn't find any thing relevent to this crash on syslog or at any other
place. Thanks for your help.
Hi
what version of tomcat?
what have you got defined in the Host ...s in your server.xml?
McRaven, Brian wrote:
I have placed an index.jsp file that I created in my servers
webapps/ROOT folder. When I place the following address in my browser:
http://localhost/index.jsp
I still come up
Is it possible to configure Tomcat to authenticate users using the DoD
Common Access Card? I found a module for the SunONE app server and a
commercial product for Windows, but nothing for Tomcat.
Thanks,
Bill
I'm using Tomcat 5.5.17 and the server.xml file has this in it:
Host name=localhost appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
Thanks,
Brian
-Original Message-
From: Pid [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 11,
Thanks Bill,
I've looked at that and we actually have it running that way. What I'm
looking for is a way to duplicate org.apache.catalina.startup.Bootstrap
class in my own startup. I believe that JBoss does something similar? What
I really want to do is get my version of Tomcat that I startup
Does anyone have any input on this?
What I want is through some config settings install my own DirContext.class
so that when the web app is trying to get resources like pages, it'll use my
DirContext to try to find them. This way I can have some common files
located outside each web application
Two issue here:
1. Place the index.jsp in webapps/ROOT instead of webapps/ROOT/admin
2. ROOT context that comes with tomcat has all it's jsp files
pre-compiled. Your new index.jsp is being ignored in favor of the
pre-compiled version. Remove the servlet mapping in
I commented out the servlet-mapping but I still get the tomcat page for
index.jsp. With my installation of Tomcat there already was a folder
called admin with index.jsp in it. I'm not sure if I was making that
clear in my last post. I thought that was where the tomcat index.jsp
was coming from.
admin/index.jsp is a placeholder page for the admin webapp, not shipped
with tomcat. If you placed it there, the url would be
http://localhost:8080/admin/index.jsp.
--David
McRaven, Brian wrote:
I commented out the servlet-mapping but I still get the tomcat page for
index.jsp. With my
Good afternoon,
I am trying to configure apache to send requests to multiple instances
of tomcat using mod_jk. I am using
Redhat 9
Apache/2.0.40
Tomcat-5.5.17
and have tried
jakarta-tomcat-connectors-jk-1.2.6
jakarta-tomcat-connectors-1.2.14.1
jakarta-tomcat-connectors-1.2.15
I can get httpd
Hello,
Is there anyway of referencing a properties file located in:
/appName/WEB-INF/file.propertes From inside a standard java class file?
steve
Good Afternoon Bill-
First step is to setup SSL
http://tomcat.apache.org/tomcat-4.1-doc/ssl-howto.html
IN your certificate keystore specify algo which conforms to DoD level Security
(I would check with www.RSASecurity.com for the following example to replace
the default of X509)
keytool
Dave et al,
I'm not sure why my index.jsp file is now accessible but it is. I
commented out the part of the web.xml file for the servlet-name and got
an error. When I got rid of the comments my index file showed up in the
browser on refresh as opposed to the tomcat version. All is well that
Probably not without using standard java io and a file path (which you
can't rely on for packed web-apps).
If the file was in /appName/WEB-INF/classes it would be a resource that
could be found by the classloader.
HTH,
Jon
sbell wrote:
Hello,
Is there anyway of referencing a properties
Hi,
We're running Apache in front of multiple tomcats with mod_jk.
We have an admin app that we'd like to access using a different URL from
other server connections, and I am looking for advice on the best way to do
this. We will have the single web app, but need to access parts of it
from:
We have a struts application on tomcat 5.0.25 jdk1.4, which does not seem to
maintain session, when the request lands up on a particular tomcat.
We have two struts application, say app1, app2.
tomcat 1 to 4 hosts app1.
tomcat 6 to 8 hosts both app1 and app2.
The problem
Well I'm ticking these newbie questions off. I have a simple servlet
that I want my form to access. I compiled the file fine and it is
called JustALittleTest.class. I placed this file in the
ROOT/WEB-INF/classes folder. In my JSP I have a form with some submit
buttons. The action element of
It was not tomcat, we found the problem. We have been looking in the wrong
place all along. It was the IIS JK worker.properties file that had a typo.
In the wroker.properties file the jvmRoute name was wrong for these tomcats 6
to 8. As a result, the request was never sent to the same
Any word on this problem.
SK.
- Original Message -
From: Shinya Koizumi [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Monday, July 10, 2006 3:22 PM
Subject: starting with windows service
Recently i take over project developed by servlet.
Currently whenever start the web server
Thank you, that does help!
- Original Message -
From: Jon Wingfield [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, July 11, 2006 1:03 PM
Subject: Re: Using a property file in java class (not servlet)
Probably not without using standard java io and a file
I am currently using Tomcat 4.0.6 with Vignette storyserver and IHS
1.3.26.
I need to increase the heapsize.
What is the correct method for this?
Do I simply edit the catalina.sh file located at:
/opt/vignette/tomcat-mcm/bin
and increase the number next to Xmx?
Or do I use a command to make it
I was able to refer to a book I have and so I dropped the .class
extensions altogether. I get an error that requested resource is not
available still. Any suggestions on this? My web.xml file has this
entry:
servlet
servlet-nameJustALittleTest/servlet-name
Did you reload the webapp after making the change? All changes to
WEB-INF/web.xml or files in WEB-INF/classes and WEB-INF/lib will require
a reload before they become active in tomcat.
--David
McRaven, Brian wrote:
I was able to refer to a book I have and so I dropped the .class
extensions
OK I did that and now my system is hanging which I guess could be an
error in my code or something with the server. I think it is my code so
I'll look that over. Thanks for your help. Sorry for the confusion.
Brian
-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent:
How do I instruct Tomcat to follow symbolic links within the file
system? For instance, I need to have index.html be a symbolic link to
another file.
Thanks,
Brad Mann
Software Engineer - Information Access Services
HARRIS Corporation / GCSD
(321) 984-6292
in your server.xml or context description
Context .. allowLinking=true
On Tuesday 11 July 2006 21:32, Mann, Bradley wrote:
How do I instruct Tomcat to follow symbolic links within the file
system? For instance, I need to have index.html be a symbolic link to
another file.
Thanks,
Brad
Thanks, works perfectly. All of the examples I found online describe
putting attribute in a Resources tag below the Context tag, which was
not working for me.
Brad Mann
Software Engineer - Information Access Services
HARRIS Corporation / GCSD
(321) 984-6292
-Original Message-
From:
Hello,
I am trying to create some cgi pages for my company. Or I should say I
have created some and now just want to add a header graphic in the main
page. Nothing fancy. However, I cannot get my image to display, no
matter how I embed the darned thing. I can't even get regular html to
Jen,
Unless there is a particular reason (e.g. dynamically created images),
why are you reading image files directly in Perl, then dumping the
output? You should just use CGI to generate HTML that looks like this:
img src=/images/some/path.gif/
Even if you want to dynamically *choose* the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
More stupid question...
1 - Why are you using perl when you have tomcat - can't you just use
a jsp?
2 - why can't you use an img tag? and have tomcat deliver the page...
3 - You are using tomcat aren't you?
Confused
Andrew
On 11/07/2006,
I am using perl CGI because that is what the company wants. I haven't
used jsp ever, but I am researching it to teach myself. Then I could
introduce it and convince my boss to let me develop in it.
I have used the img page over and over to no avail. That is why I was
concerned that it was a
It might not be the reason for your problems, but you should not start
this with an apache version that old. If you want to use mod_jk,
consider first updating to apache 2.0.58 or something close to it.
Is your JkWorkersFile readable for the apache user?
I never noticed such behaviour, so no
Is that really appropriate?? What if I have my Locale set to France, and my
clock set to Pacific Standard Time? Then what? (assume I am on the east
coast of the USA...)
Tim
-Original Message-
From: Vinu Varghese [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 11, 2006 8:05 AM
To:
Hi Jennifer,
Very strange! Tomcat and perl cgi! cool - didn't know it worked...
Are you sure you are not using Apache with mod_jk, or mod_proxy?
As for the perl. Where is the page that prints the HTML?
why don't you just add
print 'img src='.$IMAGE_DIRECTORY.$image.'';
Very
On 7/3/06, Rainer Jung [EMAIL PROTECTED] wrote:
version 1.2.16 of the Apache Tomcat mod_jk web server connector has been
tagged. This version contains numerous bug fixes and some new
improvements over our last release 1.2.15. Please test and share your
experience.
If no critical bugs will be
AFAIK - version 1.2.16 had a regression bug so mod_jk team is planning
to release
1.2.17.
Regards,
Edmon
On 7/11/06, Brian Munroe [EMAIL PROTECTED] wrote:
On 7/3/06, Rainer Jung [EMAIL PROTECTED] wrote:
version 1.2.16 of the Apache Tomcat mod_jk web server connector has been
tagged. This
Please have a look at:
http://marc.theaimsgroup.com/?l=tomcat-devm=115234851210076w=2
I'll roll 1.2.17 in the next hours, but it will take a couple of days
before we have a final vote done.
Rainer
Edmon Begoli schrieb:
AFAIK - version 1.2.16 had a regression bug so mod_jk team is planning
to
Hi
Would anyone know the correct way to increase the heapsize on Tomcat
4.0.6?
Could I simply edit the catalina.sh file, increasing the value after
'Xmx'?
Or is there a export command or a set command which properly increases it?
Thanks,
Ibrahim
Add Xmx to catalina.sh. Set it in JAVA_OPTS
Regards,
Edmon
On 7/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi
Would anyone know the correct way to increase the heapsize on Tomcat
4.0.6?
Could I simply edit the catalina.sh file, increasing the value after
'Xmx'?
Or is there a export
Yes and you can use this
-XX:MinHeapFreeRatio=NN
That keeps the free memory at least NN of what is being used (or it is
supposed to).
Hope this helps,
Jen
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 11, 2006 2:45 PM
To: Tomcat Users List
Oh yes tomcat works for any language CGI, you need to go into the conf
files and uncomment a few things but it works. Not recommended because
it bypasses the security built into tomcat.
Here is a sample code with the img tag inserted:
#!/usr/local/bin/perl -w
#
Edmon,
I currently have the following:
JAVA_OPTS=-Xms256m -Xmx512m -verbosegc
I'd like to double the max.
So do I simply edit to :
JAVA_OPTS=-Xms256m -Xmx1024m -verbosegc
and restart Tomcat? would the changes apply or does something else need
to be done
or in another file as well?
Ok, it is something with my unix environment because I just pointed my
code to the same gif on my windows box and up it comes! All code is
fine, which I suspected because I have tried so many variations of it
something had to work. Not sure what it could be but maybe I actually
don't know where
On 7/11/06, Richard Mixon [EMAIL PROTECTED] wrote:
Thanks to all those who replied with respect to the orginal thread.
Please do not hijack and existing thread. Start a new thread. You have
thoroughly mucked up this thread on mod_jk 1.2.16 rele4ase candidate: ready
to test.
Richard, I was
A good devil's advocate question, or was it rhetorical?
Either way it's got exactly the answer you'd expect, you'll set the date
to whatever Locale the Request returns. Obviously.
Tim Lucia wrote:
Is that really appropriate?? What if I have my Locale set to France, and my
clock set to
I was playing devil's advocate -- since we don't really know the OP's
requirement(s), but we do know the OP seemed to really want the client's
time.
-Original Message-
From: Pid [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 11, 2006 6:38 PM
To: Tomcat Users List
Subject: Re: Getting
Mike Wannamaker wrote:
Does anyone have any input on this?
What I want is through some config settings install my own DirContext.class
Just configure a Resources element for your Context
http://tomcat.apache.org/tomcat-5.5-doc/config/resources.html
When starting a new thread (ie sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. To many of the list archiving services and mail clients
used by list subscribers this makes your new message appear as part
of the old thread.
OK - related to the subject.
Does mod_jk have unit tests that we could use to do/help with
regression testing?
We found number of bugs in previous versions of mod_jk, but these were
unfortunatelly
bugs found in production environment.
Since then we started using Apache workbench and push to
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 11/07/2006, at 11:53 PM, Mead, Jennifer L - VSCM wrote:
What this does is draw the box where the image should be. When I
right
click on it and look at the properties and it finds the right file.
Just thought someone else would have ran
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ahhh...
and in webapps/ROOT/
create a directory called WEB-INF (please note capitals) that should
fix your problem...
Regards
Andrew
On 11/07/2006, at 11:53 PM, Mead, Jennifer L - VSCM wrote:
What this does is draw the box where the image
Hi,
thanks to everyone who tested 1.2.16. Unfortunately we had one
regression bug in the status worker (hanging update request because of
double locking). For full results please see:
http://marc.theaimsgroup.com/?l=tomcat-devm=115234851210076w=2
Today version 1.2.17 of the Apache Tomcat mod_jk
Mike Wannamaker [EMAIL PROTECTED] wrote in
message
news:[EMAIL PROTECTED]
Thanks Bill,
I've looked at that and we actually have it running that way. What I'm
looking for is a way to duplicate org.apache.catalina.startup.Bootstrap
class in my own startup. I believe that JBoss does
74 matches
Mail list logo