Will,
How can you resist ?
-Original Message-
From: Steve Burrus [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 2:28 PM
To: Tomcat Users List
Subject: Re: servlet URL
will, this has NOTHING to do with what you responded to, i.e., whatever
problem some Tomcat user had, but
will, this has NOTHING to do with what you responded to, i.e., whatever problem some
Tomcat user had, but I was honestly wondering why you haven't seen fit to respond back
to my email to u some time ago, like some 10 days to 2 weeks ago?!!
Don't you respect me enough to respond back to my rath
; - Original Message -
> From: "Sean Dockery" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, February 07, 2003 11:05 AM
> Subject: Re: servlet URL
>
>
> > HttpServlet.getServletName() would seem like the logical choice.
> &
>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 07, 2003 11:05 AM
Subject: Re: servlet URL
> HttpServlet.getServletName() would seem like the logical choice.
> --
> Sean Dockery
> [EMAIL PROTECTED]
> Certified Java Web Component Developer
> Certified Delphi Programmer
> S
HttpServlet.getServletName() would seem like the logical choice.
--
Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com
"Felipe Schnack" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL
Felipe Schnack wrote:
Sorry, context-parameter? But then I wouldn't have (again) my
servlet's URL written in two different places? This kind of thing
worries me, because somebody can change in one place but not on another.
You're right, this kind of data redundancy can be dangerous, and ther
rom: "Felipe Schnack" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, February 07, 2003 11:21 AM
Subject: RE: servlet URL
Yes, I know it's a singleton... but you mean I should have another
config file specifying my servlet's
On Fri, 7 Feb 2003, Felipe Schnack wrote:
> Date: 07 Feb 2003 17:11:03 -0200
> From: Felipe Schnack <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: RE: servlet URL
>
> I
Sorry, context-parameter? But then I wouldn't have (again) my
servlet's URL written in two different places? This kind of thing
worries me, because somebody can change in one place but not on another.
I think I can understand the HttpServletRequest way of doing it... but
then I could only deter
ilto:[EMAIL PROTECTED]]
> Sent: Friday, February 07, 2003 11:11 AM
> To: Tomcat Users List
> Subject: RE: servlet URL
>
>
> I'm writing a servlet that requires to be a Singleton (much like
> Struts' servlet), and I have some other objects that need to know the
> URL
Felipe Schnack wrote:
I'm writing a servlet that requires to be a Singleton (much like
Struts' servlet), and I have some other objects that need to know the
URL of this Servlet to make some redirects to it... so I need this
servlet to have a method that return its URL, as in web.xml
Presumab
tance."
so by default the servlet is a singleton.
and for the other objects, give them the url through a config file
Filip
-Original Message-
From: Felipe Schnack [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 11:11 AM
To: Tomcat Users List
Subject: RE: servlet URL
I
I'm writing a servlet that requires to be a Singleton (much like
Struts' servlet), and I have some other objects that need to know the
URL of this Servlet to make some redirects to it... so I need this
servlet to have a method that return its URL, as in web.xml
I can get this from HttpServletRe
take a look at the javax.servlet.http.HttpServletRequest API,
it has a bunch of methods that you can use to retrieve all kinds of info about the
request.
but if you mean how do you retrieve the info that is in web.xml for your particular
servlet,
give us the scenario where you would like this in
On Fri, 1 Feb 2002 [EMAIL PROTECTED] wrote:
> Date: Fri, 1 Feb 2002 17:13:07 +0100
> From: [EMAIL PROTECTED]
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: servlet url at init time
>
>
> Hello all,
>
> I would like to know the URL of a servlet _in its init
Yin Tse wrote:
> http://locahost/foo/servlet/myServlet will work
> but http://locahost/foo/servlet/myGod won't work.
Try http://localhost/foo/myGod ... I don't see no "/servlet" in your
servlet-mapping
--
Kurt Bernhard Pruenner --- Haendelstrasse 17 --- 4020 Linz --- Austria
Music: http://
16 matches
Mail list logo