I'm currently working on a legacy Tomcat 3.3 project that was developed
(not by me) a couple of years ago, and I am having a heck of a time
understanding how servlets are getting mapped properly. A typical URL in
the application is of the form CONTEXT/servlet/servletName - nothing
fancy there.
Laba diena.
Dkojame, kad mums parate.
Js atsista inut isaugota ms duomen bazje.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Looks like the invoker servlet is being used, which is declared in the
global web.xml file. The servlet-name and servlet-class that you see
are used to map a name to a servlet, which are all accessed through
/servlet/*
Drew.
On Tue, 2005-02-22 at 10:43, Beckle, Steven R wrote:
I'm currently
Yup. Tomcat 3.3 has the Invoker enabled by default (although 3.3 doesn't
have a global web.xml file, so it's declared in server.xml :).
Drew Jorgenson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Looks like the invoker servlet is being used, which is declared in the
global
want
easily.
-Original Message-
From: Jack Eidsness[EMAIL PROTECTED]
To: Tomcat Users Listtomcat-user@jakarta.apache.org
Date: Mon Jan 03 13:09:01 PST 2005
Subject: web.xml servlet mappings, url pattern and CGI.PATH_INFO (tomcat 4.1.31)
I am new to the J2EE world, so hopefully I will not use
I am new to the J2EE world, so hopefully I will not use terms incorrectly.
Due to circumstances beyond my control, coldfusion has been retrofitted
into a J2EE web application and I have recently taken on the task of
trying to make previously existing cfm code work as part of a tomcat
]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, January 03, 2005 4:09 PM
Subject: web.xml servlet mappings, url pattern and CGI.PATH_INFO (tomcat
4.1.31)
I am new to the J2EE world, so hopefully I will not use terms incorrectly.
Due to circumstances beyond my control, coldfusion has
for precompiling jsps.
I am using this because I want my jsps to be precompiled and also
because I want the web.xml file to
be populated automatically with all the servlet mappings for the jsps.
It works fine for all the jsp files which are under the directory
${basedir}/web (one specified
Hello
I want to archive the following:
I want to start my application using some ContextListener.
Then my application shall register the required servlet-mappings.
In my web.xml I do NOT want to have any servlet-mappings at all.
The reason for this is, that my cms system serves different
Informatics
-Original Message-
From: SH Solutions [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 08, 2004 2:58 PM
To: 'Tomcat Users List'
Subject: Programmatically assign servlet mappings
Hello
I want to archive the following:
I want to start my application using some
shall register the required servlet-mappings.
In my web.xml I do NOT want to have any servlet-mappings at all.
The reason for this is, that my cms system serves different content types
with different servlets. One servlet per type. Additionally every servlet is
a module, managed by my cms system
ContextListener.
Then my application shall register the required servlet-mappings.
In my web.xml I do NOT want to have any servlet-mappings at all.
The reason for this is, that my cms system serves different content types
with different servlets. One servlet per type. Additionally every servlet
On Wed, Sep 08, 2004 at 03:05:38PM -0400, Tim Funk wrote:
: You'll need at least 1 servlet and servlet mapping. From there, that
: servlet can dynmically dispatch as needed. See the invoker servlet on how
: to do so.
-or, a twist on this: look into the Front Controller pattern.
You can make
[EMAIL PROTECTED] wrote:
I have an application which embeds tomcat 4.1.12. It dynamically creates
contexts, adding wrappers for servlets, etc. Due to the dynamic nature of
this application, it can add and remove servlet mappings after the context
has been started (added into a host
I have an application which embeds tomcat 4.1.12. It dynamically creates
contexts, adding wrappers for servlets, etc. Due to the dynamic nature of
this application, it can add and remove servlet mappings after the context
has been started (added into a host in the started engine). This works
I have an application which embeds tomcat 4.1.12. It dynamically creates
contexts, adding wrappers for servlets, etc. Due to the dynamic nature of
this application, it can add and remove servlet mappings after the context
has been started (added into a host in the started engine). This works
Yes there any way i can programatically find out the servlet mappings
defined in web.xml?
Best regards,
Carlos Pereira
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
: servlet mappings
Yes there any way i can programatically find out the servlet mappings
defined in web.xml?
Best regards,
Carlos Pereira
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
I am getting the familiar status 400 - invalid direct reference, and yet
I am absolutely not surfing to the login page myself.
This is the page I am on:
https://localhost:8443/mywebapp/registerdone.do
and this is the link I am using:
https://localhost:8443/mywebapp/private/editprofile.do
How do I delete my name from Tomcat use list? Because I am trying use TOMCAT but it
does not work well for me at this time.
Have a good day.
Matthew Do
Seattle City Light
[EMAIL PROTECTED]
(206) 733 - 9022
[EMAIL PROTECTED] 10/13/03 09:26AM
I am getting the familiar status 400 - invalid
How do I delete my name from Tomcat use list? Because I am trying use TOMCAT but it
does not work well for me at this time.
Have a good day.
Matthew Do
Seattle City Light
[EMAIL PROTECTED]
(206) 733 - 9022
[EMAIL PROTECTED] 10/13/03 09:29AM
How do I delete my name from Tomcat use list?
]
Subject: Servlet mappings?
I have a web app with multiple servlets. I would like one of those
servlets to handle all requests to http://mywebserver/. Basically I want
it to do the same thing as the welcome-file in the web.xml. How can I do
this?
Thank You,
Justin A. Stanczak
Web
It used to be that servlet mapping was straight-forward and now it seems to
be obfuscated. For example I want the url
myhostip:myport/webappname/Form
Here is my web.xml file from my webapp\aeform\WEB-INF
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems,
email:[EMAIL PROTECTED]
web: www.volume4.co.za
:: -Original Message-
:: From: Roehl, Dan [mailto:[EMAIL PROTECTED]
:: Sent: Wednesday, September 03, 2003 9:21 PM
:: To: '[EMAIL PROTECTED]'
:: Subject: Re: servlet mappings
::
:: It used to be that servlet mapping was straight-forward and now
Thanks!!
-Original Message-
From: Schalk [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 4:45 PM
To: 'Tomcat Users List'
Subject: RE: servlet mappings
If you want to read a great article on web.xml check out:
http://developer.java.sun.com/developer/Books/javaserverpages
Howdy,
It used to be that servlet mapping was straight-forward and now it seems to
be obfuscated. For example I want the url
They haven't really changed in a long long time ;)
myhostip:myport/webappname/Form
This used to work and now it doesn't; Why !
!-- servlet-mapping
I have a web app with multiple servlets. I would like one of those
servlets to handle all requests to http://mywebserver/. Basically I want
it to do the same thing as the welcome-file in the web.xml. How can I do
this?
Thank You,
Justin A. Stanczak
Web Manager
Shake Learning Resource Center
: Wednesday, September 03, 2003 8:55 PM
To: [EMAIL PROTECTED]
Subject: Servlet mappings?
I have a web app with multiple servlets. I would like one of those
servlets to handle all requests to http://mywebserver/. Basically I want
it to do the same thing as the welcome-file in the web.xml. How can I do
:11 PM
Please respond to Tomcat Users List
To: Tomcat Users List [EMAIL PROTECTED]
cc:
Subject:RE: Servlet mappings?
I don't think this can be done with mappings. You can put an index.jsp
file
with only a forward/redirect call in it to transfer control
Users List [EMAIL PROTECTED]
cc:
Subject:RE: Servlet mappings?
I don't think this can be done with mappings. You can put an index.jsp
file
with only a forward/redirect call in it to transfer control to your
servlet.
I've done this before, seems to work quite well
Hi,
I am having some problem fitting my requirements in web.xml. I want to
do something like this.
Whenever a user says http://server.com/contracts . It is supposed to show
him the login page. But with some extra parameters to be added.
So basically the url will become
I'm trying to do some fancy stuff with servlet mappings. This
mechanism leaves a lot to be desired; specificly, it would be
amazingly useful to be able to do a getRequestDispatcher in some way
that bypasses the servlet mappings in the web.xml file. Alternatively
it would be extremely useful
Hello -
I'm trying to create servlet mappings for a servlet that I'd like to exist
at the TOP LEVEL of my webapp in Tomcat. You'd think that this task wouldn't
be a pain in the rear but I'm finding it to be so. If you know how to
configure web.xml and a servlet to handle this, please help. I'm
Re problem B.
I found that after some re-directions Tomat ContextManager seemed to
be messing up the context path (see Please explain this Context).
You can tell if this is happening by having the ContextManager log its
mappings:
ContextManager debug=1 workDir=work showDebugInfo=true
in
Pula
-Original Message-
From: Frank Lawlor [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 10:47 AM
To: Tomcat (E-mail)
Subject: Problem: Servlet Mappings RequestDispatcher
Re problem B.
I found that after some re-directions Tomat ContextManager seemed to
be messing up
~
-Original Message-
From: pete [mailto:[EMAIL PROTECTED]]
Sent: 3. juli 2001 01:00
To: [EMAIL PROTECTED]
Subject: Re: Programmatic security with servlet mappings in tomcat
Tim,
there are several ways to implement this kind of security check. If you
want
Pete,
pete wrote:
Tim,
there are several ways to implement this kind of security check. If you
want a fullblown MVC model, you might consider looking at Struts or one
of the other Apache-driven frameworks (Struts is the only one i have
personal experience with).
with the example you
PROTECTED]]
Sent: Tuesday, July 03, 2001 12:50 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Programmatic security with servlet mappings in tomcat
I did not want to use the container's authentication mechanism for several
reasons:
1. I can't store passwords and usernames in a database.
2. I get more
Sure, one is that i want custom login screens, another is that we store
all our authentication details centrally and query for them via an XML
data service.
Various user and domain-specific data, including user preferences,roles
etc. is stored in this repository, not just 'yes, this user has
pete wrote:
Sure, one is that i want custom login screens, another is that
we store all our authentication details centrally and query for
them via an XML data service.
Various user and domain-specific data, including user preferences,
roles etc. is stored in this repository, not just
You can setup a custom login screen and set it up in the tomcat. I am doing
it. and you can access the username and password from session variables
j_username and j_password. also you can access requested link from session.
login-config
auth-methodFORM/auth-method
Hi,
(Tomcat 3.2.1, windows 2000, JdK1.3.1)
I want to use a Request Controller architecture for a webapp (i.e. one JSP
that receives all requests and then dispatches the requests to other JSPs
for servicing of the request). Of course I want to ensure that these
servicing JSPs are not accessible
Hi,
(Tomcat 3.2.1, windows 2000, JdK1.3.1)
I want to use a Request Controller architecture for a webapp (i.e. one JSP
that receives all requests and then dispatches the requests to other JSPs
for servicing of the request). Of course I want to ensure that these
servicing JSPs are not accessible
Tim,
there are several ways to implement this kind of security check. If you
want a fullblown MVC model, you might consider looking at Struts or one
of the other Apache-driven frameworks (Struts is the only one i have
personal experience with).
with the example you give, i don't understand
I have some legacy code that uses its own non-jsp tag
system.
The following is my web.xml file put in
webapps/myapp/WEB-INF dir
The attempt is to map files with the extension *.msp
to the RouterServlet. Unfortunately this is not
happening, if I goto the directory and do an msp file
it
How are you using tomcat? Standalone or with Apache
+ mod_jk?
There is a little difference.
- Original Message -
From:
Andrew
Oliver
To: [EMAIL PROTECTED]
Sent: Wednesday, December 13, 2000 3:42
PM
Subject: Servlet Mappings and what am I
doing wrong.
I have
Message -
From: Andrew Oliver
To: [EMAIL PROTECTED]
Sent: Wednesday, December 13, 2000 3:42 PM
Subject: Servlet Mappings and what am I doing
wrong.
I have some legacy code that uses its own non-jsp
tag
system.
The following is my web.xml file put in
webapps
="/myorg.com" docBase="..." ...
/Context
Hope this helps,
Etienne
-Original Message-
From: Andrew Oliver [mailto:[EMAIL PROTECTED]]
Sent: mercredi 13 decembre 2000 15:42
To: [EMAIL PROTECTED]
Subject: Servlet Mappings and what am I doing wrong.
I have some legacy code that
Andrew,
What you are doing won't work correctly on Tomcat. Apparently the * isn't
a valid wildcard according to the servlet specification. instead, map
your servlet to a specific filename like dosomething.do and then add
information to the end of the URL to tell the servlet what page to
forward
Ok.
Andy, I send you my web.xml that could be help you, where all dwf file are
handled by NetSite servlet.
Bye.
- Original Message -
From: "Etienne Baert (SPS Office)" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 13, 2000 4:14 PM
Subject: RE: Servle
by NetSite servlet.
Bye.
- Original Message -
From: "Etienne Baert (SPS Office)" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 13, 2000 4:14 PM
Subject: RE: Servlet Mappings and what am I doing
wrong.
Hi Andy,
I think your problem comes b
Matt Goss wrote:
servlet-mapping
servlet-namerouter/servlet-name
url-pattern/*/urlpattern
/servlet-mapping
the idea is that I should be able to request the file test.jsp and have
the router servlet pick up the request (to test for a login)...but the
servlet never gets the
url-pattern
*.xxx
/url-pattern
/servlet-mapping
-Original Message-
From: Matt Goss [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 03, 2000 12:57 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: servlet mappings???
Hi all,
I'm attempting to map
PROTECTED]; [EMAIL PROTECTED]
Subject: servlet mappings???
Hi all,
I'm attempting to map a controller servlet so that any requests go
through it... (the MVC method).
I have a context/application called test that is accessable via the URL
"http://myhost.com/test/". In the web.xml fi
54 matches
Mail list logo