You could use the Content-Disposition header to send the filename back to the
user.
-Tim
Ron Cozad wrote:
This url is not working in Tomcat, but it works with Apache http server.
http://my.company.com/cgi-bin/program1.cgi/filename.txt?parameter1=123
Next url does work with tomcat but
URL patterns are quite limited for the web.xml. The document you want is
actually the Servlet Specification PDF from Sun's J2EE website.
You can achieve what you are talking about using the JK module with Apache or
IIS as this forwards requests from the web server to Tomcat. It allows the ! to
In your webapp have dir
http://servername:port/context/static/ for all your static content
http://servername:port/context/dynamic/ for all your dynamic content
URL Pattern
URL-pattern/dynamic/*/URL-pattern
guru
-Original
It is a lack of agreed standard problem. You can force Tomcat to use
UTF-8 encoding by setting the URIEncoding parameter on the connector.
There are some other parameters that you can set as well. See
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html
Mark
Steve Bosman wrote:
I
,
Q
-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED]
Sent: 06 April 2005 17:15
To: Tomcat Users List
Subject: Re: URL encoding/decoding of UTF-8 characters
It is a lack of agreed standard problem. You can force Tomcat to use
UTF-8 encoding by setting the URIEncoding
On Wed, Mar 23, 2005 at 07:56:01AM -, Pawson, David wrote:
: for this use, internal to my organisation, Norton isn't installed
: luckily!
:
: Another Gotcha worth noting though, thanks Mark.
This may have been mentioned already, but some browsers can be
configured to not provide referrer
On Mar 22, 2005, at 15:13, Pawson, David wrote:
public java.lang.String getRequestURI() is the 'current'
page, I need the calling page.
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.36
Cheers
--
PA, Onnay Equitursay
http://alt.textdrive.com/
DaveP,
You could use the 'referer' header, eg.
String referedURL = request.getHeader(referer);
Note that the String is null if the header isn't present which usually
indicates that the user typed the URL in their browser.
Hope this helps!
--
Mike Fowler
Registered Linux user: 379787
I could be a
-Original Message-
From: Mike Fowler
You could use the 'referer' header, eg.
String referedURL = request.getHeader(referer);
Note that the String is null if the header isn't present
which usually indicates that the user typed the URL in
their
From: Pawson, David [mailto:[EMAIL PROTECTED]
From: Mike Fowler
Note that the String is null if the header isn't present
which usually indicates that the user typed the URL in
their browser.
The caveat is worth noting!
If a user does that, they deserve to be
Worth mentioning this as I have been down this path.
Symantec Intenet Security products and the like, will remove this header. I
actually contemplated writing to Symantec about this only this morning (I
think I have too much time on my hands).
-Original Message-
From: Mark Benussi
Worth mentioning this as I have been down this path.
Symantec Intenet Security products and the like, will
remove this header.
for this use, internal to my organisation, Norton isn't installed
luckily!
I had a similar problem, which I posted last week. You should find it
searching the Subject field for pluggable protocols in web apps if you
kee pold messages. What I found out so far is this:
- Defining the protocol handler doesn't do any harm. The URL class
searches through the system property
From: Martin Goldhahn [mailto:[EMAIL PROTECTED]
I had a similar problem, which I posted last week. You should find it
searching the Subject field for pluggable protocols in web
apps if you keep old messages.
I keep some, but managed to delete that - a few days before it became
highly
-Original Message-
From: Peter Crowther [mailto:[EMAIL PROTECTED]
Sent: Monday, February 14, 2005 12:20 PM
To: Tomcat Users List
Subject: RE: URL protocol handler issues
How are you examining the source of this method, by the way?
If you downloaded the JDK you already have
On Sun, 2004-12-05 at 23:00 +0100, Jerome Lacoste wrote:
On Sun, 2004-12-05 at 21:15 +0100, Mark Lowe wrote:
Thats strange, it must think its a url. You your its not c:url rather
than c:out? Or is there something with the c:out variable name also
defined in the same page?
Mark,
shame
http://java.sun.com/j2se/1.5.0/docs/api/java/net/URLEncoder.html
or JSTL
c:url .. /
-Original Message-
From: Shakeel Ahmad [mailto:[EMAIL PROTECTED]
Sent: 06 December 2004 12:30
To: Tomcat Users List
Subject: URL encoding in JSP?
how to send characters in the URLs in JSP
Its a general container thing..
Choices.
1. You can use relative links for images and such like (img
src=../images/foo.gif /)
2. Write a filter that strips the session id off any request that
isn't a .jsp,servlet or .do or whatever you need the session ids for.
3. use mod_rewrite and strip the
Sorry I forgot. urlrewrite will give you a ready made configureable
filter that could do what you want. http://tuckey.org/urlrewrite/
On Sun, 5 Dec 2004 18:51:15 +0100, Mark Lowe [EMAIL PROTECTED] wrote:
Its a general container thing..
Choices.
1. You can use relative links for images
On Sun, 2004-12-05 at 18:51 +0100, Mark Lowe wrote:
Its a general container thing..
Thanks for your help. Question:
- why do I get jsessionid appended to text ? Look at the attachment. The
message is generated with a c:out tag and the jsessionid is appended
to it!
Choices.
1. You can use
On Sun, 2004-12-05 at 21:15 +0100, Mark Lowe wrote:
Thats strange, it must think its a url. You your its not c:url rather
than c:out? Or is there something with the c:out variable name also
defined in the same page?
Mark,
shame shame shame on me. I was looking at the wrong jsp. Both have a
Users List [EMAIL PROTECTED]
cc
Subject
Re: url-pattern question
Sorry, both of the urls are gttp://localhost:8080/. . .
On Nov 11, 2004, at 2:38 PM, Peter Fogg wrote:
Trying to learn how to develop applications in JSP and servlets. Using
Tomcat 5.0.28 on Mac OS X v10.3.5.
In web-apps
Sorry, both of the urls are gttp://localhost:8080/. . .
On Nov 11, 2004, at 2:38 PM, Peter Fogg wrote:
Trying to learn how to develop applications in JSP and servlets. Using
Tomcat 5.0.28 on Mac OS X v10.3.5.
In web-apps directory created subdirectory LearningTree.
Created and compiled a servlet
Hi Peter,
Your *application* is LearningTree so all class files go into
LearningTree/WEB-INF/classes
HWS is just a directory. If you want HelloWorldServlet to display there
as well you'll need to configure a
servlet-mapping in web.xml with url-pattern/HWS//url-pattern
PJ
Peter Fogg wrote:
I'd think url-pattern elements (regardless of where they appear) need to
conform to the url-patterns specified in the spec (not sure of section).
paths: starting with '/' and ending with '/*'
extensions: '*.foo'
exact: exact matching.
The url-pattern I've left from your original message
hehe, I did a search of spec 2.2 and 2.3 on url-pattern and didn't
find the definition. I guess I'll have to look at earlier specs for
the definition. either that or I missed it.
peter
On Mon, 8 Nov 2004 14:22:36 -0600, Mike Curwen
[EMAIL PROTECTED] wrote:
I'd think url-pattern elements
Hi,
It's SRV.11.2 in the Spec, and org.apache.tomcat.util.http.mapper.Mapper
in the Tomcat source code.
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From: Peter Lin [mailto:[EMAIL PROTECTED]
Sent: Monday, November 08, 2004 4:27 PM
To: Tomcat Users List
Subject: Re: url
, 2004 4:27 PM
To: Tomcat Users List
Subject: Re: url-pattern with Basic Auth
hehe, I did a search of spec 2.2 and 2.3 on url-pattern and didn't
find the definition. I guess I'll have to look at earlier specs for
the definition. either that or I missed it.
peter
On Mon, 8 Nov 2004 14
URL mappings can be a prefix mapping or a filextension mapping. Not both.
-Tim
Fred Blaise wrote:
any possible way i can achieve this in my web.xml ? Bc it wont the app
won't start with this... (tomcat 5.0.28)
url-pattern/*.jsp/url-pattern
Well, I am developping a site I would like to block entry to.
However, my .css file is also in this directory, so having a pattern of /* also
blocks access to my css, making the site very ugly to see.
I have tried the following, with no result:
.jsp (no result), jsp (no result), *.jsp (app fails
In that case look at ErrorFilter from my Servlet Utilities. It allows you to
set an error based on an EL expression. (The utilities depend on tomcat 5).
For example - to block all direct jsp access.
filter
filter-nameErrorFilter/filter-name
url-pattern*.jsp/url-pattern
But I think that you'll find that this is defined in the core web.xml to
go to the JSP servlet.
What are you trying to achieve?
On Thu, 2004-10-07 at 15:22, Fred Blaise wrote:
any possible way i can achieve this in my web.xml ? Bc it wont the app
won't start with
Hi,
This is not hard to do with a Filter, as long as your authentication is
done before this Filter (possibly with another one). Your chain would
then look like:
- Authentication filter (mapped to /*, does nothing if request already
authenticated)
- Rewrite filter (mapped to /*, checks
Hi,
Of course, just like you would in any other servlet container (using a
filter or servlet mapped to web1 which does response.sendRedirect to
web2).
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: Keshav Sarin [mailto:[EMAIL PROTECTED]
Sent: Monday, July 19,
Sure. But that means I need to have a webapp which does it
programmatically.
Isn't there a way to define a URL mapping on the web component of TC?
E.g. can't I configure TC to define that localhost/web1 maps to
localhost/web2?
[EMAIL PROTECTED] 07/19/04 11:32AM
Hi,
Of course, just like you
If you don't mind 2 instances of the same webapp running, you just deploy the
webapp under 2 names using an extra Context declaration.
-Tim
Keshav Sarin wrote:
Sure. But that means I need to have a webapp which does it
programmatically.
Isn't there a way to define a URL mapping on the web
: RE: URL validation
Hi,
Can you give examples and/or cases that show java.net.URL doesn't meet
the RFC specifications?
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: Ikonne, Ike [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 08, 2004 1:52 PM
To: 'Tomcat Users List
Hi,
I had this in the new
URL(http://4526353[EMAIL PROTECTED]@##$#$$%(()))*(*^%^%^)
and
it passed. I was expecting to get some error. Should I?
No, you shouldn't get an error. It's a valid but nonsensical URL. If
you're not clear why this is valid, and are interested, look at RFC
2396. To
Hi
Here is my problem, I am looking for a way to syntactically valid a given
URL without having to actually creating an URL object.
try {
new URL( myUrl );
return true;
} catch ( Throwable t ) {
return false;
}
Why not creating it?
Javas young generation garbage collection should dispose
Hi
... So problem here.
Meant: No problem here.
Sorry, regards,
Steffen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To: 'Tomcat Users List'
Subject: RE: URL validation
Hi
Here is my problem, I am looking for a way to syntactically valid a given
URL without having to actually creating an URL object.
try {
new URL( myUrl );
return true;
} catch ( Throwable t ) {
return false;
}
Why not creating it?
Javas young
Ikonne, Ike wrote:
Hi Steffen,
Thanks, new URL(url) doesn't work consistently. I have tried it,
one can throw in an url that doesn't meet RFC 1738 but URL(url) will
not catch it.
You could try regular expressions.
Here is a relatively simple one:
Hi James,
Thanks, I will try your suggestion and let you know if it
meets my requirements.
Ike
-Original Message-
From: James Black [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 08, 2004 2:06 PM
To: Tomcat Users List
Subject: Re: URL validation
Ikonne, Ike wrote:
Hi Steffen,
Thanks
Did you file a bug report at java.sun.com yet?
Ikonne, Ike wrote:
Hi Steffen,
Thanks, new URL(url) doesn't work consistently. I have tried it,
one can throw in an url that doesn't meet RFC 1738 but URL(url) will
not catch it.
Thanks,
Ike
Hi,
No, I have not. I haven't thought about it.
Ike
-Original Message-
From: Vy Ho [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 08, 2004 2:22 PM
To: Tomcat Users List
Subject: Re: URL validation
Did you file a bug report at java.sun.com yet?
Ikonne, Ike wrote:
Hi Steffen
Hi,
Can you give examples and/or cases that show java.net.URL doesn't meet
the RFC specifications?
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: Ikonne, Ike [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 08, 2004 1:52 PM
To: 'Tomcat Users List'
Subject: RE: URL
Hi,
IMHO (literally) this is not that good an idea in that your solution
will be incur more costs (complexity, customization, long-term
maintenance) than benefits (??).
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of
I think the struts list can probably answer this better than this list.
-Tim
Morten wrote:
Hi!
We are using Struts 1.1 and Tomcat 4.1.x at our company.
We are considering to separate our urls from our struts configuration.
Instead of /news.do?articleid=43 we would like the url to look like this:
You definately did a hard IIS restart..? I have done simple stop/start ones using the
controls and found this does not reload the mappings.
-Original Message-
From: Varley, Roger [mailto:[EMAIL PROTECTED]
Sent: 23 April 2004 13:51
To: [EMAIL PROTECTED]
Subject: URL Mapping Question
Hi
-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: 23 April 2004 13:54
To: Tomcat Users List
Subject: RE: URL Mapping Question
You definately did a hard IIS restart..? I have done simple
stop/start ones using the controls and found this does
I have now managed to get it to work. I have defined two contexts (InboundA and
InboundB) in server.xml and specified Inbound as the docBase for both contexts. So,
what does the context parameter in workers2.properties actually do?
Regards
Roger
-Original Message-
From:
much help..
Moran
-Original Message-
From: Varley, Roger [mailto:[EMAIL PROTECTED]
Sent: Friday, April 23, 2004 10:14 AM
To: Tomcat Users List
Subject: RE: URL Mapping Question
I have now managed to get it to work. I have defined two contexts (InboundA
and InboundB) in server.xml
Ok thanks for the info. I finally did it with a filter and it worked.
Regards
Alain
-Message d'origine-
De : news [mailto:[EMAIL PROTECTED] De la part de Bill Barker
Envoyé : jeudi, 25. mars 2004 04:29
À : [EMAIL PROTECTED]
Objet : Re: URL redirect problem, even with 'RequestDispatcher
/ is also known as the default servlet. So your servlet will also need to
server all static content too.
-Tim
Hertenstein Alain wrote:
Hi all,
This question has already been asked before, but the solutions found in
the archives don't seem to work properly.
I have a web site running on IIS
]
Envoyé : mercredi, 24. mars 2004 14:15
À : Tomcat Users List
Objet : Re: URL redirect problem, even with 'RequestDispatcher' servlet !
/ is also known as the default servlet. So your servlet will also need tos
erver all static content too.
-Tim
Hertenstein Alain wrote:
Hi all,
This question
Users List
Objet : Re: URL redirect problem, even with 'RequestDispatcher' servlet !
/ is also known as the default servlet. So your servlet will also need tos
erver all static content too.
-Tim
Hertenstein Alain wrote:
Hi all,
This question has already been asked before, but the solutions
and so
on...).
-Message d'origine-
De : Tim Funk [mailto:[EMAIL PROTECTED]
Envoyé : mercredi, 24. mars 2004 14:15
À : Tomcat Users List
Objet : Re: URL redirect problem, even with 'RequestDispatcher' servlet !
/ is also known as the default servlet. So your servlet will also need tos
erver
According to the spec (Chapter 11.2):
spec
A string beginning with a / character and ending
with a /* postfix is used for path mapping.
A string beginning with a *. prefix is used as an
extension mapping.
A string containing only the / character indicates
the default servlet of the
Ok, actually that second rule doesn't really work properly either (because
if someone posts their contact information, that redirect doesn't allow
the post to go through properly). Anyone have any ideas on how to do this
the right way?
Thanks!
-Raiden
On Wed, 18 Feb 2004 [EMAIL PROTECTED]
Actually, it looks like I just figured it out. I need to use [PT] instead
of just [P]. Not sure why it worked with just [P] in Apache 1.3.
Thanks,
-Raiden
On Thu, 19 Feb 2004 [EMAIL PROTECTED] wrote:
Ok, actually that second rule doesn't really work properly either (because
if someone
On Wed, 18 Feb 2004, Dean Searle wrote:
I have a simple, yet allusive question. In Apache and Tomcat you can create Virtual
Hosts. Within the Virtual Hosts you can specify different parameters. In Apache
httpd.conf I can have the following:
This is somewhat similar to the issue I was
Hey, check out the following section on URI/URL Standard Specification(RFC
2396).
http://www.w3.org/Addressing/
2.4.3. Excluded US-ASCII Characters
Although they are disallowed within the URI syntax, we include here a
description of those US-ASCII characters that have been
I'm using Tomcat in standalone mode and hence setting the permissions using
Tomcat in the web.xml file.
Jon
- Original Message -
From: Howard Watson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 31, 2003 3:36 PM
Subject: Re: URL path naming question, recommended
Howdy,
With tomcat 5 you can use a servlet as an index page, i.e. a
welcome-file in web.xml. Don't use /servlet as part of the URL unless
you have to, as that just gives hackers a clue.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Jonathan Eric Miller
This is a link to a PDF with a good discussion of doing the things you talk about from
your web.xml.
http://java.sun.com/developer/Books/javaserverpages/servlets_javaserver/servlets_javaserver05.pdf
[EMAIL PROTECTED] 12/31/03 11:56AM
I'm developing an application that uses servlets and JSP.
using on my login page to be inaccessible.
Jon
- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, December 31, 2003 1:05 PM
Subject: RE: URL path naming question, recommended naming conventions?
Howdy,
With tomcat 5 you
]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, December 31, 2003 1:05 PM
Subject: RE: URL path naming question, recommended naming conventions?
Howdy,
With tomcat 5 you can use a servlet as an index page, i.e. a
welcome-file in web.xml. Don't use /servlet as part of the URL unless
you
Howdy,
I'm not an expert on Apache's mod-rewrite, so I'll give you one possible
pue java solution: a fairly simple filter (a javax.servlet.Filter
filter). Map the filter /* and code your redirection rules in java.
Actually, you might want to look at the balancer webapp (tomcat 5) which
has a
Mattias Bogeblad
-Ursprungligt meddelande-
Från: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Skickat: den 29 december 2003 19:13
Till: Tomcat Users List
Ämne: RE: URL-rewriting
Howdy,
I'm not an expert on Apache's mod-rewrite, so I'll give you one possible
pue java solution: a fairly simple filter
Mufaddal,
Are there some
configuration settings in Tomcat 4.1.x that can be set in say the
server.xml or web.xml that can be used ?
Nope. Tomcat won't look through your responses for things that look like
URLs and append all the things you need (like sessison id, etc.).
However, if you are
Wouldnt it be nice a feature like this that one can turn on or off
globally in a container like tomcat ? The existing way to granularly do
it should remain, but a global way to do it would be nice ..
On Tuesday, November 18, 2003, at 09:13 AM, Christopher Schultz wrote:
Mufaddal,
Are there
Mufaddal,
Wouldnt it be nice a feature like this that one can turn on or off
globally in a container like tomcat ? The existing way to granularly do
it should remain, but a global way to do it would be nice ..
Feel free to submit a patch :)
-chris
Howdy,
You mean like the Referer (misspelled) header?
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: anunay ashish [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 8:55 AM
To: Tomcat Users List
Subject: URL of calling JSP page calling a servlet.
Hi,
I want to
7:41 PM
Subject: RE: URL of calling JSP page calling a servlet.
Howdy,
You mean like the Referer (misspelled) header?
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: anunay ashish [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 8:55 AM
To: Tomcat Users List
Howdy,
Yes, use HTTP Referer header. You can RTFM/google on this issue, it's
easy.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: anunay ashish [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 9:40 AM
To: Tomcat Users List
Subject: Re: URL of calling JSP page
Use frames. However, you are trying to change the way people use the web
and your users won't like that. People expect the URL in the location bar
to reflect where they are - that way they can bookmark pages and such like.
Kind regards,
Chris Williams.
- Original Message -
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, September 29, 2003 1:43 AM
Subject: Re: URL: Hiding index.jsp
Tomcat4 cannot do this by itself. With the help of apache and directory
indexing - this can be done with a little
Tomcat4 cannot do this by itself. With the help of apache and directory
indexing - this can be done with a little tweaking.
Tomcat5 can hide the name of the welcome-file.
-Tim
[EMAIL PROTECTED] wrote:
All,
I am trying to develop a site and wish to hide the default page defined in the
Tim Funk [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Tomcat4 cannot do this by itself. With the help of apache and directory
indexing - this can be done with a little tweaking.
Tomcat5 can hide the name of the welcome-file.
As can Tomcat 3.3.2-dev.
-Tim
[EMAIL PROTECTED]
:53:36 AM, you wrote:
MC Sorry sorry, web-resource-name elements are unique, just a copying
MC error.
MC -Original Message-
MC From: Alexander Vavilin [mailto:[EMAIL PROTECTED]
MC Sent: Thursday, August 14, 2003 10:33 PM
MC To: Tomcat Users List
MC Subject: Re: url-pattern and realms
Message-
MC From: Alexander Vavilin [mailto:[EMAIL PROTECTED]
MC Sent: Thursday, August 14, 2003 10:33 PM
MC To: Tomcat Users List
MC Subject: Re: url-pattern and realms security
MC Hello Colin,
MC I am not sure, but I think you cannot do this, first an
web-resource-name
MC element
Hello Colin,
I am not sure, but I think you cannot do this, first an
web-resource-name element means an UNIQUE name. Can you
understand ? You must give it different names. Second thing, I never
heard about http-method element.
Hope it will help.
--
Best regards,
Alexander
Sorry sorry, web-resource-name elements are unique, just a copying error.
-Original Message-
From: Alexander Vavilin [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 14, 2003 10:33 PM
To: Tomcat Users List
Subject: Re: url-pattern and realms security
Hello Colin,
I am not sure, but I
It's a Tomcat implementation detail, but I believe that 4.1.x does a
first-match (so moving /* to the end of the list should work). The
Servlet 2.4 spec is much more specific about what to do in your case, so
Tomcat 5 and WebLogic should do the same thing when they come out.
Madere, Colin [EMAIL
So simple, gotta love those. All is working as desired. Thanks Bill!
-Original Message-
From: Bill Barker [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 14, 2003 11:27 PM
To: [EMAIL PROTECTED]
Subject: Re: url-pattern and realms security
It's a Tomcat implementation detail, but I
Yes i did, thank you
but i can't get the filter to take action on all requests with (/*),
so i need to figure out how the url-pattern works
-Original Message-
From: Cox, Charlie [mailto:[EMAIL PROTECTED]
Sent: 1. juli 2003 18:55
To: 'Tomcat Users List'
Subject: RE: url-pattern
, 2003 2:59 AM
To: Tomcat Users List
Subject: RE: url-pattern in filters
Yes i did, thank you
but i can't get the filter to take action on all requests with (/*),
so i need to figure out how the url-pattern works
-Original Message-
From: Cox, Charlie [mailto:[EMAIL
Howdy,
A filter mapped to /* will get called for all requests. The description
of the url-pattern element and its uses is in the Servlet Specification.
If you post your specific filter's code, we can help find bugs in it.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
Howdy,
Assuming servlet1 is in context1, accessible as
http://yourhost:yourport/context1/servlet1,
And servlet2 is in context2, accessible as
http://yourhost:yourport/context2/servlet2,
you can do:
ServletContext context1 = getServletContext();
ServletContext context2 =
I tried changing the URL Pattern as suggested below but that didn't fix
the problem. With regards to my code, I have a simple form in my JSP
which uses the GET method to send some form field values to my
servlet. I'll paste the code below.
FORM action=/SAWSServlet class=formClass method=get
On Tue, 25 Mar 2003, Randy Curnutt wrote:
Date: Tue, 25 Mar 2003 21:14:47 -0500
From: Randy Curnutt [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED],
Randy Curnutt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: url-pattern problem? Deployed servlet works in Tomcat
Hi All,
I tried to run tomcat 4.1.18 with ssl connection. I followed the
instructions in 'ssl configuration HOW-TO'.I changed the server.xml file and
mentioned the ssl port as 8443 which is the default. When i type url
http://localhost:8443 the page does not display anything.
If anybody has been
Have you tried https://localhost:8443 instead of http://localhost:8443 ?
Diego
- Original Message -
From: Aparna Narla [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 7:25 PM
Subject: Re: url http://localhost:8443 does not display anything
Am I missing something, but shouldn't the date variable be available through the
regular request here.
%
String date = request.getParameter(date);
%
-Original Message-
From: Chad Pettit [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 11:02 AM
To: Tomcat Users List
Paul Phillips wrote:
Just for convenience sake, I would like to make an alias for login
purposes that looks something like:
http://myhost:8080/webappname/login
I can't figure out how to map that to my controller servlet AND at the
same time include the parameter event=login.
The
Erik suggested:
Why not create a filter -- map login to your filter (LoginFilter) and
have the Filter intercept the request and add the parameter to the
request before it calls the doFilterChain() (which means before it
passes the request to the Controller).
I thought about doing that, but
Probably, using a filter is an overkill in this situation.
If you are sending a GET request, just extend your URL:
http://myhost:8080/webappname/login?event=login .
If you are posting from a form, you can include a hidden parameter with
name=event and value=login.
Igor TN
On Mon, 27 Jan 2003,
On Mon, 27 Jan 2003 [EMAIL PROTECTED] wrote:
Date: Mon, 27 Jan 2003 11:23:45 -0600 (CST)
From: [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: URL alias
Erik suggested:
Why not create a filter -- map login to your filter (LoginFilter
On Sun, 26 Jan 2003, Paul Phillips wrote:
Date: Sun, 26 Jan 2003 12:08:32 -0600
From: Paul Phillips [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: URL alias
I have a web application that I have written that uses a
Just set up tomcat to serve ssl on port 443 (the default for https as 80 is
http) and you won't need to specify the port.
- Original Message -
From: Ravindra K. Bhat [EMAIL PROTECTED]
To: Ravindra K. Bhat [EMAIL PROTECTED]
Cc: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, January 23,
1 - 100 of 206 matches
Mail list logo