Explain to newbie in JSP how user login works in jsp

I have so far been able to manually do login with resin's web.xml, but I'm supposed to do login for many users and each user has his own private thing that he sees ie. I want login kind of like in hotmail.

This is a schetch of my best effort so far:
<% String user=request.getParameter("user");
      String password=request.getParameter("password");
     if (user==null)
      Tools.displayLogin(); // somehow trace back to this page??
     else {
      String password=request.getParameter("password");
      if (!Tools.checkLogin(user, password)) %>
       <h1>bad login</h1> <%
  <-- display some database stuff for example -->
<form action="entries.jsp">
<input type=submit value="view entries">
<input type=hidden user="<%= user%>">
<input type=hidden password="<%= password%>">
</form>
<form action="queries.jsp">
<input type=submit value="make queries">
<input type=hidden user="<%= user%>">
<input type=hidden password="<%= password%>">
</form>The idea is to keep password and username with every where you go within secure area... how secure is this then that I don't know? Comments and better suggestions are welcome?

Similar Messages

  • WLC 4400 issue on "user login policies" parameter.

    Hi,
    I'm using a Cisco Wireless controller in my company.
    (the model is a AIR-WLC4402-50-K9 in 4.2.207.0 version).
    The WLAN is configured with WPAv2 AES and 802.1X (PEAP MS-CHAPv2) authentication on an external Microsoft IAS server (2003 R2).
    the authentication rely on Active Directory login and password.
    The user authentication works fine and the WLAN too.
    But it's possible for a single user to log on different laptops with the same AD login and password and use the wireless network.
    And it has to be forbiden by  "user login policies" parameter set to 1 on the WLC (in security parameters).
    Does anybody says if it's a known issue and how to solve this problem?
    thanks,
    raphael Paviot.

    Dancampb,
    Many thanks ,  you're right, I have to find the solution on IAS server side.
    In fact, I have also applied these commands on the controller and the max-user login works (in the case of an externan radius server).
    I have seen it in the "message logs".
    (Cisco Controller) config>advanced eap max-login-ignore-identity-response disable
    (Cisco Controller) config> netuser maxuserLogin 1
    But the problem still remain , because the IAS server is not case sensitive for user logins instead of the Wireless Controller.
    For exemple:
    raphaelpaviot login and RaphaelPAVIOT login are:
    -one user for the IAS server.
    -two different users on the WLC.
    cordially.

  • JSP-MySQL user login with username, password and registration

    Hi everyone:
    i need to create a simple jsp client login with username and password. There is also a registration link for those not register yet.
    I m using tomcat and MySQL and have already create a client login with username and password page.(record already in database).
    I m now have no idea on how to create a registration link, ie update the database. please help..the examples i search through google were build by Jboss, strut, ApacheGeronimo which i m not familiar with.
    Is it any "package" or "wizard" available in creating the login and registration page? Most of the webpage has build with user login and registration part, may i know how they "create" them?
    Please help.. Thanks in advance!

    hi,
    You can use tomcat5.5 for this. you can get help from the following link.
    http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html
    If ur registrantion page is RegistrationPage.jsp then u can write it:
    <a href="RegistrationPage.jsp">Registration Page </a">For Registration page u have to use session & for u can search this in javaworld.com site. MAy from this u will get ur solution

  • Custom Help Message Text on user/login.jsp

    Hello,
    I am trying to get some custom text to appear in the help box associated with the user/login.jsp page. I did some digging around in the docs and looked at the includes/helpServer.jsp file. I found the <$WSHOME>/help/html/help/en_US/com/waveset/msgcat/help/user/login-help.html file.
    I replaced this file with our own custom version. I can not get our custom version to load. The old version still continues to load. I cleared out all the cache options I could find in the debug pages, then rebooted the server. Still no luck. Does anyone know how I can change the contents of this help message?
    Thanks,
    Jim

    Here's a solution that works too. Application server is: Tomcat 5.0.28. Identity Manger 7.0 Running on a Windows 2003 server and a SQL Server dbms.
    This is not the ideal solution because upgrades (i.e. new releases from Sun) will over write the changes.
    This example over writes the HELP button content on the End User Menu.
    This approach should work for all App servers however the folder structure will vary.
    1. Stop Tomcat
    2. Clear cache. (i.e. delete the localhost folder and its contents found in C:\tomcat\work\Catalina\localhost).
    3. Create the following folder structure C:\com\waveset\msgcat\help\user
    4. Copy the original html file from: C:\tomcat\webapps\wavex\help\html\help\en_US\com\waveset\msgcat\help\user to C:\com\waveset\msgcat\help\user. In this example main-help.html is the file being copied.
    5. Make your changes to C:\com\waveset\msgcat\help\user\main-help.html
    6. Open C:\tomcat\webapps\wavex\WEB-INF\lib\idm.jar with WinZip and add file C:\com\waveset\msgcat\help\user\main-help.html.
    7. Close WinZip
    7b. If you want you can check your results.
    7c. Open C:\tomcat\webapps\wavex\WEB-INF\lib\idm.jar using WinZip.
    7d. Find main-help.html and open it using your favorite web browser to see if your changes have been included.
    7e. Hope it worked for you.
    8. Start Tomcat
    9. Test Change
    9a. Log into Identity Manger's end user interface.
    9b. Click the HELP button to see your changes.
    Good Luck.

  • How open multiple responsibilities in the same user login session in R12 ?

    Dear All,
    Can anyone help me to know how to open multiple responsibility in the same user login session in R12 ?
    Thanks..
    Edited by: G-oracle on Sep 18, 2011 11:22 AM

    Can anyone help me to know how to open multiple responsibility in the same user login session in R12 ?What do you mean by open multiple responsibilities in the same session? You can only see the menu of one responsibility at a time, so how to do you expect the application to let you see multiple responsibilities/menus in one session?
    You could open another session and this way you can access more than one responsibility at the same time.
    Thanks,
    Hussein

  • How can I filter a Sharepoint 2007 libarry list based on current user login?

    Hi all.
    I would like to know how I can filter a SharePoint library list based on current user login.
    Suppose I have created the followings:
    1) A SharePoint form library containing bunch of uploaded InfoPath form data.
    2) The InfoPath form template contains a promoted text field called "TargetUser" to store user domain login (ex: DOMAIN\JOE) and every InfoPath form file in the library has a valid domain name stored in the "TargetUser" field.
    I have created a custom view for the form library and would like to filter this view so only items whose "TargetUser" field matches current user's login ID are displayed.
    I went to Edit View page to customize the view and tried to use the [Me] function but I got a "Filter value is not a valid text string" message instead when clicking OK. Apparently [Me] returns a Person/Group data type and the filter cannot compare its value
    to that of "TargetUser".
    I tried using text functions (ex: TEXT([Me],"") hoping to extract default string value from [Me]. The filter accepts the parameter without any error but the resulting fitlered list does not display any items at all.
    I have googled this subject for hours but I have not found any solution.
    It would be greatly appreciated if anyone can help me to create a functional filtered list.
    FYI, my SharePoint 2007 installation is just WSS 3.0 + Form Server. I do not have MOSS 2007 (so no MOSS 2007 web parts or web services).
    Thank you.
    Jason

    Here's what I usually do in order to accomplish this.  Ultimately you'll need to have 2 different fields.  There's the one you already have, with DOMAIN\username stored in it.  Then you'll need an additional field as a "person" column type. 
    Call it "TargetPerson" or something.
    Create a sharepoint designer workflow that runs each time an item is created or changed.  One action:
    Set FIELD to VALUE.
    The first FIELD is "TargetPerson", the VALUE is your "TargetUser" field. 
    Once this is done, then the person value is stored in the person field.  This is the field that you can filter by "TargetPerson" is equal to [Me]
    Laura Rogers, MCSE, MCTS
    SharePoint911: SharePoint Consulting
    Blog: http://www.sharepoint911.com/blogs/laura
    Twitter: WonderLaura

  • I had renamed my user login name and assumed that there will be no change in the settings and files. When I login with the new profile name everything is gone. How can I get back all my files and settings?

    I had renamed my user login name and assumed that there will be no change in the settings and files. When I login with the new profile name everything is gone. How can I get back all my files and settings? Please help. Thanks.

    You should have asked this before you tried: Changing username or short name- User Account and Short Name- OS X- How to change user account name or home directory name.

  • How to change the Default login script and the USER login script in Netware3.12

    I need to cut down the disk map from Neware 3.12 in Win98 client's PC.
    please tell me
    how to change the Default login script and the USER login script in
    Netware3.12 ?
    Or is there any other ways to do this thing?
    Thanks a lot!

    On 4/6/2006 [email protected] wrote:
    > how to change the Default login script and the USER login script in
    > Netware3.12 ?
    Please repost in the discontinued.forums.
    Edison Ortiz
    Novell Product Support Forum SysOp
    (No Email Support, Thanks !)

  • How can  I  restrain the user login portal once, in the same time ???

    Hi
    I need to restrain the user can't repeat to login portal ....
    to reduce portal loading
    How can I restrain the user login portal once, in the same time???
    Which attributs in Identity Manager or amconsole I can do it to restrain the user ??
    tks

    Does your portal support anonymous access? If so, make sure you are using the authlessanonymous mode. This mode only creates one session that is shared for all anonymous users. This is much more efficient than anonymous access, which creates a session for each anonymous user.
    I have no other recommendation for limiting users to a single login. In general, web applications do not behave like this. What if a user closes their browser without logging out? Does the user have to wait until the session times out in order to log back in again?
    The same thing is true for users that are mobile. If a user leaves their office without logging out and then attempts to log in with a laptop in the conference room, then access will be denied in your implementation. Users do not expect this type of limitation being built into the system.
    If you are having problems scaling, then you need to look at your architecture and perhaps add some more resources. Also, make sure you are making efficient use of the authlessanonymous access mode as stated above.
    - Jim

  • How to  restrain the user login portal once, in the same time??

    Hi
    I need to restrain the user can't repeat to login portal ....
    to reduce portal loading
    How can I restrain the user login portal once, in the same time???
    Which attributs in Identity Manager or amconsole I can do it to restrain the user ??
    tks

    Does your portal support anonymous access? If so, make sure you are using the authlessanonymous mode. This mode only creates one session that is shared for all anonymous users. This is much more efficient than anonymous access, which creates a session for each anonymous user.
    I have no other recommendation for limiting users to a single login. In general, web applications do not behave like this. What if a user closes their browser without logging out? Does the user have to wait until the session times out in order to log back in again?
    The same thing is true for users that are mobile. If a user leaves their office without logging out and then attempts to log in with a laptop in the conference room, then access will be denied in your implementation. Users do not expect this type of limitation being built into the system.
    If you are having problems scaling, then you need to look at your architecture and perhaps add some more resources. Also, make sure you are making efficient use of the authlessanonymous access mode as stated above.
    - Jim

  • How do I add Another "User" login to my wife's Mac Book Pro?

    How do I add Another "User" login to my wife's Mac Book Pro?

    System Preferences>Accounts. Unclick the lock and add away.

  • In fnd_request.add_layout how to get the layout in user login language

    Hi All,
    I am using fnd_requet.add_layout
    function add_layout (template_appl_name in varchar2,
    template_code in varchar2,
    template_language in varchar2,
    template_territory in varchar2,
    output_format in varchar2,
              nls_language in varchar2 default null) return boolean;
    how to pass these template_language and template_territory to get the output in user login language.
    Thanks in advance
    Jana

    You can get the values from NLS_SESSION_PARAMETERS
    Query for language
    SELECT LOWER(FL.iso_language)
    FROM NLS_SESSION_PARAMETERS NSP
    ,fnd_languages FL
    WHERE NSP.parameter = 'NLS_LANGUAGE'
    AND NSP.value = FL.nls_language;
    Regards
    Nishka

  • How difficult to create a user login area, and where to start?

    I have a website which I created in Microsoft Expression Web 4. I would like to add a user login area and tie it to an existing SQL database which is updated frequently. I am not sure where to start or how likely I am to succeed. It is for a client's
    website, so I am willing (and hopefully able) to learn, but do not want it to turn into a long drawn out project.
    I can code in html and css and use java scripts. I don't know visual basic or how to work within the database (it will be provided by the client). I'm open to any advice on how easy or difficult this will be without other forms of coding knowledge, and would
    love any advice on the best place to start.  I have found some tutorials and downloaded MS Visual Studio Express 2013, since it was coming up as the best program for this. 
    Thank you for any advice!

    You want to create a login in SQL? any way you need one to access the database. You may need to contact your DBA to do it as you maynot be authorized to do it. Use below link to know creating SQL logins/Users.
    http://www.blackthornesw.com/robo/projects/blackthornepro/HOWTO_-_Creating_a_SQL_Server_Database_Login_Account.htm
    Thanks
    Swapna

  • How to determine Organizational Data based on User Login

    Dear all,
    How to determine organizational data based on user login in Activity transaction, currently org determination is happening after entering customer number in the transaction.
    We have used 'Responsibility' determination rule for this configuration. Now the requirement is to determine org data based on user login.
    In Org model we have assigned user to org data through a business partner. But still org data is not getting determined in the transaction.
    Please help me to trace out the problem.. your suggestions will be highly appreciated.
    Best regards
    Raghu ram

    You just have to use other organization determination rule. In your case this would be rule 10000194 (ORGMAN_12). This determination rule delivers the responsible organizational unit of the user
    User is defined as a business partner in the container attribute 'PARTNER'. If not, the system user (sy-uname) is used.
    So you have to do the following:
    - use this determination rule
    - in BP link username with employee
    - assign in PPOMA_CRM employee or user to organizational unit
    This should solve your problem.

  • # How to get the system AD Domain user login name in portal?

    when a system user use AD Domain method login the system.
    and then the user open the portal web application page, but not use AD Domain name login in portal page, that time ,I want to catch the user system login name show in portal page?
    I hava try the sereval method with Java or Jsp, or User Cookies ActiveX pulg,I get only the name of the portal hostname.
    so Anyone will provider me a well method to get the user login name?

    Elobrate more on ur problem

Maybe you are looking for

  • Link to network document - cannot find file

    I have a report which needs to provide links to pdf files on a protected network resource.  Meaning that the user of the Crystal Report does not have native access to the network resource, not even read access.  Is there any way to configure the link

  • CS5 only defining a strip of an image as a pattern

    When I define a pattern from an ordinary colour image there is no problem - the full image is available as a pattern.  But when I try to define an image which is black and white only a strip of the BW image is available as a pattern.  When I add a st

  • Imac not detecting projector through bnc cable

    I can not get the imac to output the resolution needed for the projectors. I need a way to force the imac to output 1280 x 800 to the VGA display. We have numerous locations where this is an issue. We do not have the luxury of running straight VGA ca

  • LSMW/ BAPI method for Document upload (CV01N)

    Hi All, Could you please let me know if it is possible to use LSMW (BAPI method) for creation of document ?(using CV01N) and linking files. If yes, what is the business object for doing the same? I did came across a BAPI "BAPI_DOCUMENT_CREATE2", but

  • How to import engine.security.facade software component in CE 7.1 SP3

    Hi experts, When I used com.sap.security.api.sda, there is a warning that it has deprecated. However, know that engine.security.facade (public part default) in software component ENGFACADE is the new component, I cannot find it in the CE environment.