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 and
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
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 t
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 so that might be
t
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/
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 actuall
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;
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
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=123¶m2=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 that
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
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
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 but
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
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
> ==
> Date: Fri, 9 Sep 2005 01:07:37 +0200
> From: =?iso-8859-1?Q?Trond_Hersl=F8v?= <[EMAIL PROTECTED]>
> To: "Tomcat Users List"
> Subject: web.xml,
> ==
>
>
> But, if I try using wildcards, eg. /*foxer*foxer
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
ems to leave the part after the ? to denote the start of a query
string 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, provi
am delimiter with
generated URLs, providing 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
--
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
in the world but if it links to a TC server then there would appear to
be a problem.
Thanks for your response.
Jon
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
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&quo
lin Phan [mailto:[EMAIL PROTECTED]
Sent: 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 S
at 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
TestData.xml".
Can anyone explain why mine works and Franklin's fails? Maybe I'm missing
something obvious.
Jay
| Jay Burgess [Vertical Technology Group]
| "Essential Technology Links"
| http://www.vtgroup.com/
-Original Message-
From: Mark Thomas [mailto:[E
[mailto:[EMAIL 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
stData.xml".
Can anyone explain why mine works and Franklin's fails? Maybe I'm missing
something obvious.
Jay
| Jay Burgess [Vertical Technology Group]
| "Essential Technology Links"
| http://www.vtgroup.com/
-Original Message-
From: Mark Thomas [mailto:[EM
.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
I assume becuase the url you pass it starts c:\ as that is the start
of the XML_WORK_PATH. You
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
.transform.stream.StreamSource(getServletContext().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 un
re
displayed correctly. Moreover, when I decode request, all parameters that I
take from request and use in jsp application are decoded correctly.
The problem appears when the path in tag contains folder names with
national characters. Then browser does not display immages.
If I enter a URL with na
>>Set the cookies attribute for the given (server.xml) 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 &
Rob Hunt wrote:
Set the cookies attribute for the given (server.xml)
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 differen
Set the cookies attribute for the given (server.xml) node to
"false." This will force Tomcat to rely only on URL rewriting.
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
http://x.com/galery/galery_id/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.
quest
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://www.foo.com/page.html#blah, getRequestURI() only
returns "/page.html", as opposed to &q
y/):
> http://x.com/galery/galery_id/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-patt
rated 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
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
"#"
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 &quo
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
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
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
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 will
mes 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 is to implement
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 is to
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
oot 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
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 to a
est though, give it a shot
and post back your results for the archives.
Frank
s s 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 j
you can configure your web.xml file and make index.jsp
file as an welcome file using,
index.jsp
now, create index.jsp file which will simply forward
the request to your servlet!
Rgds,
Hardik
--- s s <[EMAIL PROTECTED]> wrote:
> i want to invoke a servlet using
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
This is also done in Tomcat via element in web.xml. Ex.:
index.htm
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 to be a physical file. SRV.9.10 of the spec has more info.
--David
ff like
images, css), so I have the following in the web.xml
default
*.gif
default
*.png
default
*.css
my_spring_dispatcher
/
The control you have on url-mapping is much finer in spring -
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
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
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 it
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 /
liant server. (Most) 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ß
Holge
escape
character in the encoding scheme and is never allowed for anything
else.
"
URL-escaping is different from html/sgml-escaping (e.g. % )
give that "%3a" is an escape for ":", then if something is asking for
http://oberon/apt/./g++_4%3a3.3.5-3_i386.deb
Omar Adobati wrote:
> maybe u can try to replace the % symbol with the ASCII value, that is
> % 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
the
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://oberon/apt/./g++_4%3a3.3.5-3_i386.deb
> Tomcat replies with
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:
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
/dynamic/*
guru
-Original Message-
From: Tim Diggins
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 the
trying various 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 thin
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 charact
eg. 新键文件夹 ?
> “new folder”), under the “[CATALINA_HOME]\webapps\jsp-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 reque
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
quest, if the requested URI looks
> > something like: "/index.html;jsessionid=XXX" by the time it reaches my
> > servlet, it has been changed to "/index.html."
> >
> > I'm asking about this because I'm using my Tomcat as a reverse proxy.
> &g
rides getSession
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,
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
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
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 shou
Hi,
I´ve seen tomcat 5.0.28 has different *.xml files for each context in
catalina/localhost,
then I´ve modified ROOT.xml instead server.xml
here it is:
-
ROOT.xml
-
url
jdbc:oracle:thin:@10.0.100.6:1521:bddesa
validationQuery
select
driverClassName
oracle.jdbc.driver.OracleDriver
url
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
t 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
> > seem
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
> seem
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
encodingFilter
/*
Regards,
Q
> -Original Message-
> From: Mark Thomas [mailto:[EMAIL PROTECTED]
> Sent: 06 April 2005 17:15
> To: Tomcat Users List
> Subject: Re: URL encoding/decoding of UTF-8 character
rames 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 ActionFor
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
nally 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
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/archi
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=69529&listName=tomcat-user
It was 5yrs ag
any particular 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 straighforw
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
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 info
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 su
-Original Message-
From: Mark Benussi
Worth mentioning this as I have been down this path.
Symantec Intenet Security products and the like, will
remove this header.
for this use, internal to my organisation, Norton isn't installed
luckily!
Anothe
ip.nsf&view=docid&dtype=&prod=&ver=&osv=&osv_lvl=
Original Message Follows
From: "Pawson, David" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List"
To: "Tomcat Users List"
Subject: url of caller?
Date: Tue, 22 Mar 2005 14:13:55 -
Is
> From: Pawson, David [mailto:[EMAIL PROTECTED]
> From: Mike Fowler
> Note that the String is null if the header isn't present
> which usually indicates that the user typed the URL in
> their browser.
>
> The caveat is worth noting!
> If a us
-Original Message-
From: Mike Fowler
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 ty
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 Li
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/
--
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 *
You could write a filter to do this. So if the filter see's the shorter
url it can redirect/forward to the longer url.
Subir
-Original Message-
From: David Wall [mailto:[EMAIL PROTECTED]
Sent: Monday, March 07, 2005 11:26 AM
To: Tomcat Users List
Subject: Tomcat 4.1 and auto-red
1 - 100 of 1445 matches
Mail list logo