Jsp Parameters [Urgent!]

2002-03-11 Thread Nancy Crisóstomo

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



Re: Jsp Parameters [Urgent!]

2002-03-11 Thread Peter Claesson (EUS)

If you don't want to use the session object, then you could use javascript on the 
client side.
The simpliest form is just to call a function residing in the left.jsp page. Name the 
window you
open and the frame you target and then later when you navigate to the frame (window), 
use the name.

You can make this fancier by creating a javascript message handler. The message 
handler
and message gateway are different javascript objects you create. The message gateway 
object
would reside in a page that doesn't get reloaded. Any other page that gets loaded can 
register
its onw message handler with the message gateway. Using the message gateway/handlers
abstracts the what you want to do to not knowing the implementation details of other 
frames.

I have successfully used this concept in one of out application.

Hope this helps.

/Peter



1. Set the data on the server before the jsp files are downloaded. You don't have to 
use the

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 7:30 AM
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



Re: Jsp Parameters [Urgent!]

2002-03-11 Thread Gary Noone

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



Re: Jsp Parameters [Urgent!]

2002-03-11 Thread Nancy Crisostomo Martinez

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



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



Re: Jsp Parameters [Urgent!]

2002-03-11 Thread Gary Noone

Nancy--

The only way to pass data from Javascript (to my knowledge) is through a URL
or post etc. Maybe variations exist such as using hidden fields on forms
etc -- however, these all revolve around opening a HTML/JSP page with query
/ post data.

If your data already exists in the Java world, then you can simply access
the session data as pointed out by Paul in  his previous post.

Gary


-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Paul Balanoiu
Sent: 11 March 2002 16:40
To: [EMAIL PROTECTED]
Subject: Re: Jsp Parameters [Urgent!]


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

Re: Jsp Parameters [Urgent!]

2002-03-11 Thread Richie Bab A. Boyboy

use window.opener -this is the parent window

Nancy Crisóstomo wrote:



To:   [EMAIL PROTECTED]
cc:
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