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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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:
==
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
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
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
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
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
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
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
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
: 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
().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
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
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
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
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
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
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
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
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
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
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
Set the cookies attribute for the given (server.xml) context/ node to
false. This will force Tomcat to rely only on URL rewriting.
://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
:
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
/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
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
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
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
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
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
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
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
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
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
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
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
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
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
] 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
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
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
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
, 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
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
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
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
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
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
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
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
) 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
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
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
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
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
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
-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
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
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
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
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
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
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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/
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 - 100 of 1433 matches
Mail list logo