J_security_check interceptor

2005-03-07 Thread Ramu, Vinod
Hi, I am trying to intercept the submit action of login.jsp. I am using FORM authentication. The plan is to wrap the response in the Servlet Filter to intercept j_security_check action to identify the username, password and role to create a user object. In this way user profile is available for

RE: Remote debugging with tomcat windows

2005-03-07 Thread Ramu, Vinod
Hi, This could be because Tomcat uses other -D option, which I am not exactly sure of (refer the doc). Besides, you need jdk 1.5XXX and you have to start the server from the TOMCAT_HOME directory. Also try to set the suspend=n option to suspend=y this will make the debuggee to wait till the

RE: Remote debugging with tomcat windows

2005-03-07 Thread Ramu, Vinod
This is what I found in the documentation If using a J2SE 1.4 JRE, the compatibility package must be downloaded and expanded inside the folder where Tomcat was installed I am using tomcat 5.5 I was not able to get my debugger join the server until I ran the tomcat on the command using

RE: tomcat load-balancing maintenance strategy?

2005-03-08 Thread Ramu, Vinod
I thought /distributable XML element in web.xml does that automatically. -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 08, 2005 9:40 AM To: Tomcat Users List Subject: RE: tomcat load-balancing maintenance strategy? You need to implement

RE: How to access web site from other computers

2005-03-08 Thread Ramu, Vinod
The IP allocated to your machine must be STATIC. If you built a internet site then ask your internet service provider to allocate a static IP to your machine. Otherwise, if you have built a intranet site talk to your system administrator, probably he will find a domain controller.

RE: Tomcat auth problem

2005-03-10 Thread Ramu, Vinod
I would try with using extension URL mapping. For instance, url-pattern*.jsp/url-pattern in my web.xml. And based on the URL sent by you and I thing the application root web context is nbpapps. If this is true, then begin your URL under the url-pattern tag with faces (based on the URL sent

RE: {OT] Re: Jumping in and out of JSP

2005-03-15 Thread Ramu, Vinod
This sound very much similar to error handling. However,If you could explain exactly about what you are trying to do then probably we could suggest an alternative to get it done. Vinod -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005

RE: {OT] Re: Jumping in and out of JSP

2005-03-15 Thread Ramu, Vinod
sections into each jsp file. This makes adding new sections to every page difficult. Charles -Original Message- From: Ramu, Vinod [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005 1:20 PM To: Tomcat Users List Subject: RE: {OT] Re: Jumping in and out of JSP This sound very much

RE: Problem with Tomcat caching old pages that it shouldn't

2005-03-16 Thread Ramu, Vinod
All the compiled JSP servlet classes are stored under jakarta-tomcat-5.5.4\work\Catalina\localhost\yourwebcontext. Please check the timestamp of the compiled file. If you think that it's a old file then I would delete the context directory under jakarta-tomcat-5.5.4\work\Catalina\localhost\ as

RE: Help configure ServletFilter

2005-03-16 Thread Ramu, Vinod
I would suggest For JSP's,use url-pattern*.jsp/url-pattern. And for Servlets. You could add a common starting name that maps to a servlet path in the container. For instance, let's say all the URLs starting with the path servlets map to some kind of servlet in the container. Now add

RE: does anyone know this error??

2005-03-17 Thread Ramu, Vinod
This error is because you have a code that's trying to write response after it's committed. If you can share the code that's causing this error then may be we can be of some help. Vinod -Original Message- From: Bedrijven.nl [mailto:[EMAIL PROTECTED] Sent: Thursday, March 17, 2005 8:45

RE: web.xml

2005-03-17 Thread Ramu, Vinod
I would achieve this be configuring my web.xml. Try this piece of code servlet servlet-nameMyServlet/servlet-name jsp-file/webReg.jsp/jsp-file /servlet servlet-mapping servlet-nameMyServlet/servlet-name url-pattern/webReg/url-pattern /servlet-mapping So when to

RE: does anyone know this error??

2005-03-17 Thread Ramu, Vinod
()); } } } } catch (Exception e) { Logger.getLogger(nl.onvelvet.customer.PhotoServlet).error(LogUtil.getS tack Trace(e)); } } The rest is handled by Struts. -Oorspronkelijk bericht- Van: Ramu, Vinod [mailto:[EMAIL PROTECTED

RE: How to redirect to a different host

2005-03-17 Thread Ramu, Vinod
You may have to use JSTL in your page. JSTL provides a tag called import that has the capability to import contents from other site to your page. So you may built a page that looks like %@ taglib prefix=c uri=http://java.sun.com/jstl/core; % c:import url=http://shoppingcarthost:8080/shopping/

RE: Mapping JSP

2005-03-17 Thread Ramu, Vinod
Use jsp-file XML element (under servlet node) in your web.xml. Then dispatch the request to this resource using ServletContext.getNamedDispatcher(nameoftheresource). If you use this method there is no need to use any path. It identifies the resources based on the name that you pass. Vinod

RE: Tomcat Struts = Problems with my first page

2005-03-18 Thread Ramu, Vinod
This has to do with the applicationresources.properties files that you have configured in your struts-config.xml. It's not able to find the properties file that you have specified under the message-resources XML element, in the struts xml config file. This properties file can be placed under any

RE: Problem with error-handling

2005-03-26 Thread Ramu, Vinod
Hi, This what I did 1. I added below configuration error-page exception-typejava.sql.SQLException/exception-type location/index.html/location /error-page 2. Then added below lines to my doPost() throw new ServletException(SQLException, new SQLException());

RE: Problem with error-handling

2005-03-26 Thread Ramu, Vinod
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, March 26, 2005 8:17 PM To: Tomcat Users List Subject: RE: Problem with error-handling yeah it works. But i still cannot understand why my code does not work. Theoretically my code should work right? --- Ramu, Vinod [EMAIL

RE: include / c:import problems

2005-03-29 Thread Ramu, Vinod
Could we get the jsp code and web.xml configuration? Vinod -Original Message- From: Asim Alp [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 3:14 PM To: Tomcat Users List Subject: include / c:import problems Hi, We're using Tomcat 5.5.7 on Windows Server 2003 with Sun's J2SE

To find user name

2005-04-20 Thread Ramu, Vinod
Hi All, Could any one of you please let me know how to get the username? For example, let's assume that I use BASIC authentication to authorize the users of my site and I have a user who has logged in successfully. During the coarse of this user's session, if I need to know the username with

RE: To find user name

2005-04-20 Thread Ramu, Vinod
: Ramu, Vinod [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Wed, 20 Apr 2005 10:16:36 Hi All, Could any one of you please let me know how to get the username? For example, let's assume that I use BASIC authentication to authorize the users of my site and I have a user who has logged