Hi,
  Iam trying Sessions.Pls let me know if this is correct.

<%HttpSession Hsession= request.getSession(true);

<%
Hsession.putValue(slog,Ologin);
Hsession.putValue(spwd,Opassword);

Object Ologin1         = Hsession.getValue("slog");
Object Opassword1      = Hsession.getValue("spwd");

String slog=(String)Ologin1;
String spasswd= (String)Opassword1;
out.println("SESSION VALUE OF LOGIN  IS ,,,,,: "+slog);
out.println("SESSION VALUE OF PASSWORD IS ;;;;;;;;: "+spasswd);
%>

But when I use getVaue(),it returns null.

Thanks,
Raj







>From: Stefan Bushev <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>     reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Encrypt and Decrypt Password
>Date: Tue, 19 Sep 2000 11:09:01 EEST
>
>do you use request.getParameter() to get it's value?
>just like:
>  <input type=hidden name=blah value="Directory Manager">
>  ...
>
>so in the jsp:
>  <%=request.getParameter("blah")%>
>should return:
>  Directory Manager
>
>s.b.
>
>>From: Raj S <[EMAIL PROTECTED]>
>>Reply-To: A mailing list about Java Server Pages specification and
>>     reference <[EMAIL PROTECTED]>
>>To: [EMAIL PROTECTED]
>>Subject: Re: Encrypt and Decrypt Password
>>Date: Mon, 18 Sep 2000 16:49:35 GMT
>>
>>Hi,
>>   Thanks for this.But actually I have to transfer it through an
>><a href > link.Because I have a table displaying vlues from LDAP, and next
>>to each record I have a text written as  "Del".
>>By clicking on it,the user can delete that record.
>>But the value will be visible in the <a href> link which is what I want to
>>avoid.So I wish to encrypt the password and then decrypt it back.
>>
>>One another problem that I am facing,is passign values which have  space
>>in
>>between.Through <a href> it is fine,but when I transfer it through <input
>>type =Hidden> the value after space is removed.
>>
>>Like the name  Directory Manager.
>>In the new JSP I receive only Directory and not Directory Manager
>>
>>Any particular reason for this??
>>
>>>
>>>hi raj..
>>>you may do something like:
>>><form id="myForm" action="some.jsp" method=post>
>>>  <input type=hidden name=password value=something>
>>></form>
>>><a onClick="return myFunct()">blabla</a>
>>>
>>><script language="JavaScript">
>>>  function myFunct() {
>>>    myForm.submit();
>>>  }
>>></script>
>>>
>>>i hope this will help you
>>>
>>>regards,
>>>stefan bushev
>>>
>>>
>>>>From: Raj S <[EMAIL PROTECTED]>
>>>>Reply-To: A mailing list about Java Server Pages specification and
>>>>     reference <[EMAIL PROTECTED]>
>>>>To: [EMAIL PROTECTED]
>>>>Subject: Encrypt and Decrypt Password
>>>>Date: Mon, 18 Sep 2000 01:36:05 GMT
>>>>
>>>>Hi,
>>>>   How can I pass the value of a password without it being visible to
>>>>the
>>>>user on the browser?
>>>>I will be passing it through <a href> link,but the value of the password
>>>>will be visible.
>>>>Is it possible to encrypt while passing and decrypt back to original
>>>>value
>>>>in the othe JSP?
>>>>If someone has written a code in this,it would be really helpful if you
>>>>could share it.
>>>>
>>>>Thanks,
>>>>Raj
>>>>
>>>>_________________________________________________________________________
>>>>Get Your Private, Free E-mail from MSN Hotmail at
>>>>http://www.hotmail.com.
>>>>
>>>>Share information about yourself, create your own public profile at
>>>>http://profiles.msn.com.
>>>>
>>>>===========================================================================
>>>>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>>>>JSP-INTEREST".
>>>>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
>>>
>>>_________________________________________________________________________
>>>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>>>
>>>Share information about yourself, create your own public profile at
>>>http://profiles.msn.com.
>>>
>>>===========================================================================
>>>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>>>JSP-INTEREST".
>>>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
>>
>>_________________________________________________________________________
>>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>>
>>Share information about yourself, create your own public profile at
>>http://profiles.msn.com.
>>
>>===========================================================================
>>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>>JSP-INTEREST".
>>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
>
>_________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>Share information about yourself, create your own public profile at
>http://profiles.msn.com.
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>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

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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