%
pageContext.getRequest().???
List userRoleList =
UserRoleService.getInstance().getUserRoleList();
%
I fail to find getRemoteUser() in pageContext.getRequest
after login with JDBCRealm.
I'd like to pass it in as a parameter in getUserRoleList().
Thanks
%
String user = request.getRemoteUser();
%
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 04 October 2005 15:34
To: Tomcat Users List
Subject: How to get login username with pageContext?
%
pageContext.getRequest().???
List
PROTECTED]
Sent: 04 October 2005 15:34
To: Tomcat Users List
Subject: How to get login username with pageContext?
%
pageContext.getRequest().???
List userRoleList =
UserRoleService.getInstance().getUserRoleList();
%
I fail to find getRemoteUser() in pageContext.getRequest
in the
right directon as to what to read to find out how to get tomcat to let
me do this please?
--
Kind Regards
Kyle
-
To unsubscribe, e-mail: [EMAIL
I think it is getRemoteUser();
--- ±ç¬±³õ [EMAIL PROTECTED] wrote:
After implementation of JDBCRealm,
how to retrieve the username in Servlet after login?
Thanks
-
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For
It is:
request.getUserPrincipal().getName();
To check for a special role, use:
request.isUserInRole(rolename);
Am Donnerstag, den 15.09.2005, 03:49 -0700 schrieb Caroline Jen:
I think it is getRemoteUser();
--- ±ç¬±³õ [EMAIL PROTECTED] wrote:
After implementation of JDBCRealm,
how
After implementation of JDBCRealm,
how to retrieve the username in Servlet after login?
Thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
梁炳場 wrote:
After implementation of JDBCRealm,
how to retrieve the username in Servlet after login?
getRemoteUser()
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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.
I'm trying to gain access to the name of the Engine that a servlet is
running in. In most cases this will be Catalina as configured in the
/conf/server.xml file. But when another Engine is configured, say
CatalinaTesting, I need to get that name instead.
I've tried to navigate the methods and
-user@jakarta.apache.org
Subject: How to get name of Engine a servlet is running in?
I'm trying to gain access to the name of the Engine that a servlet is
running in. In most cases this will be Catalina as configured in the
/conf/server.xml file. But when another Engine is configured, say
I've needed to do this in the past: I created a filter that set the set the
requestURI in an attribute in the request. There may be a better way.
Martin
Marten Lehmann wrote:
Hello,
I have a forward to a jsp-file. This jsp-file needs to know which URI
was requested in the initial request.
Hello,
I have a forward to a jsp-file. This jsp-file needs to know which URI
was requested in the initial request. Currently, I can only see the
requestURI of the forwarded jsp-file. Any ideas?
set a session bean with the original uri.
From: Schwarz [mailto:[EMAIL PROTECTED]
Subject: AW: how to get the original requestURI after jsp:forward()
set a session bean with the original uri.
I don't think you want to put a request-specific data item into the
session - if there's more than one request being processed
simultaneously
Hello,
I have a forward to a jsp-file. This jsp-file needs to know which URI
was requested in the initial request. Currently, I can only see the
requestURI of the forwarded jsp-file. Any ideas?
Regards
Marten
-
To
You need to read SRV.8.4 of the servlet specification.
Mark
Marten Lehmann wrote:
Hello,
I have a forward to a jsp-file. This jsp-file needs to know which URI
was requested in the initial request. Currently, I can only see the
requestURI of the forwarded jsp-file. Any ideas?
Regards
Hi,
You need to read SRV.8.4 of the servlet specification.
I read it now. However, it's stated there, that path-related-values
should be overwritten by the container in all request-dispatcher
occurences. This means: include and forward. But for an include, I can
see the original
The principle may contain it, but you would have to get it via
reflection or cast it to it's original type to see it.
Larry
On 6/2/05, Jo [EMAIL PROTECTED] wrote:
Hi all,
Once Tomcat has authenticated a login, we can get the the authenticated
user's name from the request's getRemoteUser()
I'm not sure you're supposed to be able to get it. Also, what would you
expect to get if the password was hashed?
Can you not just read the password from the database / ldap source?
Digby
Larry Meadors wrote:
The principle may contain it, but you would have to get it via
reflection or cast
Since we're talking tomcat, you can generally cast the principle to
generic principle:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/catalina/docs/api/org/apache/catalina/realm/GenericPrincipal.html
It has a getPassword() method.
I do not know if that password gets hashed...it never was with
Hi all,
Once Tomcat has authenticated a login, we can get the the authenticated
user's name from the request's getRemoteUser() or getUserPrincipal()
methods.
Is there a way to get the user's password when the authentication type is
form-based or single-sign-on ?
Thanks a lot.
Jo.-
Hi,
I am using Tomcat 5.5.7 and configured DBCP properly to work with Oracle 9i.
Everything is working fine if I try to get the connection from the Pool from an
application deployed in Tomcat.
However if I try to get the connection from the Pool from an application which
is not deployed in
On Sun, May 01, 2005 at 05:46:22PM -0700, appa rao wrote:
: However if I try to get the connection from the Pool from an application
which is not deployed in Tomcat (remote client), I am getting not bound
exceptions.
This makes sense. Keep in mind, JNDI is just a lookup/storage service
for
Hi ,
How we can get real path of application in java. ?
thanks and regards,
Pradeep
DISCLAIMER:
This message, including any attachments contains confidential and privileged
information for the sole use of the intended recipient(s), and is protected by
law.
If you are not the intended
Chauhan
[EMAIL PROTECTED] wrote:
Hi ,
How we can get real path of application in java. ?
thanks and regards,
Pradeep
DISCLAIMER:
This message, including any attachments contains confidential and privileged
information for the sole use of the intended recipient(s), and is protected
Hi all,
Is it possible to know what version of Tomcat is running behind an
Apache. The connector used is JK.
--
rgds
Antony Paul
http://www.geocities.com/antonypaul24/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
PROTECTED]
Sent: Wednesday, March 16, 2005 4:47 AM
To: Tomcat Users List
Subject: How to get know what version of TC is running behind Apache
Hi all,
Is it possible to know what version of Tomcat is running behind an
Apache. The connector used is JK.
--
rgds
Antony Paul
http://www.geocities.com
this extension:
http://livehttpheaders.mozdev.org/
Then you can see all the http headers, including server, which will tell
you which version of Tomcat.
-Original Message-
From: Antony Paul [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 16, 2005 4:47 AM
To: Tomcat Users List
Subject: How
Hi all,
Is it possible to know what version of Tomcat is running behind an
Apache. The connector used is JK.
Try asking for a non-existant servlet in your web-app. The 404 page is issued
by Tomcat and, I think, tells you the version.
Regards
Roger
Under Tomcat 5.0.19 I had a logger statement in my application context
that created a log file. This log file contained, among other things, a
line each time a user successfully/unsuccessfully logged in, similar to:
2005-02-20 07:09:20 JDBCRealm[/stars]: Username xxx successfully
authenticated
Hi,
This is probably a java and not a tc question, but I would like to know how
to get English java error messages when I start tc on a German windows XP
box.
Zsolt
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
-Duser.variant=variant
e.g.: -Duser.language=en -Duser.country=US
Best regards,
Tex
Zsolt Koppany schrieb:
Hi,
This is probably a java and not a tc question, but I would like to know how
to get English java error messages when I start tc on a German windows XP
box.
Zsolt
[mailto:[EMAIL PROTECTED]
Sent: Monday, February 07, 2005 6:30 PM
To: Tomcat Users List
Subject: Re: How to get english messages on a German Windows-XP?
I think Java uses the Locale from your operating system.
So to switch to english, you should either:
+ switch the locale of your operating system
PM
To: Tomcat Users List
Subject: Re: How to get english messages on a German Windows-XP?
I think Java uses the Locale from your operating system.
So to switch to english, you should either:
+ switch the locale of your operating system
+ tell Java to use another locale via system.properties at tomcat
VAN DER MARLIERE FREDERIC wrote:
Hi all.
Does anybody know if it is possible to get my NT login from Tomcat?
I heard something about Windows Active Directory but I don't know anything
about that.
If you want authenticate against NT/Windows domain, check Tomcat
JAASRealm
Hi all.
Does anybody know if it is possible to get my NT login from Tomcat?
I heard something about Windows Active Directory but I don't know anything
about that.
Thanks in advance.
Fred.
Ce message et toutes les pieces jointes (ci-apres le
.: How to get NT login within Tomcat ?
Hi all.
Does anybody know if it is possible to get my NT login from Tomcat?
I heard something about Windows Active Directory but I don't know anything
about that.
Thanks in advance.
Fred.
Ce message et
Hi,
I need to send a very very big set of data within a servlet to the users
browser. But if the users canceles the transmission or closes its
browser I need to cancel writting the data to save resources. But if the
user canceles the response during transmission I don't get a
To: [EMAIL PROTECTED]
Subject: How to get a notfication if the user closes its browser?
Hi,
I need to send a very very big set of data within a servlet
to the users
browser. But if the users canceles the transmission or closes its
browser I need to cancel writting the data to save
An IOException should be thrown by write sometime after the socket is
disconnected. (It may vary due to buffering)
Tomcat doesn't log that IOException since it is so common but it can be
caught if your decide to do so.
-Tim
Stephan Coboos wrote:
Hi,
I need to send a very very big set of data
Hi,
try just:
img src=images/close.gif
Yup, or ../images/, but not /images. For HTML references, / means the
server root, not the root of your webapp, and is usually a wrong choice.
Even when it works, you still limit portability by hard-coding your
webapp to context path .
Yoav
On Sun,
Hi
I have a simple sevlet that generates img. I can not
get the images to load? I read the servlet essential
tutorial at sun.com, but that did not help. To try to
figure what was going on I turned on the dumper. Here
is my file layout
webapps/MyBookmarks/images/*.gif
try just:
img src=images/close.gif
On Sun, 2004-10-17 at 20:49, andy davidson wrote:
Hi
I have a simple sevlet that generates img. I can not
get the images to load? I read the servlet essential
tutorial at sun.com, but that did not help. To try to
figure what was going on I turned on
I am attempting to move a web application from Tomcat 4.0.6 to 5.0.27.
But I am having a problem - in 5.0.27 when a JSP displays a form
backed by a javabean the uninitialized properties of the bean are
displayed as 'null' rather than as a blank string as was done in
4.0.6. I know some other
This is the expected behavior.
See:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25241
for more details.
On Mon, 2004-10-11 at 11:40, Michael Truman wrote:
I am attempting to move a web application from Tomcat 4.0.6 to 5.0.27.
But I am having a problem - in 5.0.27 when a JSP displays
Hi All,
I was just learning 'bt Mbeans. To begin with, I was learning to use and
test the Mbeans that are already existing in tomcat so I get to know how
Mbeans work. I have written my own Agent called UserManager to call the
Mbeans to list users (Tomcat Admin functionality : based on classes
() ) );
}
}
catch( Exception e )
{
e.printStackTrace();
}
}
Robert S. Harper
801.265.8800 ex. 255
-Original Message-
From: Honnavalli, Jyothi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 28, 2004 3:30 PM
To: 'Tomcat Users List'
Subject: How to get a handle to tomcat Mbean
ColdFusion installed on Netware 6.5 runing Apache with Tomcat4, however not
functioning. Need to know how to set environment variable to get ColdFusion
to run. Any help would be greatly appriciated.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system
Can anyone/anybody please tell me just how exactly I can go about
getting Tomcat version 5.5.1 to re-start it's context???!! It doesn't
seem to wanna do it thru the old method of editing the server.xml file
with DefaultContext reloadable=true /!!
Check the archives for this list. Yoav Shapira and Remy Maucherat
answered this question just the other day. Remy explained a bit
and pointed us to:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
which explains more.
--Fred
The Active Directory is (Simplifying, off course) an LDAP directory. You
could use a LDAP binding to get the user names from it.
QM escribió:
On Tue, Aug 31, 2004 at 10:37:58AM +0800, Aris Javier wrote:
: when i use request.getRemoteUser(), it returns null value.
:
: what i want to do is get
Hello!
Is there a way to get the user login of a client in windows
using JSP/Servlet?
I'm working on something, i want to get the user login of a
client and verify it in Active Directory.
Thanks in advance!
aris
handle it? Or are you specifically looking for the ActiveDirectory hook to
tie SingleSignOn into Tomcat? Sorry, I raised more questions.
Keith
-Original Message-
From: Aris Javier [mailto:[EMAIL PROTECTED]
Sent: Monday, August 30, 2004 7:25 PM
To: [EMAIL PROTECTED]
Subject: how to get user
:[EMAIL PROTECTED]
Sent: Tuesday, August 31, 2004 9:48 AM
To: 'Tomcat Users List'
Subject: RE: how to get user login?
That is really an opened ended question. Are you talking about getting
the username and password if you use SingleSignOn? If so then you would
do
request.getUserPrincipal() cast
On Tue, Aug 31, 2004 at 10:37:58AM +0800, Aris Javier wrote:
: when i use request.getRemoteUser(), it returns null value.
:
: what i want to do is get first the login username then verify it in
: active directory if it exists...
Does JNDIRealm work with AD?
If so, you could setup your auth
Hi,
My apologies for continuing to post similar messages, but I'm still not
able to get my JSPs to retrieve any of the information from client
certificates in my Apache+Tomcat+mod_jk2 server. I've been testing like
crazy for 2-3 days now, and going nowhere fast.
At this point, I'm getting more
On Thu, 12 Aug 2004, Jacob Kjome wrote:
| To get the context path at init time, try this
Thanks..! Good to see that others (log4j!!) have this problem!
However, I have been thinking along these lines (the second idea
presented) already, but it then again boils down to that you really
Hi,
No, not all of us will be happy. And it's not simple.
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: Endre Stølsvik [mailto:[EMAIL PROTECTED]
Sent: Friday, August 13, 2004 5:27 AM
To: Tomcat Users List
Subject: Re: SOLVED: How to get the context path
Millennium Research Informatics
-Original Message-
From: Endre Stølsvik [mailto:[EMAIL PROTECTED]
Sent: Friday, August 13, 2004 5:27 AM
To: Tomcat Users List
Subject: Re: SOLVED: How to get the context path for a web application?
On Thu, 12 Aug 2004, Jacob Kjome wrote:
| To get the context
On Fri, 13 Aug 2004, Shapira, Yoav wrote:
| Hi,
| And of course, since you can get the source for JSR154, there's nothing
| preventing you from adding this method and running with a custom servlet
| jar in your container. (It's at
| http://cvs.apache.org/viewcvs.cgi/jakarta-servletapi-5/jsr154/,
Per the servlet spec, a j2ee app isn't required to have an app path.
The entire war file can be deployed remotely and run without ever being
unpacked. In a case like that, there would be no path to the application.
On Friday 13 August 2004 10:01 am, Endre Stølsvik wrote:
But, why wouldn't all
Millennium Research Informatics
-Original Message-
From: Ben Souther [mailto:[EMAIL PROTECTED]
Sent: Friday, August 13, 2004 10:12 AM
To: Tomcat Users List
Subject: Re: SOLVED: How to get the context path for a web application?
Per the servlet spec, a j2ee app isn't required to have an app
To: Tomcat Users List
Subject: Re: SOLVED: How to get the context path for a web
application?
Per the servlet spec, a j2ee app isn't required to have an
app path. The entire war file can be deployed remotely and
run without ever being
unpacked. In a case like that, there would be no path
contextPath = path.substring(0, path.lastIndexOf(/));
contextPath = contextPath.substring(contextPath.lastIndexOf(/) +
1);
This looks like a reasonable hack, but isn't it true that the filesystem
path and the context path don't have to match? For example, I can map to
Quoting David Wall [EMAIL PROTECTED]:
contextPath = path.substring(0, path.lastIndexOf(/));
contextPath = contextPath.substring(contextPath.lastIndexOf(/) +
1);
This looks like a reasonable hack, but isn't it true that the filesystem
path and the context path don't have to
On Wed, 11 Aug 2004, David Wall wrote:
| The cause for some of these specs is the fact servlet containers aren't
| required to run on file systems. For example, they may run entirely
| inside a DBMS (and Oracle had such a container for a while), in which
| case you must deploy in a packed
To get the context path at init time, try this
from:
http://cvs.apache.org/viewcvs.cgi/logging-log4j-sandbox/src/java/org/apache/log4j/servlet/InitShutdownController.java
/**
* Retrieves the context path of the web application from the servlet
context.
*
* @param context the current
hai
use
request.getContextPath()
Rajesh
Jacob Kjome wrote:
To get the context path at init time, try this
from:
http://cvs.apache.org/viewcvs.cgi/logging-log4j-sandbox/src/java/org/apache/log4j/servlet/InitShutdownController.java
/**
* Retrieves the context path of the web application
OHH!!. How could we be so stupid???
RTFT! (that last 'T' would be 'thread')
-Original Message-
From: Rajesh [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 12, 2004 8:47 AM
To: Tomcat Users List
Subject: Re: SOLVED: How to get the context path for a web
application?
hai
On Tue, 10 Aug 2004, Shapira, Yoav wrote:
|
| Hi,
|
| Agreed, but my follow-up question was if there was such a call to be
| done
| using a ServletContext/ServletConfig object so that you can get the
| context
| path in initialization servlets, etc., before a request comes in.
|
| No, and an
: How to get the context path for a web application?
On Tue, 10 Aug 2004, Shapira, Yoav wrote:
|
| Hi,
|
| Agreed, but my follow-up question was if there was such a call to be
| done
| using a ServletContext/ServletConfig object so that you can get the
| context
| path in initialization servlets, etc
The cause for some of these specs is the fact servlet containers aren't
required to run on file systems. For example, they may run entirely inside
a DBMS (and Oracle had such a container for a while), in which case you must
deploy in a packed WAR and the subset under a server's URL name space is
: Monday, August 09, 2004 10:49 PM
To: Tomcat Users List
Subject: How to get the context path for a web application?
I need to find a way to get the context path of the current web
application.
I would like to to it using the HttpSession, HttpServletRequest or
response.
I tried
request.getContextPath();
Is there a way to do it when not serving a web page? Like in a startup
servlet that has a ServletConfig/Context, but doesn't have a request? This
way, the context could be retrieved once and cached and used in situations
unrelated to processing a specific HTTP
suggest
you check the API docs for more information.
Robert S. Harper
801.265.8800 ex. 255
-Original Message-
From: David Wall [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 10, 2004 10:07 AM
To: Tomcat Users List
Subject: Re: How to get the context path for a web application
A ServletConfig reference is passed in the call to the init() method of
your
servlet. From this you may use the getServletContext() method to get the
context. One thing to remember is that this does not get called until the
servlet is initialized and would be invalidated when it is destroyed.
Someone on the list suggested Request.getContextPath() and it works like a
charm. Thanks to all.
On 8/10/04 1:06 PM, David Wall [EMAIL PROTECTED] wrote:
A ServletConfig reference is passed in the call to the init() method of
your
servlet. From this you may use the getServletContext() method
Someone on the list suggested Request.getContextPath() and it works like a
charm. Thanks to all.
Agreed, but my follow-up question was if there was such a call to be done
using a ServletContext/ServletConfig object so that you can get the context
path in initialization servlets, etc., before a
Hi,
Agreed, but my follow-up question was if there was such a call to be
done
using a ServletContext/ServletConfig object so that you can get the
context
path in initialization servlets, etc., before a request comes in.
No, and an archive search would reveal past discussions around this
issue
No, and an archive search would reveal past discussions around this
issue (though none recently). Webapps are supposed to be independent
of their server configuration including with regards to context path,
and so the Servlet Spec actively discourages you from doing webapp
initialization or
On Tue, 10 Aug 2004, David Wall wrote:
No, and an archive search would reveal past discussions around this
issue (though none recently). Webapps are supposed to be independent
of their server configuration including with regards to context path,
and so the Servlet Spec actively
: Re: SOLVED: How to get the context path for a web application?
Someone on the list suggested Request.getContextPath() and it works like a
charm. Thanks to all.
Agreed, but my follow-up question was if there was such a call to be done
using a ServletContext/ServletConfig object so that you
Hi,
True and it's mostly not a big issue. However, is it possible for a
ServletContext to reference one context path and the Request objects to
have
a different one? Most webapps only operate under a single context path
(don't they?), so having it at initialization would be nice too. Oh
that's me! =)
it's nice to be of service...
welcome!
aris
-Original Message-
From: Dov Rosenberg [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 11, 2004 1:23 AM
To: Tomcat Users List
Subject: SOLVED: How to get the context path for a web application?
Someone on the list suggested
: How to get the context path for a web application?
Someone on the list suggested Request.getContextPath() and it works like
a charm. Thanks to all.
On 8/10/04 1:06 PM, David Wall [EMAIL PROTECTED] wrote:
A ServletConfig reference is passed in the call to the init() method
of
your
I need to find a way to get the context path of the current web application.
I would like to to it using the HttpSession, HttpServletRequest or response.
I tried the ServletContext.getServletContextName but it returns null in
Tomcat. Is there a cross container solution?
--
Dov Rosenberg
Have you tried ?
request.getServletPath();
Keith
-Original Message-
From: Dov Rosenberg [mailto:[EMAIL PROTECTED]
Sent: Monday, August 09, 2004 9:49 PM
To: Tomcat Users List
Subject: How to get the context path for a web application?
I need to find a way to get the context path
also,
request.getContextPath();
aris
-Original Message-
From: Keith Bottner [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 10, 2004 12:10 PM
To: 'Tomcat Users List'
Subject: RE: How to get the context path for a web application?
Have you tried ?
request.getServletPath();
Keith
Hello All,
I'm using JNDIRealm to authenticate users and it's working well.
In my java code, I need to retrieve roles associated with the
authenticated user.
Here is a sample of this code :
Subject s =
It may be easier to use JMX and retrieve the role out of the user information
from the user bean.
Robert S. Harper
801.265.8800 ex. 255
-Original Message-
From: Renato Primavera [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 7:47 AM
To: [EMAIL PROTECTED]
Subject: How
Hi,
-Original Message-
From: Ariel Valentin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 02, 2004 10:19 PM
To: [EMAIL PROTECTED]
Subject: RE: How to get the offending uri when handling a 404 error?
I believe the ErrorData class only holds 500 errors.
Where did you get
Hi,
Does your 404.jsp have the isErrorPage directive set to true?
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: Joseph Shraibman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 7:57 PM
To: [EMAIL PROTECTED]
Subject: How to get the offending uri when
: Wednesday, June 02, 2004 7:50 AM
To: Tomcat Users List
Subject: RE: How to get the offending uri when handling a 404 error?
Hi,
Does your 404.jsp have the isErrorPage directive set to true?
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: Joseph Shraibman
those
bad requests.
Hope that helps,
Mr. Ariel S. Valentin
mailto: [EMAIL PROTECTED]
From: Mike Curwen [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: How to get the offending uri when handling a 404 error?
Date: Wed, 2 Jun 2004
Does the request attribute
javax.servlet.error.request_uri suit your needs ?
(from the servlet spec, SRV.9.9.1)
Actually returns null. I'm using Tomcat 3; Could that
be the reason?
Here's my snippet:
%@ page isErrorPage=true%
%
So you'd need tomcat 4 and above for javax.servlet.error.request_uri
-Original Message-
From: Dola Woolfe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 3:28 AM
To: [EMAIL PROTECTED]
Subject: Re: ErrorPage.jsp - how to get the address of the
offending page?
Does
To: [EMAIL PROTECTED]
Subject: Re: ErrorPage.jsp - how to get the
address of the
offending page?
Does the request attribute
javax.servlet.error.request_uri suit your needs
?
(from the servlet spec, SRV.9.9.1)
Actually returns null. I'm using Tomcat 3; Could
,
and I'm wondering if maybe it was in that version too.
From: Dola Woolfe [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: ErrorPage.jsp - how to get the address of the offending page?
Date: Tue, 1 Jun 2004 08:47:07 -0700 (PDT)
So
(JspServlet.java:236)
(this is with tomcat 5.0.24)
So how can I get the url the the user tried to request?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
The subject pretty much contains the question.
I would like the error page to send me an email with
the URL of page that caused the exception. However, I
can't figure out how to do it othe than by parsing the
stack trace and somehow backing out the webpage.jsp
that caused the error.
Thanks!
1 - 100 of 417 matches
Mail list logo