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/):
http://x.com/galery/galery_
"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.h
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 b
up 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 thi
welcome file unless it shows up 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
Hi,
I don't think there is any restriction to mapping a servlet to a welcome
page:
MyServlet
com.company.app.MyServlet
MyServlet
/myServlet
/myServlet
Also, I'm not as sure, put I think just mapping the servlet to / will do
the trick as well. Both are easy enough to test though, giv
you can configure your web.xml file and make index.jsp
file as an welcome file using,
index.jsp
now, create index.jsp file which will simply forward
the request to your servlet!
Rgds,
Hardik
--- s s <[EMAIL PROTECTED]> wrote:
> i want to invoke a servlet using url like
> http
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
h
ontroller, sends back 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 d
Hi,
As you test, can you load a servlet through apache httpd? Such as
http://www.xyz.com/testservlet
You should make a simple servlet that just has the doGet method to test.
-Steve O.
> System: Solaris SunOS 5.9
> Apache: 2.0.52
> Tomcat: 4.1.31
> Mod JK: 1.2.6
> The problem: Apache/mod_jk c
Hi David:
An alternate to using mod_JK is to proxy http (or https) request to
the Tomcat from Apache.
i.e:
ProxyPass /path http://localhost:port/path
ProxyPassReverse /path http://localhost/path
There are valid reasons for using mod_JK - above just an alternate
suggestion if you can do without m
System: Solaris SunOS 5.9
Apache: 2.0.52
Tomcat: 4.1.31
Mod JK: 1.2.6
The problem: Apache/mod_jk cannot resolve servlet URL mappings
When Tomcat is running stand-alone, it can resolve servlet mappings without
any problems; so that a page with this form definition:
correctly invokes the com.com
n
>
>
> - Original Message -
> From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, November 22, 2004 12:12 PM
> Subject: RE: Servlet mapping problem.
>
>
>
> Hi,
> D
; <[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 Shapira http://www.yoavshapira.com
>-Original Messag
t Users List
>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
&g
sion of Tomcat if it's installed in
> the 'Program Files' directory - that is to say, could it be some physical
> path issue?
>
> Thanks,
>
>
> Stefan
>
>
>
> - Original Message -
> From: "Ben Souther" <[EMAIL PROTECTE
v" <[EMAIL PROTECTED]>
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
ical
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 a context.xml file, it's up to you
to learn how to use it.
Yoav 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.
>
&
- 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
x27;t work ...
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
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=""
> > but in your url you&
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 ...
>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
>p
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
>
>
> - Original Message -
> From: "Ben Souther" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, November 22, 2004 10:19 AM
> Subject: Re: Servlet mapping problem.
>
>
> > Why don't you
e, my web app is sitting in the 'webapps' directory in Tomcat.
Any ideas?
Stefan
www.killersites.com
- Original Message -
From: "Ben Souther" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 22, 2004 10:19 A
mcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 22, 2004 10:12 AM
Subject: RE: Servlet mapping problem.
Hi,
>
>
>name:
>
>
>
>
I meant the server-side code, not the HTML output.
>Q. Accordingly, how do you generate this element?
>A. I'
the servlet:
>
>
> loginResponse
> /loginResponse.do
>
>
>
> Does this shed any light on what is going on?
>
>
> Stefan
>
> www.killersites.com
>
>
> - Original Message -
> From: "Stefan" <[EMAIL PROTECTE
Hi,
>
>
>name:
>
>
>
>
I meant the server-side code, not the HTML output.
>Q. Accordingly, how do you generate this element?
>A. I'm not sure what you mean, it's just a hard-coded HTML form.
It shouldn't be. Try a relative URL instead.
>Q. I assume you don't have the webapp's name hard-cod
rom: "Stefan" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, November 21, 2004 10:31 PM
Subject: Re: Servlet mapping problem.
> Hi,
>
> I am actually using a form to post to the target servlet:
>
>
>
> name:
&g
tion attribute? If so, is that a
problem?
Thanks,
Stefan
www.killersites.com
- Original Message -
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 22, 2004 9:03 AM
Subject: RE: Servlet mapping
Tomcat Users List
>Subject: Re: Servlet mapping problem.
>
>Hi,
>
>This is my web.xml for the web app:
>
>
>
>2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
>
> index.jsp
>
>
> authentication filter
> com._XYZ.authenticateAdminF
d
xxx
loginResponse
/loginResponse.do
At this point I'm stumped as to why Tomcat refuses the servlet mapping?
Stefan
www.killersites.com
- Original Message -
From: "Andoni" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent:
ow do you generate this
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
Monday, November 22, 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: "Tom
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.
an
>
> 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.
>
>
ber 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 ... sorry
>
>
> It's my first time using Tomcat, been a Resin user
> for years ... any ideas?
>
> Thanks,
>
> Stef
>
>
>
> - Original Message -
> From: "Mark Thomas" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'&
deas?
Thanks,
Stef
- Original Message -
From: "Mark Thomas" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Sunday, November 21, 2004 12:10 PM
Subject: RE: CGI Again...Servlet.service() for servlet cgi threw exception
> I'll
s [mailto:[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,
le, your config looks 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, wi
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-parameters. I want to have a second instance of that same servlet
running with different parameters. But it doesn't seem to
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 wr
av Shapira
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
What if I use a filter ?. I will map it like this
MappingFilter
/
MappingFilter
/*
In filter I forward to the path substituted with the directory. With
servlet I failed to achieve what I want. I am sceptical about using a
forward in a filter.
did understand this.
However, I 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 th
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 mapp
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 1
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.
root
If someone accesses "/", tomcat will search for "/root" and
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
Specificat
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 w
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 "
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 writ
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 it
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 to
|
| cc:
|
| Subject: servlet-mapping required??? Tomcat 5 upgrade problem...(
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
ist
>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/s
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, but
y
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
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 intere
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 kuku_at_ph
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
#
# AllowOverride None
# deny from all
#
What would that mean? Do
or httpd.conf/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
&g
,
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
. 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
:: tomca
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 jserv
tched
/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: Servle
Howdy,
> 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 appBase directory. You can eithe
h 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 a suggestion.
> >
> >I have added a context in conf/Catalina/localhost/test.xm
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
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
In "/cs/home/jas/webapps
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:
>
>autoDeploy="true">
>
>In "/cs/home/jas/webapps/test", I have
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:
In "/cs/home/jas/webapps/test", I have a directory "test" with a
"WEB-INF" direct
" <[EMAIL PROTECTED]>
Sent: Wednesday, 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 hosti
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:
>
Andres Ledesma wrote:
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 the path to the server does not exist
!!!
My web.xml for the
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 the path to the server does not exist
!!!
My web.xml for the servlets is like this co
I'm just predicting the future, and I think eventually the ** convention
will be adopted in many systems and specs. I'm kinda going off topic, so
sorry.
dangby
Tim Funk wrote:
The mapping rules are dictated by the servlet spec. Its not tomcat
specific.
-Tim
Daniel Gibby wrote:
Too bad thou
The mapping rules are dictated by the servlet spec. Its not tomcat specific.
-Tim
Daniel Gibby wrote:
Too bad though. I really like ant's recursive matching capabilities. I
think that eventually a 'rebash' shell will be written that supports **
as recursive so that
grep catalina **/docs/*.java
Too bad though. I really like ant's recursive matching capabilities. I
think that eventually a 'rebash' shell will be written that supports **
as recursive so that
grep catalina **/docs/*.java
would look for only java files in a subdirectory somewhere named docs
with the text catalina in it. How
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:
action
/docs/**.pdf
So that anything in the /docs/ folder AND ANY of its subfolders with the
.pdf extension gets sent to my action servlet.
Is
Hi I would like to do something like:
action
/docs/**.pdf
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 4.1.24? If not does anybody know the class
that matches those things so I can alte
nks, 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
27;m better off just 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
The welcome file list actually has to point to a servlet mapping.
Here is mine. It works.
2296
2297
2298 HrpServlet
2299 /HRP
2300
2301
2302
2303
2304 HRP
2305
2306
On Friday 12 December 2003 03:35 pm, Jonathan Eric Miller
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.
>
>
;
> From: Jonathan Eric Miller [mailto:[EMAIL PROTECTED]
>
> >Sent: Friday, December 12, 2003 1:23 PM
> >To: Tomcat User List
> >Subject: Default servlet mapping not working in Tomcat 5.0.16?
> >
> >I'm using Tomcat 5.0.16 and I'm trying to make it so tha
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).
As for
I'm using Tomcat 5.0.16 and I'm trying to make it so that if a user enters a
path like, http://myserver/myapp it runs a default servlet for that path.
According the the Servlet 2.4 spec, you can do this by mapping "/" to a
servlet. However, for me, it's just printing out a directory listing of the
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-forwar
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,
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
---
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, e-mail
IL PROTECTED]
> 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 un
Have a session variable that tracks what language they're using.
Justin
>>>
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
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
helloworld-servl
Here is a snippet from web.xml ...
Controller
com.xxx.Controller
Controller
/test
Controller
/test/
please notice the two servlet mappings, one to "/test" and the other
to "/test/"
the only difference is the trailing slash, but I wish to have both
ur
Howdy,
>Is there anybody who could give me an advice in servlet-mapping?
None of us have a clue ;) Just kidding -- we can probably give it a decent shot.
>I got a web application which consists of a ControllerServlet which should
>handles all incoming request´s
>except 2 stati
1 - 100 of 373 matches
Mail list logo