How to use JkAutoAlias with a URL Path

2005-10-06 Thread Bhavin Modi
Is it possible to define a URL path under which the JKAutoAlias is configured ? What I am trying to say is, can we have something like JkAutoAlias /java-apps /usr/local/tomcat/webapps that would effectively make all my tomcat webapps accessible under http://localhost/java-apps/ Is there any

AW: AW: Removing session id from url links

2005-09-23 Thread Bernhard Slominski
Well, what you basically want to do is disable URL Rewriting. What I saw so far it's not explicitly possible via the spec, but what you can do is just not encoding the URL. So I don't know struts, but can you not just use plain link? An alternative would be to dig in the code of html:link

Removing session id from url links

2005-09-22 Thread Assaf
Hi, I have a problem with tomcat displaying urls on my site that include the jsessionid attached at the end. This is particularly a problem with search engine who crawl the site and index the page including the session id. Is there a way to disable it? I am also using struts html:link so that

AW: Removing session id from url links

2005-09-22 Thread Bernhard Slominski
The session ids in the URL (URL Rewriting) are only used when cookies are switched off as a fallback, so when cookies are switched on on your machine you shouldn't see the session Id in the URL. When you don't need a seesion on your page you can use this page directive to switch off the session

Re: AW: Removing session id from url links

2005-09-22 Thread Assaf
Slominski [EMAIL PROTECTED] wrote: The session ids in the URL (URL Rewriting) are only used when cookies are switched off as a fallback, so when cookies are switched on on your machine you shouldn't see the session Id in the URL. When you don't need a seesion on your page you can use this page

Re: need final / in url

2005-09-21 Thread Joost de Heer
Mladen Turk said: David Thielen wrote: The url www.windward.net/forums fails while www.windward.net/forums/ succeeds. My uriworkermap has: /forums/*=ajp13w try: /forums|/*=ajp13w This will actually create two maps: /forums=ajp13w /forums/*=ajp13w Regards, Mladen. More likely

RE: need final / in url

2005-09-21 Thread David Thielen
That was it - thanks - dave -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 20, 2005 11:42 PM To: Tomcat Users List Subject: Re: need final / in url David Thielen wrote: The url www.windward.net/forums fails while www.windward.net/forums

need final / in url

2005-09-20 Thread David Thielen
Hi; The url www.windward.net/forums fails while www.windward.net/forums/ succeeds. My uriworkermap has: /forums/*=ajp13w I understand that isapi_redirect sees the first as a filename - but shouldn't it also look for it as a servlet? Thanks - dave

Re: need final / in url

2005-09-20 Thread Mladen Turk
David Thielen wrote: The url www.windward.net/forums fails while www.windward.net/forums/ succeeds. My uriworkermap has: /forums/*=ajp13w try: /forums|/*=ajp13w This will actually create two maps: /forums=ajp13w /forums/*=ajp13w Regards, Mladen

How to get process URL in different context?

2005-09-19 Thread Kyle
Hi, I need to get hold of and process an http-encoded URL (effectively an operational servlet) within a different context on the same machine and read back the response it provides. e.g. from the root Context within a doPost, I need to execute /abc/api/action.do?param1=123param2=abc

Re: tomcat url connections

2005-09-17 Thread Mark Thomas
Navalpotro Herrero, Luis wrote: Hello, I have face recently found a tomcat issue that is driving me nuts. I have a Java application that opens a URL connection against tomcat. The parameteres are URLEncoded to be UTF-8 compatible. One of the values of the params is xml (which is the one

tomcat url connections

2005-09-16 Thread Navalpotro Herrero, Luis
Hello, I have face recently found a tomcat issue that is driving me nuts. I have a Java application that opens a URL connection against tomcat. The parameteres are URLEncoded to be UTF-8 compatible. One of the values of the params is xml (which is the one that makes the thing fail). If I use

driverClass and URL are Null

2005-09-16 Thread Mattier, Ricardo
Hello, I'm currently running Tomcat 5.5 with a Postgresql 8.0 database. I created a test .jsp to test the Datasource, I get the following error: Cannot create JDBC driver of class '' for connect URL 'null' It seems I've inserted the correct parameters in the server.xml, and WEB-INF

URL embedded filename suggestion not working inTomcat

2005-09-13 Thread Ron Cozad
This url is not working in Tomcat, but it works with Apache http server. http://my.company.com/cgi-bin/program1.cgi/filename.txt?parameter1=123 Next url does work with tomcat but of course the browser proposes program1.cgi as the name instead of filename.txt, as desired in the first url

Re: URL embedded filename suggestion not working inTomcat

2005-09-13 Thread Tim Funk
You could use the Content-Disposition header to send the filename back to the user. -Tim Ron Cozad wrote: This url is not working in Tomcat, but it works with Apache http server. http://my.company.com/cgi-bin/program1.cgi/filename.txt?parameter1=123 Next url does work with tomcat

How to get an URL embedded filename suggestion to work in Tomcat as it does in Apache

2005-09-12 Thread Ron Cozad
This url is not working, but it works with Apache http server. http://my.company.com/cgi-bin/program1.cgi/filename.txt?parameter1=123 Next url does work with tomcat but of course the browser proposes program1.cgi as the name instead of filename.txt, as desired in the first url. http

Re: web.xml, url-pattern

2005-09-12 Thread Mark Thomas
Trond Hersløv wrote: But, if I try using wildcards, eg. url-pattern/*foxer/url-pattern it doesent work anymore. Correct. Wildcards are not supported for mapping paths. Read the servlet spec for more details. If I try to map the servlet so that it seems like a jsp-page url-pattern

RE: web.xml, url-pattern

2005-09-12 Thread Trond Hersløv
with configuring the deployment descriptor. Could you give me a link to the servlet spec? Thanks again, Trond -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: 12. september 2005 20:17 To: Tomcat Users List Subject: Re: web.xml, url-pattern Trond Hersløv wrote: But, if I

Re: web.xml, url-pattern

2005-09-12 Thread Mark Thomas
Trond Hersløv wrote: Can you please be so kind and explain what the servlet spec. has to do with configuring the deployment descriptor. The servlet specification defines the format of the deployment descriptor and this therefore the definitive reference for what is, and is not, allowed.

Re: web.xml, url-pattern

2005-09-12 Thread Hassan Schroeder
Trond Hersløv wrote: Can you please be so kind and explain what the servlet spec. has to do with configuring the deployment descriptor. Chapter SRV.13: Deployment Descriptor Could you give me a link to the servlet spec? Download from:

Re: web.xml, lt;url-pattern

2005-09-09 Thread Giuseppe Briotti
== Date: Fri, 9 Sep 2005 01:07:37 +0200 From: =?iso-8859-1?Q?Trond_Hersl=F8v?= [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: web.xml, url-pattern == But, if I try using wildcards, eg. url-pattern/*foxer

web.xml, url-pattern

2005-09-08 Thread Trond Hersløv
Hi! I'm running Tomcat 5.5.9 and I'm struggeling getting the grip of how to work with the deployment descriptor. If I do the following (the web.xml below) I can access the TestServlet with: http://www.mymachine.no/foxer and I get the correct output. But, if I try using wildcards, eg. url

Re: Do URL query strings with semi-colons work with TC ?

2005-09-06 Thread Darryl L. Miles
the resulting URL talks back to itself (the CGI.pm module) all will be well in the world but if it links to a TC server then there would appear to be a problem. -- Darryl L. Miles - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Do URL query strings with semi-colons work with TC ?

2005-09-06 Thread Jon Wingfield
vague. Which lead me to a presumption that it was HTTP server dependant on its interpretation, since for example the CGI.pm modules changed over from to ; as the standard param delimiter with generated URLs, providing the resulting URL talks back to itself (the CGI.pm module) all will be well

Re: Do URL query strings with semi-colons work with TC ?

2005-09-06 Thread Darryl L. Miles
be noted that a URL like this is valid syntax: http://www.mydomain.com/pathseg1;foo=bar/pathseg2;foo=bar2/pathseg3;foo=bar3;foo=bar33?query=value How the receiving HTTP server interprets the path is unspecified, and I don't think its mandatory for a HTTP server to support path params at any level

Re: Do URL query strings with semi-colons work with TC ?

2005-09-05 Thread Jon Wingfield
In a URL the semi-colon indicates the start of path parameters (as opposed to the normal query parameters) as defined in rfc2616 (HTTP1.1 spec) et al. Thus, you can't tell tomcat to use it as a query string delimiter. JSESSIONID is a well known path parameter for Servlet 2.2+ Containers

Re: Do URL query strings with semi-colons work with TC ?

2005-09-05 Thread Darryl L. Miles
the resulting URL talks back to itself (the CGI.pm module) all will be well in the world but if it links to a TC server then there would appear to be a problem. Thanks for your response. Jon Wingfield wrote: In a URL the semi-colon indicates the start of path parameters (as opposed

Do URL query strings with semi-colons work with TC ?

2005-09-04 Thread Darryl L. Miles
I swear I had application code working that was using semi-colons to delimit query string parameters. I'm sure I've also seen TC append a ;JSESSIONID= at the end of the URL. But my own application code written like: String val = request.getParameters(name); Yeilds: val=value;name2=foobar

RE: Malformed URL Exception: unknown protocol: c

2005-08-26 Thread Jay Burgess
: Thursday, August 25, 2005 5:09 PM To: Tomcat Users List Subject: Re: Malformed URL Exception: unknown protocol: c Jay, I did that just last night. I got: C:\Program Files\Apache Group\Tomcat 4.1\webapps\htmaint\WEB-INF\work_xml Franklin Phan Cygna Energy Services www.cygna.net Jay Burgess wrote: Why

Malformed URL Exception: unknown protocol: c

2005-08-25 Thread Franklin Phan
().getRealPath(XML_WORK_PATH) + \\ + xslParam)); //xslParam is an XSL file name The Malformed URL Exception does not occur on another machine running Windows XP Server. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Malformed URL Exception: unknown protocol: c

2005-08-25 Thread Mark Thomas
I assume becuase the url you pass it starts c:\ as that is the start of the XML_WORK_PATH. You need to prefix it with file:/// (or however many slashes you need to get this to work in windows). Mark Franklin Phan wrote: I use Windows XP Pro. My JAVA_HOME environment variable points to c

RE: Malformed URL Exception: unknown protocol: c

2005-08-25 Thread Jay Burgess
To: Tomcat Users List Subject: Re: Malformed URL Exception: unknown protocol: c I assume becuase the url you pass it starts c:\ as that is the start of the XML_WORK_PATH. You need to prefix it with file:/// (or however many slashes you need to get this to work in windows). Mark Franklin Phan wrote

Re: Malformed URL Exception: unknown protocol: c

2005-08-25 Thread Franklin Phan
something obvious. Jay | Jay Burgess [Vertical Technology Group] | Essential Technology Links | http://www.vtgroup.com/ -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Thursday, August 25, 2005 4:21 PM To: Tomcat Users List Subject: Re: Malformed URL Exception: unknown

RE: Malformed URL Exception: unknown protocol: c

2005-08-25 Thread Jay Burgess
PROTECTED] Sent: Thursday, August 25, 2005 4:52 PM To: Tomcat Users List Subject: Re: Malformed URL Exception: unknown protocol: c To make things a bit more puzzling, I have a different app inside the same Tomcat 4.1.18 that uses the same XSL Transform class under its own web app context

Re: Malformed URL Exception: unknown protocol: c

2005-08-25 Thread Franklin Phan
obvious. Jay | Jay Burgess [Vertical Technology Group] | Essential Technology Links | http://www.vtgroup.com/ -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Thursday, August 25, 2005 4:21 PM To: Tomcat Users List Subject: Re: Malformed URL Exception: unknown protocol: c

Re: Malformed URL Exception: unknown protocol: c

2005-08-25 Thread Franklin Phan
it tells you. I'd be curious to see what you're passing to the StreamSource constructor, and how it differs from my string. Jay -Original Message- From: Franklin Phan [mailto:[EMAIL PROTECTED] Sent: Thursday, August 25, 2005 4:52 PM To: Tomcat Users List Subject: Re: Malformed URL

URL decoding problem in Tomcat

2005-08-19 Thread jonas skrebys
the path in img tag contains folder names with national characters. Then browser does not display immages. If I enter a URL with national characters of an image to address bar in browser Tomcat returns a HTTP 404 error and writes : The requested resource (/myApp/images/%C5%BDmones/aaa.jpg

Re: How force Tomcat 5.5.4 to always use URL Rewriting

2005-08-14 Thread Paul Singleton
Rob Hunt wrote: Set the cookies attribute for the given (server.xml) context/ node to false. This will force Tomcat to rely only on URL rewriting. I am tempted to do this for our production applications, if only to simplify testing (presumably it will ensure I can have different sessions

RE: How force Tomcat 5.5.4 to always use URL Rewriting

2005-08-14 Thread Al Koch
Set the cookies attribute for the given (server.xml) context/ node to false. This will force Tomcat to rely only on URL rewriting. Hi Rob, Thanks much. Your reply made me realize that I was searching for URL rewriting when I guess I should have been looking for turn off cookies! Once I took

How force Tomcat 5.5.4 to always use URL Rewriting

2005-08-13 Thread Al Koch
management and, in that scenario, encodeURL() will not alter the URL. However, if Tomcat detects that Cookies are not supported, its implementation of encodeURL() will attach jsession=... to the URL. I have a situation in which I would like to force Tomcat to always use the URL Rewriting

Re: How force Tomcat 5.5.4 to always use URL Rewriting

2005-08-13 Thread Rob Hunt
Set the cookies attribute for the given (server.xml) context/ node to false. This will force Tomcat to rely only on URL rewriting.

Re: Servlet mapping - url pattern with *

2005-08-01 Thread Bill Barker
://x.com/galery/galery_id/secondpage.html firstpage.html is generated by servlet1 , secondpage.html by servlet2. So we must url-pattern like this: /galery/*/firstpage.html and /galery/*/secondpage.html but this url-pattern doesn't work. question: why ? ( I use version 5.5.9 ) Some people

Re: Tomcat, getRequestURI(), and URL fragments

2005-08-01 Thread Kito D. Mann
: I've noticed an interest consequence of getRequestURI() with Tomcat -- getRequestURI() doesn't return the URL fragment (the part after the #). So, if the URL is http://www.foo.com/page.html#blah, getRequestURI() only returns /page.html, as opposed to /page.html#blah. Apache, however, knows

Re: Servlet mapping - url pattern with *

2005-08-01 Thread flower
/firstpage.html http://x.com/galery/galery_id/secondpage.html firstpage.html is generated by servlet1 , secondpage.html by servlet2. So we must url-pattern like this: /galery/*/firstpage.html and /galery/*/secondpage.html but this url-pattern doesn't work. question: why ? ( I use version 5.5.9

Servlet mapping - url pattern with *

2005-07-31 Thread flower
by servlet1 , secondpage.html by servlet2. So we must url-pattern like this: /galery/*/firstpage.html and /galery/*/secondpage.html but this url-pattern doesn't work. question: why ? ( I use version 5.5.9 ) Some people, with I was talking about this, said that patterns like this was work

Re: Tomcat, getRequestURI(), and URL fragments

2005-07-30 Thread Tim Funk
The web browser never sends (or shouldn't send) #blah so the webserver will never see it. -Tim Kito D. Mann wrote: I've noticed an interest consequence of getRequestURI() with Tomcat -- getRequestURI() doesn't return the URL fragment (the part after the #). So, if the URL is http

Tomcat, getRequestURI(), and URL fragments

2005-07-29 Thread Kito D. Mann
I've noticed an interest consequence of getRequestURI() with Tomcat -- getRequestURI() doesn't return the URL fragment (the part after the #). So, if the URL is http://www.foo.com/page.html#blah, getRequestURI() only returns /page.html, as opposed to /page.html#blah. Apache, however, knows

Re: web app url config question

2005-07-12 Thread Erik Weibust
Thanks for the quick response Rob. I saw that but was afraid that was violating some tomcat best practice. If that is indeed the best way of configing my url then I'll roll with it. thx... erik --- Rob Hills [EMAIL PROTECTED] wrote: HI Erik, On 11 Jul 2005 at 19:34, Erik Weibust wrote

web app url config question

2005-07-11 Thread Erik Weibust
i have a question that after reading the majority of the online docs is still unanswered. how can i set my tomcat url to default to a specific page in a webapp? i.e. i would like http://localhost:8080 to load http://localhost:8080/testwebapp/home.jsp. is this possible? thx... erik Erik

Re: web app url config question

2005-07-11 Thread Rob Hills
HI Erik, On 11 Jul 2005 at 19:34, Erik Weibust wrote: i have a question that after reading the majority of the online docs is still unanswered. how can i set my tomcat url to default to a specific page in a webapp? i.e. i would like http://localhost:8080 to load http://localhost:8080

Turning off jsessionid on URL?

2005-07-07 Thread William Stranathan
Is there a configuration parameter to ONLY send the jsessionid by cookie, not on the URL bar? Picture this, user goes to your site http://www.yoursite.com/yourapp yoursite redirects to the menu page, which gives a jsessionid. That page is under an auth-constraint and requires login, so you get

Re: Turning off jsessionid on URL?

2005-07-07 Thread Tim Funk
Please stop posting the same question 4 times and please wait for a response. The answer to the question below is no. There is no switch. To not use URL rewriting, do not utilize the method HttpServletResponse.encodeURL(). Of course - this requires a code rewrite. The easier solution

Re: Turning off jsessionid on URL?

2005-07-07 Thread William Stranathan
wait for a response. The answer to the question below is no. There is no switch. To not use URL rewriting, do not utilize the method HttpServletResponse.encodeURL(). Of course - this requires a code rewrite. The easier solution is to implement a servlet filter which creates

Re: Turning off jsessionid on URL?

2005-07-07 Thread Michael Jouravlev
See my question about two weeks ago on how to detect jsessionid in the URL. Looks like it is not directly possible, but you can use our own request parameter to find this out. After you detect that jsessionid is in the URL (the harder part), make another redirect to the same location, and URL

RE: servlet mapping and url

2005-07-06 Thread Geiglein, Gary
If you create a file in the root of the context (any file, could be an empty file, it just needs to show up in a directory listing) then map your servlet to the same URL you would use to reference the file, then add the file to the welcome-file-list and it will work. Tomcat will not forward

Re: servlet mapping and url

2005-07-06 Thread David Smith
of the context (any file, could be an empty file, it just needs to show up in a directory listing) then map your servlet to the same URL you would use to reference the file, then add the file to the welcome-file-list and it will work. Tomcat will not forward to a welcome file unless it shows up

servlet mapping and url

2005-07-02 Thread s s
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

Re: servlet mapping and url

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

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

Convert URL path from directory/ to directory/index.htm (Spring related)

2005-06-29 Thread Andy
Hi, Is there anyway to get Tomcat to convert a request such as myserver.com/directory into myserver.com/directory/index.htm. The reason for this is that in Spring you have to specify a wild card to match against the URL path in order to invoke the DispatcherServlet, if this wild card is *.htm

RE: Convert URL path from directory/ to directory/index.htm (Spring related)

2005-06-29 Thread Allistair Crossley
Hi, You'd normally attempt to do this with URL rewriting at the web server side. I read that tomcat does not really offer URL rewriting at this time if used as a web server, I could be wrong. For what it's worth, we place index.jsp documents in folders that the user may request that do

Re: Convert URL path from directory/ to directory/index.htm (Spring related)

2005-06-29 Thread Tim Diggins
, css), so I have the following in the web.xml servlet-mapping servlet-namedefault/servlet-name url-pattern*.gif/url-pattern /servlet-mapping servlet-mapping servlet-namedefault/servlet-name url-pattern*.png/url-pattern /servlet-mapping servlet

Re: Convert URL path from directory/ to directory/index.htm (Spring related)

2005-06-29 Thread David Smith
This is also done in Tomcat via welcome-file element in web.xml. Ex.: welcome-file-list welcome-fileindex.htm /welcome-file /welcome-file-list In servlet spec 2.4 (Tomcat 5.0,5.5), this can map to either a physical file or a servlet mapped to that URL. I think in earlier servlet specs, it had

tomcat 5.0 docs(no url configured for link)

2005-06-12 Thread kamal r
At this page on the jakarta site http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/server.html on the left the General Intro link has no url configured. This is the url the link points to http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/connector.html could somebody pass

Solved! (Re: percent in URL makes tomcat chocke)

2005-06-09 Thread Holger Klawitter
Problem solved! I wrongfully assumed that apt would store debian packages with the canonical filename in apt-archives - but the %3a should indeed be transformed into : before putting stuff online - so the problem had nothing to do with tomcat. Thanks for all pointers! -- With Kind Regards / Mit

percent in URL makes tomcat chocke

2005-06-08 Thread Holger Klawitter
Hi there, I would like to use my tomcat standalone (don't want to maintain more than one server :-) also as a server for debian packages. However as tomcat interprets percent characters in file names, apt-get is not capable to retrieve the deb files from the tomcat server. Example URL: http

Re: percent in URL makes tomcat chocke

2005-06-08 Thread Omar Adobati
as a server for debian packages. However as tomcat interprets percent characters in file names, apt-get is not capable to retrieve the deb files from the tomcat server. Example URL: http://oberon/apt/./g++_4%3a3.3.5-3_i386.deb Tomcat replies with 404, whereas http://oberon/apt/./g++_4%253a3.3.5

Re: percent in URL makes tomcat chocke

2005-06-08 Thread Holger Klawitter
Omar Adobati wrote: maybe u can try to replace the % symbol with the ASCII value, that is #37; found at http://www.lookuptables.com/ It's not about that *I* can't load that file. *apt-get* needs to be able to do it. I already tried to use urlrewrite, but the filter are already too late down

Re: percent in URL makes tomcat chocke

2005-06-08 Thread Tim Diggins
in the encoding scheme and is never allowed for anything else. URL-escaping is different from html/sgml-escaping (e.g. #37; ) give that %3a is an escape for :, then if something is asking for http://oberon/apt/./g++_4%3a3.3.5-3_i386.deb then (I think) they are really asking for http://oberon

Re: percent in URL makes tomcat chocke

2005-06-08 Thread Holger Klawitter
) other webservers treat percent sings as escape characters only when it comes to the query part of the URL. I have sent a bug report to the Debian maintainers - I'll be interested in their reply :-) With Kind Regards / Mit freundlichem Gruß Holger Klawitter (listen at klawitter dot de

RE: Does Tomcat support URL containing CHINESE characters?

2005-05-11 Thread Daniel Sun
Hi Mark, Thanks heaps for the help. URIEncoding=UTF-8 works for me. Cheers, Daniel -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 11, 2005 4:00 AM To: Tomcat Users List Subject: Re: Does Tomcat support URL containing CHINESE characters

url-pattern in web.xml -- looking for explanations and best practice

2005-05-11 Thread Tim Diggins
options for url-pattern within servlet mapping and have been getting very confused... Some questions therefore... 1) Is there a definition / documentation of what the syntax for a url-pattern is? I've tried and tried googling and looking, but can't find such a thing (I'm not sure that it's

RE: url-pattern in web.xml -- looking for explanations and best practice

2005-05-11 Thread Allistair Crossley
URL patterns are quite limited for the web.xml. The document you want is actually the Servlet Specification PDF from Sun's J2EE website. You can achieve what you are talking about using the JK module with Apache or IIS as this forwards requests from the web server to Tomcat. It allows

RE: url-pattern in web.xml -- looking for explanations and best p ractice

2005-05-11 Thread Raghupathy,Gurumoorthy
In your webapp have dir http://servername:port/context/static/ for all your static content http://servername:port/context/dynamic/ for all your dynamic content URL Pattern URL-pattern/dynamic/*/URL-pattern guru -Original Message

Does Tomcat support URL containing CHINESE characters?

2005-05-10 Thread Daniel Sun
Hi all, I have the following settings. WinXP Prof CHINESE SIMPLIFIED w/ SPK2 Tomcat 5.0.28 JDK 1.5..0.3 I have a folder, whose name contains CHINESE characters (eg. ? new folder), under the [CATALINA_HOME]\webapps\jsp-example. When I browse to it in IE with URL http://localhost:8080

Re: Does Tomcat support URL containing CHINESE characters?

2005-05-10 Thread Mark Thomas
-example. When I browse to it in IE with URL http://localhost:8080/jsp-examples// http://localhost:8080/jsp-examples// , I got the HTTP status 404, the error description is : The requested resource (/jsp-examples/%E6%96%A4%B9) is not available. I can access English only URL without any

Re: How to stop Session Tracking, or stop extraction of ;jsessionid=XXX from requested URL

2005-05-05 Thread Jedidiah Northridge
as a reverse proxy. I'm encountering difficulty when my Tomcat proxy sits in between a client and a backend Tomcat that legitimately uses URL rewriting for session tracking. When the backend tomcat rewrites a ;jsessionid=XXX as part of a response, this gets back to the client, but when

How to stop Session Tracking, or stop extraction of ;jsessionid=XXX from requested URL

2005-05-04 Thread Jedidiah Northridge
Hello, I don't need the functionality of session tracking, either through URL rewriting or via Cookie assignment. Is there anyway I can disable it completely? More specifically, is there anyway I can stop my Tomcat from extracting the ;jsessionid=XXX from an incoming URI? At present, when I

Re: How to stop Session Tracking, or stop extraction of ;jsessionid=XXX from requested URL

2005-05-04 Thread Tim Funk
and always returns null instead of allowing a session to be created. -Tim Jedidiah Northridge wrote: Hello, I don't need the functionality of session tracking, either through URL rewriting or via Cookie assignment. Is there anyway I can disable it completely? More specifically, is there anyway I can stop

Re: Tomcat Settings andding a slash to my url ???

2005-04-25 Thread oceatoon
I'm using Tomcat5 in which I deployed a Cocoon App, and as my Authentication Manager passes a url to Tomcat, he (Tomcat) adds a slash at the end, This changes the whole context for the following redirection. I give /login to the authentication if I'm not logged he should send me back

Tomcat Settings andding a slash to my url ???

2005-04-22 Thread oceatoon
Hi every one I'm using Tomcat5 in which I deployed a Cocoon App, and as my Authentication Manager passes a url to Tomcat, he (Tomcat) adds a slash at the end, This changes the whole context for the following redirection. I give /login to the authentication if I'm not logged he should send me

org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'

2005-04-13 Thread Licinio Gomez Delgado
-nameorg.apache.jsp.index_jsp/servlet-name servlet-classorg.apache.jsp.index_jsp/servlet-class /servlet servlet-mapping servlet-nameorg.apache.jsp.index_jsp/servlet-name url-pattern/index.jsp/url-pattern /servlet-mapping !-- JSPC servlet mappings end -- resource-ref

RE: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'

2005-04-13 Thread Licinio Gomez Delgado
servlet-classorg.apache.jsp.index_jsp/servlet-class /servlet servlet-mapping servlet-nameorg.apache.jsp.index_jsp/servlet-name url-pattern/index.jsp/url-pattern /servlet-mapping !-- JSPC servlet mappings end -- resource-ref descriptionOracle

Re: Max URL length for 5.0.28

2005-04-09 Thread Behrang Saeedzadeh
I guess it's the standard (of HTTP?) that imposes the 255 max length limit on the size of URLs and not Tomcat. -Behi On Apr 9, 2005 1:08 AM, Jimmy Ray [EMAIL PROTECTED] wrote: Tomcat 5.0.28, HPUX Trying to use a URL that is 266 chars long and it seems to be truncated. Is there a max

Re: Max URL length for 5.0.28

2005-04-09 Thread Behrang Saeedzadeh
length limit on the size of URLs and not Tomcat. -Behi On Apr 9, 2005 1:08 AM, Jimmy Ray [EMAIL PROTECTED] wrote: Tomcat 5.0.28, HPUX Trying to use a URL that is 266 chars long and it seems to be truncated. Is there a max length setting for Tomcat? Regards, Jimmy

Re: Max URL length for 5.0.28

2005-04-09 Thread Behrang Saeedzadeh
According to the spec, maybe your client or proxy is problematic. I was googling around and i guess I found a result that was saying that IE supports URL lengths of about 2000 chars long. So if your client is IE, maybe the problem roots in somewhere else (possibly Tomcat.) -Behi On Apr 9

Max URL length for 5.0.28

2005-04-08 Thread Jimmy Ray
Tomcat 5.0.28, HPUX Trying to use a URL that is 266 chars long and it seems to be truncated. Is there a max length setting for Tomcat? Regards, Jimmy Ray __ Yahoo! Messenger Show us what our next emoticon should look like. Join the fun

URL encoding/decoding of UTF-8 characters

2005-04-06 Thread Steve Bosman
frames within the frameset are set with parameters in the URL which is output using html:rewrite (normally as the result of failed actions). If a parameter has UTF-8 characters, e.g. 5--2005 this is encoded as this: /foo.do?date=5-%D0%B0%D0%BF%D1%80-2005 By the time the date arrives in my ActionForm

AW: URL encoding/decoding of UTF-8 characters

2005-04-06 Thread Michael Sdkamp
Hi, We have all our pages UTF-8-encoded so I think what I am talking about: At least in Tomcat you must UTF-8-decode the request parameters obtained from method getParameter() of interface ServletRequest yourself. Our web-apps runs also at some customer sites with other app servers like JRun or

Re: URL encoding/decoding of UTF-8 characters

2005-04-06 Thread Mark Thomas
within the frameset are set with parameters in the URL which is output using html:rewrite (normally as the result of failed actions). If a parameter has UTF-8 characters, e.g. 5--2005 this is encoded as this: /foo.do?date=5-%D0%B0%D0%BF%D1%80-2005 By the time the date arrives in my ActionForm

RE: URL encoding/decoding of UTF-8 characters

2005-04-06 Thread Quinten Verheyen
param-nameencoding/param-name param-valueUTF-8/param-value /init-param /filter filter-mapping filter-nameencodingFilter/filter-name url-pattern/*/url-pattern /filter-mapping Regards

context path/URL only from request?

2005-04-02 Thread Jaroslav Záruba
Hello I've been looking for a way how to obtain ServletContext pah/URL without a request; eventually I've found thius reply in the Tomcat mail-archive claiming it is not possible: http://www.servlets.com/archive/servlet/ReadMsg?msgId=69529listName=tomcat-user It was 5yrs ago and I wonder whether

Re: context path/URL only from request?

2005-04-02 Thread Tim Funk
As it was 5 years ago ... its the same today. -Tim Jaroslav Záruba wrote: Hello I've been looking for a way how to obtain ServletContext pah/URL without a request; eventually I've found thius reply in the Tomcat mail-archive claiming it is not possible: http://www.servlets.com/archive/servlet

Masking JSP URL

2005-04-01 Thread John Lindley
Hi all, I have what seems to be a straighforward need, but I have not yet been able to accomplish it. I am running Apache 2.0.52, Tomcat 5.0.28, mod_jk2, on Windows Server 2003. Everything seems to be running fine, but I want to be able to hide, mask, map, whatever, the URL to the jsp pages

RE: Masking JSP URL

2005-04-01 Thread Ruth, Brice
file structure at all, from the URI that is used. Cheers, Brice -Original Message- From: John Lindley [mailto:[EMAIL PROTECTED] Sent: Friday, April 01, 2005 12:26 PM To: tomcat-user@jakarta.apache.org Subject: Masking JSP URL Hi all, I have what seems to be a straighforward need, but I

Applying HttpServletResponse.encodeURL to a mailto url

2005-03-23 Thread Karl Stenerud
I'm running Tomcat 5.0.16 under Java 1.4.2_05. I have a general url encoding setup to encode any urls it finds before serializing the dom. It does this by calling the HttpServletResponse encodeURL() on all anchor hrefs and form actions. The problem is that when it comes to a url

Re: url of caller?

2005-03-23 Thread QM
On Wed, Mar 23, 2005 at 07:56:01AM -, Pawson, David wrote: : for this use, internal to my organisation, Norton isn't installed : luckily! : : Another Gotcha worth noting though, thanks Mark. This may have been mentioned already, but some browsers can be configured to not provide referrer

url of caller?

2005-03-22 Thread Pawson, David
Is it possible to determine the url of the webpage from which a particular servlet was called please? I.e. the target of a 'back' action on the browser? public java.lang.String getRequestURI() is the 'current' page, I need the calling page. Regards DaveP. snip here * -- DISCLAIMER

Re: url of caller?

2005-03-22 Thread PA
On Mar 22, 2005, at 15:13, Pawson, David wrote: public java.lang.String getRequestURI() is the 'current' page, I need the calling page. http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.36 Cheers -- PA, Onnay Equitursay http://alt.textdrive.com/

Re: url of caller?

2005-03-22 Thread Mike Fowler
DaveP, You could use the 'referer' header, eg. String referedURL = request.getHeader(referer); Note that the String is null if the header isn't present which usually indicates that the user typed the URL in their browser. Hope this helps! -- Mike Fowler Registered Linux user: 379787 I could

  1   2   3   4   5   6   7   8   9   10   >