Re: Servlet mapping - url pattern with *

2005-08-01 Thread Bill Barker
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

Re: Servlet mapping - url pattern with *

2005-08-01 Thread flower
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/):

RE: servlet mapping and url

2005-07-06 Thread Geiglein, Gary
to a 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

Re: servlet mapping and url

2005-07-06 Thread David Smith
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

Re: servlet mapping and url

2005-07-02 Thread Hardik Tank
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]

Re: servlet mapping and url

2005-07-02 Thread Frank W. Zammetti
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

Re: Servlet mapping problem.

2004-11-22 Thread Andoni
, 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

RE: Servlet mapping problem.

2004-11-22 Thread Shapira, Yoav
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 and not /whatever/loginResponse.do. Accordingly, how do you

Re: Servlet mapping problem.

2004-11-22 Thread Stefan
mapping? Stefan www.killersites.com - Original Message - From: Andoni [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, November 22, 2004 7:39 AM Subject: Re: Servlet mapping problem. If you are not using Struts why did you call the login JSP, loginResponse.do

RE: Servlet mapping problem.

2004-11-22 Thread Shapira, Yoav
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

Re: Servlet mapping problem.

2004-11-22 Thread Stefan
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

Re: Servlet mapping problem.

2004-11-22 Thread Stefan
www.killersites.com - Original Message - From: 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: form action=/context_name

RE: Servlet mapping problem.

2004-11-22 Thread Shapira, Yoav
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

Re: Servlet mapping problem.

2004-11-22 Thread Ben Souther
, November 21, 2004 10:31 PM Subject: Re: Servlet mapping problem. Hi, I am actually using a form to post to the target servlet: form action=/context_name/loginResponse.do method=post name: input type=text name=adminPassword input type=submit /form The form itself

Re: Servlet mapping problem.

2004-11-22 Thread Stefan
, 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

Re: Servlet mapping problem.

2004-11-22 Thread Stefan
, 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

Re: Servlet mapping problem.

2004-11-22 Thread Ben Souther
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

Re: Servlet mapping problem.

2004-11-22 Thread Stefan
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

RE: Servlet mapping problem.

2004-11-22 Thread Shapira, Yoav
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

Re: Servlet mapping problem.

2004-11-22 Thread Ben Souther
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

Re: Servlet mapping problem.

2004-11-22 Thread Stefan
... 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

Re: Servlet mapping problem.

2004-11-22 Thread Stefan
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

RE: Servlet mapping problem.

2004-11-22 Thread Shapira, 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. Thanks Ben - I'll give it a go .. the client may insist still on Tomcat, anyway it bugs me

Re: Servlet mapping problem.

2004-11-22 Thread Stefan
? 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

Re: Servlet mapping problem.

2004-11-22 Thread Stefan
] 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

[OT] Re: Servlet mapping problem.

2004-11-22 Thread Ben Souther
, 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

RE: Servlet mapping problem.

2004-11-22 Thread Shapira, Yoav
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

[OT] Re: Servlet mapping problem.

2004-11-22 Thread Stefan
, 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

Re: [OT] Re: Servlet mapping problem.

2004-11-22 Thread Ben Souther
: 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

Re: Servlet mapping problem.

2004-11-21 Thread sven morales
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 about the duplicates. My question: Using Tomcat 5.0.28 standalone on windows XP with JVM 1.4, I get this error even

Re: Servlet mapping problem.

2004-11-21 Thread Stefan
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

Re: Servlet mapping problem.

2004-11-21 Thread sven morales
. 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

Re: Servlet mapping problem.

2004-11-21 Thread 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

Re: Servlet mapping problem

2004-09-29 Thread Michael McGrady
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

Re: Servlet mapping problem

2004-09-29 Thread Anto Paul
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

RE: Servlet mapping problem

2004-09-29 Thread Shapira, Yoav
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

RE: Servlet mapping problem

2004-09-29 Thread Shapira, Yoav
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

Re: Servlet mapping problem

2004-09-29 Thread Anto Paul
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

RE: Servlet mapping problem

2004-09-29 Thread Shapira, Yoav
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

Re: Servlet mapping problem

2004-09-29 Thread Michael McGrady
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

RE: servlet-mapping required??? Tomcat 5 upgrade problem...

2004-08-03 Thread Shapira, Yoav
Hi, See http://jakarta.apache.org/tomcat/faq/misc.html#invoker. You should have always had servlet-mappings. Yoav Shapira Millennium Research Informatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 03, 2004 1:52 PM To: Tomcat Users List

RE: servlet-mapping required??? Tomcat 5 upgrade problem...

2004-08-03 Thread Dale, Matt
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

Re: Servlet-Mapping Question, recursive capable?

2004-02-25 Thread Tim Funk
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

Re: Servlet-Mapping Question, recursive capable?

2004-02-25 Thread Daniel Gibby
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

RE: servlet mapping problem

2004-02-25 Thread Shapira, Yoav
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

Re: servlet mapping problem

2004-02-25 Thread BAO RuiXian
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

RE: servlet mapping problem

2004-02-25 Thread Shapira, Yoav
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

RE: servlet mapping problem

2004-02-25 Thread Jason Keltz
Thanks, Yoav. Using localhost:8080/test works if the docBase in the context is defined to include test. However, as you suggested, I'm trying to create a directory with multiple webapps, and I want to have multiple directories like this. For example: /cs/home/jas/webapps1/app1

RE: servlet mapping problem

2004-02-25 Thread Shapira, Yoav
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

Re: Servlet-Mapping Question, recursive capable?

2004-02-25 Thread David Erickson
/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

Re: Servlet-Mapping Question, recursive capable?

2004-02-24 Thread Tim Funk
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 AND

Re: Servlet-Mapping Question, recursive capable?

2004-02-24 Thread Daniel Gibby
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.

RE: servlet-mapping like mod_rewrite?

2003-12-10 Thread Ralph Einfeldt
What about using one centralized servlet that parses req.getPathInfo(), sets the language as request attribute and forwards to the real servlet(s) ? -Original Message- From: Marten Lehmann [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 11:26 PM To: [EMAIL PROTECTED]

Re: servlet-mapping like mod_rewrite?

2003-12-10 Thread Marten Lehmann
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,

Re: servlet-mapping like mod_rewrite?

2003-12-10 Thread Marten Lehmann
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

RE: servlet-mapping like mod_rewrite?

2003-12-10 Thread Ralph Einfeldt
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

Re: servlet-mapping like mod_rewrite?

2003-12-10 Thread David Evans
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?

RE: servlet-mapping like mod_rewrite?

2003-12-09 Thread Hart, Justin
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.

Re: Servlet mapping for root directory in a webapp?

2003-08-14 Thread Fredrik Jonson
Following up to myself here... On Thu, 7 Aug 2003, Fredrik Jonson wrote: I'm trying to get tomcat (from sun's jwsdp1.2) to do a default mapping. I (and a lot of other people, apparently =) have tried: servlet-mapping servlet-nameMainView/servlet-name

RE: servlet-Mapping using Tomcat 4

2003-08-14 Thread Shapira, Yoav
Howdy, 2. Name of JSP = whoKnows.war I'll assume you meant name of war file. 1. The main problem ist, that 'normal call' (/whoKnows/) works fine. That means that I get my index.jsp, and all works the way I wanted to. BUT, if I use /whoKnows/foo/bar my java-class of my jsp-Servlet (defined in

Re: Servlet mapping for root directory in a webapp?

2003-08-10 Thread Bill Barker
Alternatively, having a zero-length index.html file in your directory, together with a servlet-mapping should also work. Shapira, Yoav [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Howdy, Today I changed it to: servlet-mapping

RE: Servlet mapping for root directory in a webapp?

2003-08-07 Thread Shapira, Yoav
Howdy, Today I changed it to: servlet-mapping servlet-nameMainView/servlet-name url-pattern/index.html/url-pattern /servlet-mapping And, as I understand it, tomcat(?) returns that servlet mapping for requests for the root catalog. Well, it is

RE: Servlet mapping problem in Tomcat 4.1.24

2003-07-29 Thread Bodycombe, Andrew
There are 2 ways you can use wildcards in URL mappings: 1. /content/* - maps all URLs in the content directory to your servlet 2. *.vp - maps all URLs with a .vp extension to your servlet You cannot mix these (/content/*.vp, for example) The servlet specification discusses this. Look at section

RE: Servlet mapping error

2003-06-27 Thread Bodycombe, Andrew
Try the following URL: http://host:port/bugtracker/servlets/LoginServlet Hope this helps, Andy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 27 June 2003 18:17 To: [EMAIL PROTECTED] Subject: Servlet mapping error I'm trying to map a Servlet URL and

RE: Servlet mapping error

2003-06-27 Thread Shapira, Yoav
Howdy, Under tomcat home/webapps/bugtracker/WEB-INF/web.xml, I have the following snippet of lines: servlet servlet-nameLoginServlet/servlet-name servlet-classcom.bugtracker.servlets.LoginServlet/servlet-class /servlet servlet-mapping

RE: Servlet mapping error

2003-06-27 Thread KKolle
: Subject: RE: Servlet mapping error 06/27/2003 12:35 PM

RE: Servlet Mapping with parameters

2003-03-10 Thread Shapira, Yoav
Speechley [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 1:29 AM To: Tomcat User Subject: Re: Servlet Mapping with parameters I was wondering whether it is possible to map parameters to a url besides using init-param in web.xml because I want it to be during normal operation not just when

Re: Servlet Mapping with parameters

2003-03-09 Thread Greg Speechley
I was wondering whether it is possible to map parameters to a url besides using init-param in web.xml because I want it to be during normal operation not just when the servlet is initialised eg http://server.mycompany.com/something instead of http://server.mycompany.com/ServletName?task=2 . I have

RE: Servlet Mapping Bug?

2003-01-15 Thread Andy Eastham
This is a bug, as I've now checked the Servlet Specification v2.3: The key phrase is: The path used for mapping to a servlet is the request URL from the request object minus the context path. ie for my /control/plots/x.jpg request, the context path is /control, so only /plots/x.jpg should be used

RE: Servlet Mapping Bug?

2003-01-15 Thread Andy Eastham
configuring path=/control here... (I don't think it's a bug?) -Ursprüngliche Nachricht- Von: Andy Eastham [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 15. Januar 2003 16:17 An: Tomcat Users List Betreff: RE: Servlet Mapping Bug? This is a bug, as I've now checked

RE: Servlet Mapping Bug?

2003-01-15 Thread Jacob Kjome
Are you sure this is happening when you go directly to Tomcat rather than through Apache? All my mappings in web.xml make no mention of the context name and work just fine. Try you app at: http://localhost:8080/control/ Then try it at: http://localhost/control/ If it works in the former

Re: Servlet Mapping Strategy w/ user-specific URLs

2003-01-09 Thread Jeffrey Winter
At 01:48 PM 1/8/2003, you wrote: So you're talking about using the sorts of Filters available as of the Servlet 2.3 spec? That actually sounds promising, I'll take a look at it. Yep. Okay, one question about this: in the Filter, I'd parse the url and determine which servlet should be the

Re: Servlet Mapping Strategy w/ user-specific URLs

2003-01-09 Thread Jeffrey Winter
Depends upon your point of view. Mine is different from those I've seen in reply to your inquiry so far. If I can do something declaratively in Apache, I do it. If I am going to write code, I put do it in Tomcat. Apache is a world-class web server. Tomcat is an application (Servlet/JSP)

Re: Servlet Mapping Strategy w/ user-specific URLs

2003-01-09 Thread Craig R. McClanahan
On Thu, 9 Jan 2003, Jeffrey Winter wrote: Date: Thu, 9 Jan 2003 09:35:09 -0500 From: Jeffrey Winter [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Servlet Mapping Strategy w/ user-specific URLs At 01:48 PM 1/8/2003

Re: Servlet Mapping Strategy w/ user-specific URLs

2003-01-08 Thread Justin Ruthenbeck
There's no way to accomplish what you're shooting for using only the mappings in the web.xml. However, you could pretty easily do it through a filter running on requests to /user/*. If you do this, you could forward any requests that match URI /user to your UserServlet and anything that

Re: Servlet Mapping Strategy w/ user-specific URLs

2003-01-08 Thread Jeffrey Winter
in these areas? Or at least some good resources that go into these issues? Thanks. - Original Message - From: Justin Ruthenbeck [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 08, 2003 3:40 PM Subject: Re: Servlet Mapping Strategy w/ user-specific URLs

Re: Servlet Mapping Strategy w/ user-specific URLs

2003-01-08 Thread Will Hartung
From: Justin Ruthenbeck [EMAIL PROTECTED] Sent: Wednesday, January 08, 2003 12:40 PM Subject: Re: Servlet Mapping Strategy w/ user-specific URLs There's no way to accomplish what you're shooting for using only the mappings in the web.xml. However, you could pretty easily do it through

Re: Servlet Mapping Strategy w/ user-specific URLs

2003-01-08 Thread Justin Ruthenbeck
PROTECTED] Sent: Wednesday, January 08, 2003 3:40 PM Subject: Re: Servlet Mapping Strategy w/ user-specific URLs There's no way to accomplish what you're shooting for using only the mappings in the web.xml. However, you could pretty easily do it through a filter running on requests to /user

Re: Servlet Mapping Strategy w/ user-specific URLs

2003-01-08 Thread Will Hartung
From: Jeffrey Winter [EMAIL PROTECTED] Sent: Wednesday, January 08, 2003 1:48 PM Subject: Re: Servlet Mapping Strategy w/ user-specific URLs There certainly is some overlap between those services as outlined in the Servlet spec, and the functionality provided by Apache itself

RE: Servlet Mapping Strategy w/ user-specific URLs

2003-01-08 Thread Noel J. Bergman
Is it possible to setup a servlet mapping such that a UserServlet handles requests to /user/xxx, but a ResourceServlet handles requests to /user/xxx/resource/yyy? Easy enough to do with mod_rewrite, as you have planned since you have apache as a front end, or you could write a Servlet Filter.

Re: Servlet Mapping to /

2002-11-15 Thread Craig R. McClanahan
On Fri, 15 Nov 2002, Trevor MacPhail wrote: Date: Fri, 15 Nov 2002 19:17:18 -0800 From: Trevor MacPhail [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Servlet Mapping to / How can I set up a servlet-mapping to map a specific

Re: Servlet Mapping to /

2002-11-15 Thread Trevor MacPhail
Craig R. McClanahan wrote: On Fri, 15 Nov 2002, Trevor MacPhail wrote: Date: Fri, 15 Nov 2002 19:17:18 -0800 From: Trevor MacPhail [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Servlet Mapping to / How can I set up a

Re: Servlet Mapping to /

2002-11-15 Thread Jon Eaves
Trevor MacPhail wrote: Craig R. McClanahan wrote: [ big snip ] Ok, then the question I have now is, how do I set up a welcome-file to be a servlet instead of a static file? You can't. I've tried welcome-fileHomePage/welcome-file but that didnt work. I've also tried

Re: Servlet Mapping to /

2002-11-15 Thread Bill Barker
Trevor MacPhail [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Craig R. McClanahan wrote: On Fri, 15 Nov 2002, Trevor MacPhail wrote: Date: Fri, 15 Nov 2002 19:17:18 -0800 From: Trevor MacPhail [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL

Re: servlet mapping

2002-11-10 Thread Kwok Peng Tuck
Try without the forward slash . So it looks like this: FORM METHOD=GET ACTION=auditor Shruti Ahuja, Noida wrote: Hi, I have deployed a web appplication whose context name is graduate . It has 2 servlets(named auditor and blobserve) in it placed in the Web-inf/classes directory . I have

RE: servlet mapping

2002-11-10 Thread Shruti Ahuja, Noida
, Shruti -Original Message- From: Kwok Peng Tuck [mailto:pengtuck;makmal.com] Sent: Monday, November 11, 2002 12:06 PM To: Tomcat Users List Subject: Re: servlet mapping Try without the forward slash . So it looks like this: FORM METHOD=GET ACTION=auditor Shruti Ahuja, Noida wrote: Hi

Re: servlet mapping help

2002-10-15 Thread Jacob Kjome
Hello Aryeh, The proper syntax is: JkMount /examples/servlets/* ajp13 You define the protocol, not a worker after the mount pattern. Jake Tuesday, October 15, 2002, 11:03:01 AM, you wrote: AK I'm trying to integrate mod_jk and tomcat. AK My httpd.conf file has the following mapping AK

Re: servlet mapping help

2002-10-15 Thread Aryeh Katz
Hello Aryeh, The proper syntax is: JkMount /examples/servlets/* ajp13 You define the protocol, not a worker after the mount pattern. This did not help matters. Even after changing httpd.conf and workers.properties, I get the same behavior. Just one question. Can you point me to

RE: servlet mapping help

2002-10-15 Thread Turner, John
people have working configurations just like that. John -Original Message- From: Aryeh Katz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 15, 2002 1:17 PM To: [EMAIL PROTECTED] Subject: Re: servlet mapping help Hello Aryeh, The proper syntax is: JkMount /examples

RE: servlet mapping help

2002-10-15 Thread Aryeh Katz
You didn't have to change workers.properties at all. snip So, you should have a line like this in httpd.conf: JkMount /examples/servlets/* ajp13 And a few lines like this in workers.properties: worker.list=some-name worker.some-name.port=8009 worker.some-name.host=your.host.com

RE: servlet mapping help

2002-10-15 Thread Milt Epstein
On Tue, 15 Oct 2002, Aryeh Katz wrote: You didn't have to change workers.properties at all. snip So, you should have a line like this in httpd.conf: JkMount /examples/servlets/* ajp13 And a few lines like this in workers.properties: worker.list=some-name

RE: servlet mapping help (could be: mod_jk config help)

2002-10-15 Thread Turner, John
debug=0/ HTH John -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 15, 2002 2:29 PM To: Tomcat Users List Subject: RE: servlet mapping help What do you have where ajp13 is, and where some-name is? Because they need to match. Because

RE: servlet mapping help

2002-10-15 Thread Aryeh Katz
I would post the relevant section of httpd.conf (not the whole thing, please) with the JkMount statements, and the contents of your workers.properties file. Also, which version of Apache and Tomcat you httpd.conf (main server, not virt) JkWorkersFile

RE: servlet mapping help

2002-10-15 Thread Milt Epstein
On Tue, 15 Oct 2002, Aryeh Katz wrote: I would post the relevant section of httpd.conf (not the whole thing, please) with the JkMount statements, and the contents of your workers.properties file. Also, which version of Apache and Tomcat you httpd.conf (main server, not virt)

RE: servlet mapping help

2002-10-15 Thread Aryeh Katz
snip workers.list=ajp13 workers.ajp13.port=8009 workers.ajp13.host=correct.server.name workers.ajp13.type=ajp13 apache = 1.3.27 jakarta = 4.0.6 This is different from what you had previously. So what is/isn't happening now, and what (error) messages are you seeing in the logs?

RE: servlet mapping help

2002-10-15 Thread Milt Epstein
On Tue, 15 Oct 2002, Milt Epstein wrote: On Tue, 15 Oct 2002, Aryeh Katz wrote: I would post the relevant section of httpd.conf (not the whole thing, please) with the JkMount statements, and the contents of your workers.properties file. Also, which version of Apache and Tomcat you

RE: servlet mapping help

2002-10-15 Thread Turner, John
Yikes, good eye, Milt! John -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 15, 2002 3:26 PM To: Tomcat Users List Subject: RE: servlet mapping help On Tue, 15 Oct 2002, Milt Epstein wrote: On Tue, 15 Oct 2002, Aryeh Katz wrote

RE: servlet mapping help

2002-10-15 Thread Aryeh Katz
Should've noticed it the first time around, but all of these above four lines should have worker instead of workers. Cut and paste will do that to you every time (I set the home attr). Thanks for all the help. Now I'm going to go back and see how much of my orig config I had to change. I

Re: servlet-mapping with *.suffix problem

2002-05-11 Thread Craig R. McClanahan
On Sat, 11 May 2002, Luuk de Vries wrote: Date: Sat, 11 May 2002 17:58:41 +0200 From: Luuk de Vries [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: servlet-mapping with *.suffix problem Hi, I have a working application using RedHat

Re: servlet-mapping with *.suffix problem

2002-05-11 Thread Luuk de Vries
- Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, May 11, 2002 6:15 PM Subject: Re: servlet-mapping with *.suffix problem On Sat, 11 May 2002, Luuk de Vries wrote: Date: Sat, 11 May 2002 17:58:41 +0200 From

  1   2   >