Re: exception from database

2002-03-12 Thread Paul Balanoiu

that code can catch every known java exeption
you can find the list in the JDK javadoc.
Paul

12.03.2002 08:22:58, Maurice Munoz [EMAIL PROTECTED] wrote:

Does anyone know where I can find a list of possible error this exception can list.

catch (Exception e)
{
  e.printStackTrace ();
}

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com




Paul Balanoiu
Bucharest, Romania

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Tomcat Log File customzation

2002-03-11 Thread Paul Balanoiu

I don't think you can use a servlet from an web application to control other web 
applications, nor should you. Anyway even if you could set it on
your Tomcat instalation, by changing some files, as you said, the web application 
would't work the same on another machine.
Java Servlet Specification Version 2.3 has a new feature: the filters. I think you can 
use those, they might fit your needs. But even those are
application specific (they are declared in the web application descriptor), so at 
least their description must be included in each application.
Tomcat 4.0 (and newer versions) are implementations of the 2.3 specifications. I 
suggest you use this if you need any kind of event listeners.
Good luck,
Paul

11.03.2002 11:11:54, sreehari sai [EMAIL PROTECTED] wrote:

Hi all

Pl Give Suggestions

I am using a Log Servlet to Log the Requests of the Application

here i am using a custom format of the log file for my purpose

Now i want the same servlet to log all the requests of the Tomcat3.2 server

How can i use this servlet to log every request for the server

which files should be changed for this to effect on all requests

Dose any one try this ?





Thanks ina advance
Hari





-
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com




Paul Balanoiu
Bucharest, Romania

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Jsp Parameters [Urgent!]

2002-03-11 Thread Paul Balanoiu

When you say safe you mean:
1. safe from the client that uses the pages, in order not to adjust his rights, for 
example? or
2. safe from the people that might try to steal confidential data from the users of 
your site?

1. In the first case the session is the safest way (because the data is managed on the 
server, no client can directly touch it).
2. Use SSL. It's unsafe even if you make your own socket connections. They :) still 
might get it.
Anyway, using the session you can choose to delete the data at any time (simply 
invalidating the session).
The session's purpose is the use in pages like you described.

Paul


11.03.2002 18:29:39, Nancy Crisostomo Martinez [EMAIL PROTECTED] wrote:

Thank you very much for your answers!

But Gary : ,
 Do you mean the URL parameters is the only way to pass parameters from a jsp
(script code) to another jsp?
 This is because I need to pass the password and username as parameters... Is this
safe?
 I really want to find the safest way to pass them..


And Peter : ,
   I said I don't want to use the session object because I don't know if it is
safe. Do I have to use it?, is it safe?



Thank you again!




Gary Noone wrote:

 Nancy--

 Rough code:

 In Valida.jsp)
 script
 openWindow(Portal.jsp? + paramA + = + valueA);
 /script

 In Portal.jsp:

 % String value = request.getParameter(paramA); %

 script
 leftframe.location.href = windowContent.jsp?param=%= value %
 /script

 Apologies for small mistakes in the code -- but you should get the general
 idea. Drop me a line if this does not help.

 Gary

 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Nancy Crisóstomo
 Sent: 11 March 2002 15:30
 To: [EMAIL PROTECTED]
 Subject: Jsp Parameters [Urgent!]

 Hi everybody!
 Please I need help,...

   This is not a Tomcat question, but I know here I can find some JSP
   experts:

   Could you tell me all the ways I could send (safe) parameters from a jsp
   to a jsp file? Please discard the url parameters and the Session object...

   I have a jsp (Valida.jsp) which opens a new navigator window (javascript),
 and that new navigator window contents another jsp
   (Portal.jsp).  I need to send some parameters from Valida.jsp to
 Portal.jsp. In fact the second Jsp is formed by frames and one of the
   frames has a jsp (Left.jsp) that needs those parameters...

   Could you please help me? Give some hints or examples...  I really need
   your help.. Or if you couldn't, please tell me where I can find that
 information

   Thank you very much..
   Nancy.

 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com




Paul Balanoiu
Bucharest, Romania

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com