-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Muddaser Azeem
Sent: Thursday, April 12, 2001 2:24 AM
To: [EMAIL PROTECTED]
Subject: Re: Question on Redirect and Parameter passing to a jsp page


Thanks for your response.

On Question 1:

Since a.html one of the frame pages so when redirected,  b.jsp sqiushed
inside the frame  What I really want is to have b.jsp completely leaving the
frame pages and pops up a full browser window.

I tried the following
res.sendRedirect("\"http://localhost:8080/jsp/b.jsp\" TARGET==\"_top\""); It
did not work! What is wrong with that?

On Question 2:

I need get both user name and password so that they can be used for database
activity in b.jsp.  If I put the password in the session, can I get separate
user name and password.  Can you give some detail?

Thanks a lot,




********
For question 1 i can't understand that why u need an
other window to be opened.

But the answer of 2nd question is here:
Either u have to put the password in the session as u
r doing for the name or u can pass it by re-writing
the URl and extending the password with it (But its
not secure.)

--- Roland Dong <[EMAIL PROTECTED]> wrote:
> I have  a.html calls login.java(servlet) to check
> user name and password. If
> user/password is true, login.java will redirect to
> b.jsp. My question is
>
> Question 1: If a.html is a frame, how can I open a
> new browser window for
> b.jsp?
> I have tried this:
>
>
res.sendRedirect("\"http://localhost:8080/jsp/b.jsp\"
> TARGET==\"_top\""); It
> did not work!
>
>
> Question 2: In login.java I set the user name  to
> the session object when
> login is successful:
>
> HttpSession session = req.getSession(true);
> session.setAttribute("logon.isDone", Name);
>
> That way, I can use <%=
> session.getValue("logon.isDone")%> to get user name
> in b.jsp. But the question is how do I get password
> passed to b.jsp?
>
> Thanks in advance
>
> Roland
>
>
===========================================================================
> 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://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to