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

Reply via email to