How to pass login name and password

Hi all,
If this question has been asked before, please let me know, and I am sorry for duplicate the question raising.
I want to use the login name and password which are entered from the left frame(topic frame) in the right frame ( the content frame).
I have 3 jsp programs, "A.jsp" is for validate the login (name and password), "B.jsp" contains a form-submit to add the records to a database. "C.jsp" is the actual one which does the updating to the database.
Q1, how can I re-use the login name and password for "B.jsp" and "C.jsp"?
Q2, is there any security problem to do so?
your useful reply will give me a great help.
ths

or try here:
http://forum.java.sun.com/thread.jsp?forum=31&thread=308840
http://forum.java.sun.com/thread.jsp?forum=31&thread=295349

Similar Messages

  • How to pass user name and password in openConnection method ?

    Hi, Exports,
              I am trying to post data from applet to another application which is
              protected by network password.
              How to pass user name and password when I use openConnection method? In java
              doc, this method looks like do not accept these two parameters.
              Thanks
              ----- my code in applet ---------
              URL url = new URL("http://127.0.0.1/xml/index.cfm");
              URLConnection connection = url.openConnection();
              connection.setDoInput(true);
              connection.setDoOutput(true);
              connection.setUseCaches(false);
              connection.setAllowUserInteraction(false);
              DataOutputStream dos = new DataOutputStream(connection.getOutputStream());
              dos.writeBytes("POST " + path + " HTTP/1.0\r\n");
              dos.writeBytes("Referer: http://127.0.0.1/XML/index.cfm\r\n");
              dos.writeBytes("Content-Type:
              multipart/form-data;boundary=---------------------------7d0b414b04\r\n");
              dos.writeBytes("Host: "+host+":"+port+"\r\n");
              dos.writeBytes("Content-Length:" + buff.length()+"\r\n");
              dos.writeBytes("Connection: Keep-Alive\r\n\n");
              dos.writeBytes("-----------------------------7d0b414b04\r\nContent-Dispositi
              on: form-data;name=\"xmlDoc\"\r\n\r\n");
              dos.writeBytes(buff.toString());
              dos.writeBytes("\r\n-----------------------------7d0b414b04--\r\n");
              dos.close();
              

    you need to negotiate Authentication in ur applet code...
              For example:
              If u r using Form based auth u need to send Post a request with j_user_name &
              j_password to the action j_security_check. and when server returns back the
              cookie
              u need to hold it and pass that cookie to the each and every request made to the
              protected application.
              Basically u need to imitate the browser.
              regards
              aseem
              David wrote:
              > Hi, Exports,
              >
              > I am trying to post data from applet to another application which is
              > protected by network password.
              > How to pass user name and password when I use openConnection method? In java
              > doc, this method looks like do not accept these two parameters.
              >
              > Thanks
              >
              > ----- my code in applet ---------
              > URL url = new URL("http://127.0.0.1/xml/index.cfm");
              > URLConnection connection = url.openConnection();
              > connection.setDoInput(true);
              > connection.setDoOutput(true);
              > connection.setUseCaches(false);
              > connection.setAllowUserInteraction(false);
              > DataOutputStream dos = new DataOutputStream(connection.getOutputStream());
              > dos.writeBytes("POST " + path + " HTTP/1.0\r\n");
              > dos.writeBytes("Referer: http://127.0.0.1/XML/index.cfm\r\n");
              > dos.writeBytes("Content-Type:
              > multipart/form-data;boundary=---------------------------7d0b414b04\r\n");
              > dos.writeBytes("Host: "+host+":"+port+"\r\n");
              > dos.writeBytes("Content-Length:" + buff.length()+"\r\n");
              > dos.writeBytes("Connection: Keep-Alive\r\n\n");
              > dos.writeBytes("-----------------------------7d0b414b04\r\nContent-Dispositi
              > on: form-data;name=\"xmlDoc\"\r\n\r\n");
              > dos.writeBytes(buff.toString());
              > dos.writeBytes("\r\n-----------------------------7d0b414b04--\r\n");
              > dos.close();
              >
              > ------------------------------------------
              

  • How do I stop the Key from popping up everytime I log on to a site with login name and password. This pop up is big and annoying and I'm ready to go back to IE than have that thing pop up huge and annoying.

    The pop up that asks if I want to save this login name and password everytime I login to a site. It is huge and annoying as hell. I just want to have an option to stop it. I know it's there, I don't need to be reminded everytime and if I wanted it to remember I would use it. Give me a break.

    For anyone coming in to find this, I located my answer here:
    [Special Applet Attributes|http://java.sun.com/javase/6/docs/technotes/guides/plugin/developer_guide/special_attributes.html#codebase]
    Thanks for reading.
    Sorry for the interruption.

  • How can i delete a saved login name and password from facebook thats on my computer

    im wantin to delete someone that has saved their login name and password on facebook through my computer and i want it off

    See also:
    * http://kb.mozillazine.org/Deleting_autocomplete_entries
    * http://kb.mozillazine.org/Password_Manager

  • SharePoint custom page it is asking login name and password

    Hi Friends,
    I have created custom pages in SharePoint 2013.When ever if I click any custom page it is asking login name and password every time.But for SharePoint admin page it is not asking every time login  name and password.
    How can we fix this issue.It is very urgent.Please can anyone help to fix this issue.
    Thanks,
    Tiru
    Tiru

    Yes Inder is correct.
    http://social.technet.microsoft.com/Forums/office/en-US/0e08f9cb-1939-428d-9194-d21975ef70d3/created-sharepoint-2010-custom-login-pagewindows-authentication-but-it-asks-me-for-credentials?forum=sharepointgeneralprevious
    Use fiddler to check the root cause of the autentication issue.
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • How to validate user name and password in webdynpro.

    Dear All,
    Actually i have created login name and password in view, webdynpro and want to validate the user name and password but  i am not finding proper code to  how to validate user name and password.
    Pl do the needful help.
    Regards.
    Tazeer.
    Moderator Message: There is a seperate forum for WebDynpro. Please ask your question there.
    Edited by: kishan P on Oct 5, 2010 1:08 PM

    Hello, I don´t get you question. User authentication is ready out of the box in webdypro...
    Regards Otto

  • HT5129 i forgot my mobileMe login name and password

    How can I retrieve my mobilMe login name and password ? I forgot them. I guess my login name was an email, but I still don't remember it

    So why is it that if MobleMe is discontinues that I am getting MobileMe error when I try to sync my contacts?  This message comes up that I have 350 contacts that will be deleted.  I don't know how it came to that conclusion but I do not want to delete them.  Click on the ? in the warning box up pops the mobileme signin to continue.  It seems that if MobileMe has been discontinued this type of behavior should also be discontinued.  Maybe that's why people continue to have trouble with trying to access Mobileme... because that is where the Mac system is directing them???   Still haven't solved my sync problem.

  • Windows Login Name and Password

    Hi,
    I am developing an application, which requires the windows login name for greeting and password for validating and granting privileges.
    Could someone please give me the pseudo code for getting the windows login name and password.
    Thanks,
    Mitra.

    I'll try to validate some other parameter instead of
    password. The password will be stored but it will be
    encrypted.Bad Thing (TM). Never store passwords.
    When we are able to get the UserName using
    JavaScript, why can't we get it using Java.I told you how to get it. And what does Javascript have to do with anything? Just because you can drive through a very narrow alley with your bicycle, you should be able to do the same with a truck? Javascript and Java are not related in any way.

  • Help - Login Names and Passwords Disappear

    I recently encountered a problem while using Safari. As I usually do, I accessed a website where I have to enter a login name and password, like this one. When I click "submit" or press "enter" both the name and password simply disappear. I retype the information, and again its gone when I press "enter." This happens on every site that requires a login name and password, including this site. I am using Firefox in order to access this site and post this thread.
    Does anybody have any ideas as to how to fix this? Safari is my preferred browswer.
    torinogiorgio

    Dennis
    Thank you for your reply. I solved my problem. Many sites requiring a login name and password, including Apple Discussions, also require that you allow them to set cookies in your system. I had set Safari Preferences > Security to never accept cookies. Apparently, doing this prevents these websites from accepting any login name or password you enter. Resetting Preferences > Security to accept cookies again allows me to use a login name and password.
    torinogiorgio

  • Config Tool - Login name and password

    Hi,
    When I Launch the Config tool, it normally connect to the database directly without prompting for login name and password. Where does it get login information from and where does it store these information.
    Your help is greatly appreciated.
    Vince

    It always runs on the local machine where you Java stack is installed and connects to the default database schema (Java). You can look at the config.properties file under C:\usr\sap\J2E\JC00\j2ee\configtool for details
    Regards
    Abdul

  • How to suffix user name and password remote pc in shutdown /s command

    Hi,
    We can shutdown a remote pc  using " shutdown /s /m \\ipaddress " command, only if password of remote pc is stored in windows credential  manager.
    But how to  add user name and password when i execute the command for example : when we map a share folder on our pc we use below command with  user name and password
    "net use * \\ipaddress\share password /user:username "
    can we give user name and password of remote pc  while we give shutdown command to turn off  a remote pc (without adding user name and password to windows credentials).
    Thanks in advance..........

    Hello Jayanth kundar,
    Based on my test, I can use the command shutdown /s /m \\10.157.21.77 to shutdown the remote computer when the have the same username and password.
    Do you mean that you want to add user name and password when you want to shutdown the remote computer?
    I can't find a user name and password in Windows Credential Manager, please share us a screenshot.
    Best regards,
    Fangzhou CHEN
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How to change Owner name and password?

    I want to give my iPad to another person.
    How do I change name and password?

    What to do if you sell or give away iPad
    http://support.apple.com/kb/HT5661

  • How to get the login name and password

    Hi,
    I had installed the SAP NW2004s on Windows platform with MaxDB as backend.
    The master user name and password which i used for instllation was
    Username :Administrator
    password:trustno1.
    My SAPSID and DBSID is J2E
    Now i want to login into maxdb
    how should i procedd
    IF i fire the following commnd
    dbmcli -d J2E -u Administrator,trustno1
    i get the follwoing error
    C:\sapdb\programs\bin>dbmcli -d J2E-u Administrator,punadmin
    Error! Connection failed to node (local) for database J2E: ERR_USRFAIL: User aut
    horization failed
    Please help.

    Hi Manoj,
    You are trying to login into database using SAP level user:Administrator. Try login using <sid>adm/SAPService<SID> user or the database user. For more info on MAXDB adminsitration please check:
    <a href="https://websmp230.sap-ag.de/sap(bD1kZSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=846890">MAXDB admin</a>
    Also check OSS note 143412.
    Please award points accordingly.
    Regards.
    Message was edited by:
            Ruchit Khushu

  • Firefox had saved my login name and password for a site, when I changed the password, FF won't ask to save/update it so I have to enter it manually now. How do I get it to prompt me in FF7.01?

    Using FF7.01 on a HP Pavilion dv6775us laptop running Vista Home (updated continuously)
    The site owner changed the rules in order to improve password security so I was required to create a new password. When I did so I was not prompted by FF7.01 to save the new password.
    When I next logged into the site, FF remembered the user name but presented the old (invalid) password. I was forced to manually enter the new password, but again was not prompted to save it to FF.
    I then went into FF Security, viewed the saved passwords and deleted the entry for the site in question. I expected that when I logged into that site the next time I would be asked if I wanted to save the username and password. I wasn't.
    I then exited from FF and relaunched it and again logged into the site in question. I was not prompted to save the username or password.
    How do I force FF to ask for and then save the username and password?

    Thank you for your reply.
    My problem isn't removing my log-in name and password for a site.
    The problem is I already had the log-in name and password saved by FF, but I was required by the site to change the password. FF did not recognize that it had changed and refuses to prompt me to save the new password.
    After several attempts to force the prompt, I deleted the site from the Saved Password list, hoping that the next time I entered my log-in name and password on that site FF would ask if I wanted to save both. That did not happen even after exiting FF and relaunching it.
    So, right now FF will not save my log-in name and password for a site that it used track for me. Given the complexity of the new password, I really do not want to manually enter it every time I use the site.
    Regards.

  • Trying to pass Login username and password from a non-Oracle Form

    I have a form that I am trying to use to pass a login username and password to an Oracle form. The problem is I know Oracle 10g web reports can take login parameters in a URL, but I can't seem to figure out how to encode/hide it and have Oracle read it. I want to be able to hide the username and password (obviously for security) and I also want to be able to pass special characters... does anyone have suggestions? It seems even in Oracle forms there are some issues passing login info because I have built in parameter forms... I have given myself quite a headache either way! We are trying to upgrade from an old, old version of forms and reports and are trying to use as much orginal code as possible. It all works if I pass plain text user name and password... any help would be sooooo appreciated. By the way on the Oracle side I am still pretty much an infant developer... please talk slow and use simple words... ;-p
    Thanks again for any help!
    Va

    ...asking me to enter username and password on a non-secured website, or else thy will destroy my account. Is it legit ?
    It is definitely a scam.  Delete it immediately.
    For more information, see this document:
    Identifying fraudulent "phishing" email

Maybe you are looking for

  • How to embedded oracle report data in email body from forms?

    Hi, I am working on oracle forms and report 10g and i am new to this. I want to knw How to embedded oracle report data in email body ? Regards Shruti

  • 10.6.7 Update and Quadro 4000

    Heads-up - the OSX 10.6.7 update contains bad graphics drivers for the nVidia Quadro 4000 GPU. After using either Software Update or the Combo Updater, Quadro 4000 users will find that they're no longer able to use the 2nd display output on the card,

  • Totally New Beginner

    Hi, Just got a mac G5, Dual; Presonus Firepod, and a VDRUM kit, (which is on the way). although, I'm a former full time musician, that was some 10 years ago, and I' am absolutely new to all this. Decided to join the forum to see what kind of advice I

  • Used Boot Camp to install Ubuntu, now Boot Camp is out of date, want to rid

    A while ago I used Boot Camp to install Ubuntu, but now Boot Camp won't start because I don't have 10.5. How do I delete and restore my Ubuntu portion back to OS X

  • How to find out where sap error messages stored in our system

    How to find out where sap error messages stored in our system.like sometime we will get a error message with message number.whr it will be stored and whch table it is?