flower [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello,
Let's consider situation like this:
We have got some servlets responsible for genereting galery page. We want
group galery pages by use common part in uri (/galery/):
http://x.com/galery/galery_id/firstpage.html
Bill Barker wrote:
flower [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello,
Let's consider situation like this:
We have got some servlets responsible for genereting galery page. We want
group galery pages by use common part in uri (/galery/):
Hello,
Let's consider situation like this:
We have got some servlets responsible for genereting galery page. We
want group galery pages by use common part in uri (/galery/):
http://x.com/galery/galery_id/firstpage.html
http://x.com/galery/galery_id/secondpage.html
firstpage.html is generated
mapping and url
Hi,
I don't think there is any restriction to mapping a servlet to a welcome
page:
servlet
servlet-nameMyServlet/servlet-name
servlet-classcom.company.app.MyServlet/servlet-class
/servlet
servlet-mapping
servlet-nameMyServlet/servlet-name
url-pattern/myServlet/url-pattern
/servlet
in the
directory. But once you map the servlet to the same URL, the servlet
will intercept the request.
-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 02, 2005 9:25 AM
To: Tomcat Users List
Subject: Re: servlet mapping and url
Hi,
I don't think there is any
i want to invoke a servlet using url like http://localhost:8080 only
i have done it using http://localhost:8080/index.html where index.html is a
servlet. Is it possible to load this servlet as a default just like a default
web page. The point is i want a servlet to recieve a request when url
you can configure your web.xml file and make index.jsp
file as an welcome file using,
welcome-file-list
welcome-fileindex.jsp/welcome-file
/welcome-file-list
now, create index.jsp file which will simply forward
the request to your servlet!
Rgds,
Hardik
--- s s [EMAIL PROTECTED]
Hi,
I don't think there is any restriction to mapping a servlet to a welcome
page:
servlet
servlet-nameMyServlet/servlet-name
servlet-classcom.company.app.MyServlet/servlet-class
/servlet
servlet-mapping
servlet-nameMyServlet/servlet-name
url-pattern/myServlet/url-pattern
/servlet-mapping
a JSP
view, probably via request forwarding or whatever. However, the web.xml /*
mapping to the controller picks up the JSP request/forward whatever, and so the
JSP is never run as we're in a loop.
Why oh why can't servlet-mapping elements allow for exclusions I don't know.
Perhaps someone out
action=loginhandler
correctly invokes the com.company.LoginHandler servlet (which suggests
there's nothing syntactically wrong with the servlet and
servlet-mapping entries in web.xml);
When Tomcat stand-alone is turned off and Apache is turned on, that same
page always throws a 404 error
without
any problems; so that a page with this form definition:
FORM name=login method=POST action=loginhandler
correctly invokes the com.company.LoginHandler servlet (which suggests
there's nothing syntactically wrong with the servlet and
servlet-mapping entries in web.xml);
When Tomcat stand
nothing
syntactically wrong with the servlet and servlet-mapping entries
in web.xml);
When Tomcat stand-alone is turned off and Apache is turned on, that
same page always throws a 404 error for site/loginhandler; these are
the error messages in mod_jk.log:
[Wed Jun 22 09:04:08 2005] [mod_jk.c
, 2004 5:36 AM
Subject: Re: Servlet mapping problem.
Hi,
I'm not using struts.
Stefan
www.killersites.com
- Original Message -
From: sven morales [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 22, 2004 12:25 AM
Subject: Re: Servlet mapping
generate this
form element? I assume you don't have the webapp's name hard-coded.
To answer your question in general, Tomcat's servlet mapping behavior is
extremely well-tested, and has been for years. I'd be surprised if this
issue was NOT caused by a configuration or coding mistake in your
webapp
init-param
param-nametestPassword/param-name
param-valuexxx/param-value
/init-param
/servlet
servlet-mapping
servlet-nameloginResponse/servlet-name
url-pattern/loginResponse.do/url-pattern
/servlet-mapping
/web-app
At this point I'm stumped as to why Tomcat refuses the servlet
List
Subject: Re: Servlet mapping problem.
Hi,
This is my web.xml for the web app:
?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web
Application
2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
welcome-file-listindex.jsp/welcome-file-list
filter
22, 2004 9:03 AM
Subject: RE: Servlet mapping problem.
Hi,
message /loginResponse.do
description The requested resource (/loginResponse.do) is not
available.
It seems the context_name part of your form element is blank, missing,
or wrong, since the page is asking for /loginResponse.do
tool
login page!
The URL: http://127.0.0.1/admin/index.jsp
And for the sake of completeness my mapping for the servlet:
servlet-mapping
servlet-nameloginResponse/servlet-name
url-pattern/loginResponse.do/url-pattern
/servlet-mapping
Does this shed any light on what is going on?
Stefan
Hi,
form action=/the_context/loginResponse.do method=post
name: input type=text name=adminPassword
input type=submit
/form
I meant the server-side code, not the HTML output.
Q. Accordingly, how do you generate this form element?
A. I'm not sure what you mean, it's just a hard-coded HTML
From a page with this URL: http://127.0.0.1/the_context/logIn.jsp
And when I submit the form I am taken to Tomcats' web server admin tool
login page!
The URL: http://127.0.0.1/admin/index.jsp
And for the sake of completeness my mapping for the servlet:
servlet-mapping
servlet
, November 22, 2004 10:12 AM
Subject: RE: Servlet mapping problem.
Hi,
form action=/the_context/loginResponse.do method=post
name: input type=text name=adminPassword
input type=submit
/form
I meant the server-side code, not the HTML output.
Q. Accordingly, how do you generate this form
, November 22, 2004 10:19 AM
Subject: Re: Servlet mapping problem.
Why don't you just use a relative link?:
form action=loginResponse.do method=post
On Mon, 2004-11-22 at 10:13, Stefan wrote:
Hi,
Just out of curiousity I changed the forms' action attribute to include
the
full path
List [EMAIL PROTECTED]
Sent: Monday, November 22, 2004 10:19 AM
Subject: Re: Servlet mapping problem.
Why don't you just use a relative link?:
form action=loginResponse.do method=post
On Mon, 2004-11-22 at 10:13, Stefan wrote:
Hi,
Just out of curiousity I changed the forms
at this
point I'm not too impressed the Tomcat.
Thanks Ben.
Stefan
- Original Message -
From: Ben Souther [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 22, 2004 10:40 AM
Subject: Re: Servlet mapping problem.
In your context tag, your specifying: path
Hi,
I actually put the context reference in the context tag ... just
something
I
omitted in the email. But alas, it still does not work ...
/snip
I'm actually going to see if I can get the client to use Resin (for
some
reason, everything works fine is Resin ... out of the box), frankly at
this
Subject: Re: Servlet mapping problem.
In your context tag, your specifying: path=
but in your url you're using:
http://127.0.0.1/the_context/loginResponse.do;
^^^
Either put: path=/the_context in your context tag or
don't specify it in your url
...
Thanks for your help.
Stefan
- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 22, 2004 11:34 AM
Subject: RE: Servlet mapping problem.
Hi,
I actually put the context reference in the context tag ... just
Message -
From: Ben Souther [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 22, 2004 11:41 AM
Subject: Re: Servlet mapping problem.
If you're interested, I've got some simple apps all WARed up on my site.
http://simple.souther.us.
Try dropping one of those wars
Shapira http://www.yoavshapira.com
-Original Message-
From: Stefan [mailto:[EMAIL PROTECTED]
Sent: Monday, November 22, 2004 11:54 AM
To: Tomcat Users List
Subject: Re: Servlet mapping problem.
Thanks Ben - I'll give it a go .. the client may insist still on
Tomcat,
anyway it bugs me
?
Thanks,
Stefan
- Original Message -
From: Ben Souther [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 22, 2004 11:41 AM
Subject: Re: Servlet mapping problem.
If you're interested, I've got some simple apps all WARed up on my site.
http
]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 22, 2004 11:58 AM
Subject: RE: Servlet mapping problem.
Hi,
The problem is that you've messed up your configuration. You created
context.xml and you created your static HTML page. One says path= and
the other asks for path
, could it be some physical
path issue?
Thanks,
Stefan
- Original Message -
From: Ben Souther [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 22, 2004 11:41 AM
Subject: Re: Servlet mapping problem.
If you're interested, I've got some
Subject: Re: Servlet mapping problem.
Yoav,
As I stated in a previous post - I actually included the context name
in
the
context.xml file, I just omitted it in my email.
Beyond that, I initially did not include a context.xml file - but it
did
not
work, so I figured I'd give it a go.
But if you
, November 22, 2004 12:12 PM
Subject: RE: Servlet mapping problem.
Hi,
Do you get any errors in your log on startup? Are you running Tomcat as
a Windows service, or from the command line?
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From: Stefan [mailto:[EMAIL PROTECTED]
Sent
: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 22, 2004 12:12 PM
Subject: RE: Servlet mapping problem.
Hi,
Do you get any errors in your log on startup? Are you running Tomcat as
a Windows service, or from the command line?
Yoav
:
--
servlet servlet-nameloginResponse/servlet-name
servlet-classcom._ABC.authenticateAdmin/servlet-class init-param
param-nameadminPassword/param-name param-valuexxx/param-value
/init-param /servlet servlet-mapping
servlet-nameloginResponse/servlet-name
url-pattern/loginResponse.do/url
-name
param-valuexxx/param-value
/init-param /servlet servlet-mapping
servlet-nameloginResponse/servlet-name
url-pattern/loginResponse.do/url-pattern
/servlet-mapping
--
It's my first time using Tomcat, been
PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, November 21, 2004 9:58 PM
Subject: Re: Servlet mapping problem.
Can you show us what you type in to your browser?
--- Stefan [EMAIL PROTECTED] wrote:
Hi,
I first posted this question with the wrong subject
heading
.
Stefan
www.killersites.com
- Original Message -
From: sven morales [EMAIL PROTECTED]
To: Tomcat Users List
[EMAIL PROTECTED]
Sent: Sunday, November 21, 2004 9:58 PM
Subject: Re: Servlet mapping problem.
Can you show us what you type in to your
browser?
--- Stefan
Hi,
I'm not using struts.
Stefan
www.killersites.com
- Original Message -
From: sven morales [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 22, 2004 12:25 AM
Subject: Re: Servlet mapping problem.
Can you also post all your struts-config.xml
:[EMAIL PROTECTED]
Sent: Wednesday, November 10, 2004 5:37 PM
To: [EMAIL PROTECTED]
Subject: Multiple Servlet Mapping Problem
Is it possible to have two separate servlets, with separate
configurations pointing to the same class?
Here's my situation, I have a servlet class that has several
init
-nameMasterControlURA/servlet-name
servlet-classcom.foo.bar.core.MasterControl/servlet-class
init-param
param-nameCONTROL_PARAMETER_NAME/param-name
param-valuecommand2/param-value
/init-param
/servlet
servlet-mapping
servlet-nameMasterControl/servlet-name
url-pattern/aop/url-pattern
fine to me.
-Original Message-
From: Dana Cordes [mailto:[EMAIL PROTECTED]
Sent: Wednesday 10 November 2004 22:37
To: [EMAIL PROTECTED]
Subject: Multiple Servlet Mapping Problem
Is it possible to have two separate servlets, with separate
configurations pointing to the same class
Hi all,
I am writing an application which have to serve content based on the
hostname it is requested. Different hosts will be set to same ROOT
directory. There wont be any content at the ROOT. Everything will be
on subdirectories. I wrote a servlet with mapping as / . But when it
is forwarded
Anto Paul wrote:
Hi all,
I am writing an application which have to serve content based on the
hostname it is requested. Different hosts will be set to same ROOT
directory. There wont be any content at the ROOT. Everything will be
on subdirectories. I wrote a servlet with mapping as / . But when
Hi there,
I posted this to Tomcat User List. I didnt posted this to Struts.
Although the application is using Struts it is not specific to Struts.
rgds
Anto Paul
On Wed, 29 Sep 2004 00:59:53 -0700, Michael McGrady
[EMAIL PROTECTED] wrote:
Anto Paul wrote:
Hi all,
I am writing an
Hi
I wrote a servlet with mapping as / . But when it is forwarded to
subdirectory it is coming to same servlet and executing in a loop.
You cannot map a single url. Tomcat only maps prefixes. So, you cannot map
/ with tomcat. (Resin can, but this is another story.)
Here is a workaround:
Map
I cant grasp what you said. I am using Tomcat 4.1.x. I searched in
Google for world welcome-file and could'nt find anything on it. Are
you talking about welcome-file-list ?.
rgds
Anto Paul
On Wed, 29 Sep 2004 11:43:33 +0200, Steffen Heil [EMAIL PROTECTED] wrote:
Hi
I wrote a servlet with
Hi,
You cannot map a single url. Tomcat only maps prefixes. So, you cannot
map
Really? Where did this nugget come from? ;) I nearly choked on my
(otherwise fabulous) croissant. Your assertion above is wrong. Tomcat
implements servlet mapping exactly as required by the Servlet
Specification
Hi
I cant grasp what you said. I am using Tomcat 4.1.x. I searched in Google
for world welcome-file and could'nt find anything on it. Are you talking
about welcome-file-list ?.
Yes. It's entry is welcome-file.
welcome-file-list
welcome-fileroot/welcome-file
/welcome-file-list
Hi
You cannot map a single url. Tomcat only maps prefixes.
Really? Where did this nugget come from? ;) I nearly choked on my
(otherwise fabulous) croissant. Your assertion above is wrong. Tomcat
implements servlet mapping exactly as required by the Servlet Specification
(SRV 11
Hi,
However, I am sure about the fact, that you cannot map a single url
such as
/.
(Yes, you can define a mapping of /, but that maps to EVERY request,
NOT
to the root url only.)
No. You're mistaking the default configuration for something that's
hard-coded. Out of the box, / is mapped to
think the original poster wanted to archieve, what I had to do
once:
To KEEP the default servlet mapping for all my html, js and css files and
additionally have a servlet that get's ONLY called for the domain root /.
This works as I described, with the trick of using welcome file and (at
least
What if I use a filter ?. I will map it like this
filter-mapping
filter-nameMappingFilter/filter-name
url-pattern//url-pattern
/filter-mapping
filter-mapping
filter-nameMappingFilter/filter-name
url-pattern/*/url-pattern
/filter-mapping
In filter
Millennium Research Informatics
-Original Message-
From: Anto Paul [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 29, 2004 10:06 AM
To: Tomcat Users List
Subject: Re: Servlet mapping problem
What if I use a filter ?. I will map it like this
filter-mapping
filter
Anto Paul wrote:
Hi there,
I posted this to Tomcat User List. I didnt posted this to Struts.
Although the application is using Struts it is not specific to Struts.
rgds
Anto Paul
On Wed, 29 Sep 2004 00:59:53 -0700, Michael McGrady
[EMAIL PROTECTED] wrote:
Anto Paul wrote:
Hi all,
I am
Hi,
I'm using Struts with Tomcat, and am upgrading to Tomcat 5.
It appears that it won't recognize any of my servlets, though, which I
could previously call though ...[webapp]/servlet/servletname.
I managed to call them by adding a servlet-mapping to eliminate the
/servlet/ bit
Subject: servlet-mapping required??? Tomcat 5 upgrade problem...
Hi,
I'm using Struts with Tomcat, and am upgrading to Tomcat 5.
It appears that it won't recognize any of my servlets, though, which I
could previously call though ...[webapp]/servlet/servletname.
I managed to call them by adding
You need to enable the invoker servlet in your web.xml. This is not recommended for
production but it should work just as you expect.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 03 August 2004 18:52
To: Tomcat Users List
Subject: servlet-mapping required
:
|
| Subject: servlet-mapping required??? Tomcat 5 upgrade problem...(Document
link: David Hay
Hi, I place member.jsp in my webapp root folder, which is
TOMCAT_HOME -- webapp --myWebApp/
and part of web.xml :
servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping
part of struts-config.xml:
action-mappings
keep the original mapping, but also add it to your welcome file list
On Sun, 11 Jul 2004 04:45:49 +0800, Koon Yue Lam [EMAIL PROTECTED]
wrote:
Hi, I place member.jsp in my webapp root folder, which is
TOMCAT_HOME -- webapp --myWebApp/
and part of web.xml :
servlet-mapping
servlet
Hi Jarl !
sorry, I still don't get what u mean
I try to place
welcome-file-list
welcome-file/Member.jsp/welcome-file
/welcome-file-list
in web.xml and keep the mapping as :
servlet-mapping
servlet-nameaction/servlet-name
url-pattern/*/url
on Windows. HTH.
Cheers,
Larry
-Original Message-
From: Christoph P. Kukulies [mailto:[EMAIL PROTECTED]
Sent: Monday, April 05, 2004 11:19 AM
To: Tomcat Users List
Subject: Re: cannot get servlet mapping working under 3.3
On Mon, Apr 05, 2004 at 11:41:56AM +0200, Christoph P. Kukulies
/jserv.conf.
Chris Christoph P. U. Kukulies kuku_at_physik.rwth-aachen.de
:: Subject: cannot get servlet mapping working under 3.3
::
:: I'm reconvalescing from a disc crash where lots of my existing
:: tomcat 3.1/apache 1.3.26 installation had crashed and I
:: reinstalled tomcat 3.3 with apache
I found the following in tomcat.conf in the 3.3 distribution:
## Context mapping - you need to deploy
# ( copy or ln -s ) the context into htdocs
##
# ApJservMount /CONTEXT/servlet /root
# Location /CONTEXT/WEB-INF/
# AllowOverride None
# deny from all
#
Investigating further I come to the conclusion that my problem may be
related to the invoker servlet.
Doesn't tomcat 3.3 have a central web.xml any longer?
Sorry, I know that talking about tomcat 5.x is more interesting
than talking about yesterdays. :-)
Chris Christoph P. U. Kukulies
On Mon, Apr 05, 2004 at 11:41:56AM +0200, Christoph P. Kukulies wrote:
Investigating further I come to the conclusion that my problem may be
related to the invoker servlet.
Doesn't tomcat 3.3 have a central web.xml any longer?
Sorry, I know that talking about tomcat 5.x is more interesting
I'm reconvalescing from a disc crash where lots of my existing
tomcat 3.1/apache 1.3.26 installation had crashed and I
reinstalled tomcat 3.3 with apache-1.3.27 now such that
the examples work when I connect to the server at port 8080.
But this is tomcat. Trying to connect to apache via the
. Thank you.
:: -Original Message-
:: From: C. Kukulies [mailto:[EMAIL PROTECTED]
:: Sent: Sunday, April 04, 2004 9:55 PM
:: To: [EMAIL PROTECTED]
:: Subject: cannot get servlet mapping working under 3.3
::
:: I'm reconvalescing from a disc crash where lots of my existing
:: tomcat 3.1
,
please notify me immediately so that I can correct and delete the original
email. Thank you.
:: -Original Message-
:: From: Schalk [mailto:[EMAIL PROTECTED]
:: Sent: Sunday, April 04, 2004 10:04 PM
:: To: 'Tomcat Users List'
:: Subject: RE: cannot get servlet mapping working under 3.3
time.
-Tim
David Erickson wrote:
Hi I would like to do something like:
servlet-mapping
servlet-nameaction/servlet-name
url-pattern/docs/**.pdf/url-pattern
/servlet-mapping
So that anything in the /docs/ folder AND ANY of its subfolders with the
.pdf extension gets sent to my action servlet
that be!
Then apache and tomcat will decide on supporting this as well...
Daniel Gibby
Tim Funk wrote:
No. You can prefix match or file extension match, but not both at
the same time.
-Tim
David Erickson wrote:
Hi I would like to do something like:
servlet-mapping
servlet-nameaction/servlet
this code ...
servlet
servlet-namevalidate_user/servlet-name
servlet-classcom.bs.crm.validateUser/servlet-class
/servlet
..
servlet-mapping
servlet-namevalidate_user/servlet-name
url-pattern/validate_user/url-pattern
/servlet-mapping
Anybody can help me ??
Thanx in advance !!
Andrew
for the servlets is like this code ...
servlet
servlet-namevalidate_user/servlet-name
servlet-classcom.bs.crm.validateUser/servlet-class
/servlet
I don't know how it works in your local tomcat installation, but I think
the servelt../servlet pair should the
servlet-mapping../servlet-mapping pair
Does the tomcat runs for sample programs or admin on hosting server.
-Original Message-
From: BAO RuiXian [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 25, 2004 10:22 AM
To: Tomcat Users List
Subject: Re: another servlet-mapping question,.
Andres Ledesma wrote:
Hi
, February 25, 2004 9:41 AM
Subject: another servlet-mapping question,.
Hi everybody,
I got several servlets mapped on the web.xml file that works pretty fine
on my
local tomcat installation, but when uploaded to the hosting server, I get
a
400 Server Statuts Error, it complains
Hi.
I am very troubled over a servlet mapping problem, and I am hoping that
someone can make a suggestion.
I have added a context in conf/Catalina/localhost/test.xml as follows:
Context path=/mywebapps docBase=/cs/home/jas/webapps reloadable=true
autoDeploy=true/Context
In /cs/home/jas
Howdy,
I am very troubled over a servlet mapping problem, and I am hoping that
someone can make a suggestion.
I have added a context in conf/Catalina/localhost/test.xml as follows:
Context path=/mywebapps docBase=/cs/home/jas/webapps
reloadable=true
autoDeploy=true/Context
In /cs/home/jas
Jason Keltz wrote:
Hi.
I am very troubled over a servlet mapping problem, and I am hoping that
someone can make a suggestion.
I have added a context in conf/Catalina/localhost/test.xml as follows:
Context block should be in conf/server.xml file.
Best
Bao
Context path=/mywebapps docBase
Howdy,
Context block should be in conf/server.xml file.
It doesn't have to be, and with tomcat 5 that's actually discouraged.
Yoav Shapira
This e-mail, including any attachments, is a confidential business communication, and
may contain information that is confidential, proprietary and/or
for each one?
Would this mean that I now do not have to add any context lines for the
applications to work?
Thanks so much for your help ...
Jason.
On Wed, 25 Feb 2004, Shapira, Yoav wrote:
Howdy,
I am very troubled over a servlet mapping problem, and I am hoping that
someone can make
Howdy,
Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
If I want multiple appBase directories for this host, can I define
multiple host lines, changing the appBase directive for each one?
Each host has one
/actions/blah.do with a *.do mapping, struts only gets /actions/blah to
match by..
-David
- Original Message -
From: Daniel Gibby [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, February 25, 2004 6:54 AM
Subject: Re: Servlet-Mapping Question, recursive capable?
I'm
Hi I would like to do something like:
servlet-mapping
servlet-nameaction/servlet-name
url-pattern/docs/**.pdf/url-pattern
/servlet-mapping
So that anything in the /docs/ folder AND ANY of its subfolders with the
.pdf extension gets sent to my action servlet.
Is that possible with tomcat
No. You can prefix match or file extension match, but not both at the same time.
-Tim
David Erickson wrote:
Hi I would like to do something like:
servlet-mapping
servlet-nameaction/servlet-name
url-pattern/docs/**.pdf/url-pattern
/servlet-mapping
So that anything in the /docs/ folder
in it. How nice would that be!
Then apache and tomcat will decide on supporting this as well...
Daniel Gibby
Tim Funk wrote:
No. You can prefix match or file extension match, but not both at the
same time.
-Tim
David Erickson wrote:
Hi I would like to do something like:
servlet-mapping
servlet
;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee web-app_2_4.xsd
version=2.4
servlet
servlet-namemyservlet/servlet-name
servlet-classmypackage.MyServlet/servlet-class
/servlet
servlet-mapping
servlet-namemyservlet/servlet-name
url-pattern//url-pattern
url-pattern/servlet/myservlet/url-pattern
url-pattern/servlet
Howdy,
The / mapping is taken by default servlet in the default tomcat
configuration. If you map a servlet to /, you have to:
1. Remove the default servlet mapping from conf/web.xml.
2. Make sure you handle static content (this is what the default servlet
handles, among other duties
In version 5x you could also set a servlet to be your welcome file.
On Friday 12 December 2003 01:45 pm, Shapira, Yoav wrote:
Howdy,
The / mapping is taken by default servlet in the default tomcat
configuration. If you map a servlet to /, you have to:
1. Remove the default servlet mapping
with that...
Thanks, Jon
- Original Message -
From: Ben Souther [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, December 12, 2003 1:31 PM
Subject: Re: Default servlet mapping not working in Tomcat 5.0.16?
In version 5x you could also set a servlet to be your welcome file
The welcome file list actually has to point to a servlet mapping.
Here is mine. It works.
2296
2297 servlet-mapping
2298 servlet-nameHrpServlet/servlet-name
2299 url-pattern/HRP/url-pattern
2300 /servlet-mapping
2301
2302
2303 welcome-file-list id
using a redirect.
Thanks, Jon
- Original Message -
From: Ben Souther [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, December 12, 2003 3:01 PM
Subject: Re: Default servlet mapping not working in Tomcat 5.0.16?
The welcome file list actually has to point
PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, December 12, 2003 3:01 PM
Subject: Re: Default servlet mapping not working in Tomcat 5.0.16?
The welcome file list actually has to point to a servlet mapping.
Here is mine. It works.
2296
2297 servlet-mapping
]
Subject: servlet-mapping like mod_rewrite?
through /de/* (german) and /en/* (english). Of course, I
don't want to
use two servlet-repositories for that. My idea is, that no matter if
e.g. /en/helloworld or /de/helloworld is requested, a unique
helloworld-servlet creates the response
Hello,
What about using one centralized servlet that parses
req.getPathInfo(), sets the language as request attribute
and forwards to the real servlet(s) ?
how is a request-forwarding done?
Regards
Marten
-
To unsubscribe,
Hello,
Have a session variable that tracks what language they're using.
I'm not looking for a different solution, but one, that solves my
question. I definitely cannot do anything else than the /de/ or /en/ thing.
Regards
Marten
Sorry not much time, try searching for request dispatcher and forward
-Original Message-
From: Marten Lehmann [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 4:46 PM
To: Tomcat Users List
Subject: Re: servlet-mapping like mod_rewrite?
Hello,
What about using one
req.getRequestDispatcher(path/To/servlet)
On Wed, 2003-12-10 at 10:46, Marten Lehmann wrote:
Hello,
What about using one centralized servlet that parses
req.getPathInfo(), sets the language as request attribute
and forwards to the real servlet(s) ?
how is a request-forwarding done?
Hello,
to offer language-depended websites I want to make a webapp available
through /de/* (german) and /en/* (english). Of course, I don't want to
use two servlet-repositories for that. My idea is, that no matter if
e.g. /en/helloworld or /de/helloworld is requested, a unique
1 - 100 of 368 matches
Mail list logo