How do I make the my login page username field not case-sensitive?

Can anyone tell me how to make my username field not case-sensitive?
This is my code
<html>
<body>
<%@ page import="java.sql.*" %>
<%
String username = request.getParameter("username");
String password = request.getParameter("password");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
Connection login = DriverManager.getConnection("jdbc:odbc:Testing","abc","abc");
Statement stmtLogin = login.createStatement();
String sqlLogin = "SELECT UserName, UserPassword FROM Users WHERE UserName='"+username+"'";
ResultSet rsLogin = stmtLogin.executeQuery(sqlLogin);
while(rsLogin.next())
String suser = rsLogin.getString("UserName");
String spass = rsLogin.getString("UserPassword");
if(username.equals(suser) && password.equals(spass))
HttpSession mysession = request.getSession(true);
mysession.setAttribute("username",request.getParameter("username"));
response.sendRedirect("hello.jsp");
else if(!(username.equals(suser) && password.equals(spass)))
response.sendRedirect("index.jsp?message=Invalid%20Username%20or%20Password");
login.close();
%>
</body>
</html>

if(username.equalsIgnoreCase(suser) && password.equals(spass))Hope this helps!

Similar Messages

  • How can I open the EP login page in the same pop-up window?

    is it possible for me to using / only one window(Browser) pop-up to EP Page(Login or iView...).
    In the firs general html page I create a EP login page link action[eg. "window.open('url', 'target_name')"],
    but always launching new pop-up window(Browser).
    How can I open the EP login page in the only one window(pop-up)?
    Could anybody help me by giving suggestion and codding?
    Thanks,
    jin.

    Hi,
    if you want to redirect the root of portal system (http://portal/) to the login page, edit the
    file and change the body tag as follow:
    \usr\sap\J2E\JC00\j2ee\cluster\server0\apps\sap.com\com.sap.engine.docs.examples\servlet_jsp\_default\root\index.html
    <body onload="location.replace('irj/portal' + document.location.search)"></body>

  • How do I change the my login page (password box) to be in the English language?

    How do I change the my login page (password box) to be in the English language?

     > System Preferences... > Language & Region > change here

  • How do I make the Black in Pages True Black? I make Newspaper ads and they are starting to look anemic.

    How do I make the Black in Pages True Black? I make Newspaper ads and they are starting to look anemic.

    Sorry Eric but that is the wrong specification and will produce a muddy brownish grey with possible registration problems particularly in small type as well as being wasteful on ink.
    drdigest
    Open the Color Picker > click on the color slider tab > click on the color mode patch > choose Black & White > Brightness: 0% (black patch) > drag down to recognisable swatch below
    To label it > click on the color sets tab (3rd tab) > click on the gear > New > Rename the set "DrD's > drag down the swatch from the bar above > Label that 100k > click on any stray swatches and rempve by clicking on the - button below
    These swatches are System wide and available to any application that accesses the Color Picker. Unfortunately Apple has not seen fit to make them easily transferrable or saveable and importable.
    Make the 100k swatch part of your Styles in the Styles Drawer, particularly the text to ensure it is used, you can't spot it on screen and there is no feedback anywhere that it is selected.
    Peter

  • How do you make it print first page first and not the last page first?

    I have a HP Officejet Pro 8600. How do I make the first page print first and not the last page printing first?

    Hi,
    From the application used to print open the print dialog and click Oroperties or Preferences to access the Printing Preferences screen.
    From the Layout tab set Page Order as Back to Front, then the first page will be printed first.
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • How do I make the top sites page store more than 9 sites?

    Firefox allows only 9. I couldn't find customization in about:config

    See also:
    *New Tab Tools: https://addons.mozilla.org/firefox/addon/new-tab-tools/

  • How do you make the dashboard open automatically at login?

    Ok, you know in your dock you can right click on any application icon and it will come up with some options, one of them being "Open at Login." Well, I want to automatically open the dashboard at login, but when I right click on the dashboard icon it does not give that option. How do I make the dashboard open automatically when I log in?

    There is a freeware app called "Dashboard Starter" that will start the DB up when you log-in, or anytime you force quit the Dock.app.
    Search www.macupdate.com for it.
    iSMH

  • How can I make the spry accordion remember the panel open when I refresh the page or jump to a new page?

    How can I make the spry accordion remember the panel open
    when I refresh the page or jump to a new page?
    I am using the accordion feature on all my pages as a
    navigation aid. It has three panels. When you refresh the page the
    panel goes back to the default pane... Is there a way of
    controlling this so that the browser can remember the pane that is
    open (say set a variable, cookie, other?)

    Look for "Set the default open panel" on the following page:
    http://labs.adobe.com/technologies/spry/articles/accordion_overview/index.html
    Keep in mind you would need to change that bit of code on
    every page. The only way to do it more dynamically would be to
    include a custom javascript or PHP/ASP style script in order to
    change the value.

  • Acrobat X Standard Bookmarks - How do I make the Zoom Level action default to "Fit Page" when combining to one pdf?

    Acrobat X Standard Bookmarks - How do I make the Zoom Level action default to "Fit Page"?
    When I combine multiple pdf files into a single binder, Acrobat creates a bookmark for each file.  In the properties for each bookmark, there is an action created to go to the page in the document and has the zoom level at "fit width".  Question is, how do I change this apparent default zoom level to "fit page" when Acrobat creates the bookmarks when combining the pdf files?

    Is there a way to do it in one step instead of individually on each bookmark?  This gets VERY cumbersome when I have upwards of a hundred bookmarks to change.

  • How do I resize the window of pages in the new version? It takes up most of my desktop. I would like to make it tall and narrow, which was possible in the old pages, but I cannot seem to do it in the new version.

    How do I resize the window of pages in the new version? It takes up most of my desktop. I would like to make it tall and narrow, which was possible in the old pages, but I cannot seem to do it in the new version.

    I agree it is a very bad and wasteful design especially for users on small laptop screens.
    You can drag it to whatever shape you want from the bottom left corner.
    Click on the paintbrush to make the Format side panel disappear. However you will need to use that side panel for most formatting.
    Peter

  • How do I make a bookmark or page link go to top of the page?

    How do I make a bookmark or page link go to top of the page instead of the text that had served for the bookmark, such as a title?

    change where and how? Used to be able to do that in Acrobat, seems there used to be a list of links and one could change the action, but can't find that any place now.

  • How can i find the requested portal page in custom login.jsp

    We are using a customized login, logout and change password page built in JSP.
    The wwsso_ls_configuration_info$ has been updated to point to the customized
    JSP pages. Everything works fine so far but we would like to show different
    content inside the customized login page depending on which portal page that
    was requested.
    eg suppose the user requested a page that belong to page group X we want to
    show login page with html content relevant to page group X. If page group Y is
    requested, then it show relevant information for Y.
    The ssousername, password field and other parameter needed for login page will
    be left to the standard names defined by oracle login requirements.
    For this purpose, we need to find which portal page was requested by user in
    the customized login.jsp( as users tend to bookmark the portal page eg.
    http://domain/portal/page?_pageid=33,30983,33_30985&_dad=portal&_schema=PORTAL)
    Once i know the requested portal page, i can parse the _pageid to get the page group.

    Were you ever able to get this issue resolved? I would be interested in the solution if one was ever found. Thanks.

  • Issue with adding a new value to the Default Login Page

    Hopefully this is an easy one guys, I've added a select list item to the standard login page (P101) to allow the user to select a DOMAIN as well as entering their username and password.
    When the next page is displayed and I try to retrieve the value held in the new field it has been cleared, but the values entered into items
    P101_USERNAME and P101_PASSWORD are still present.
    I can't figure out why the values held in items P101_USERNAME and P101_PASSWORD are still present but P101_DOMAIN has been cleared.
    I've tried creating a value on page zero and writing the domain value to it using pl/sql and javascript but as soon as the next page is requested the value is cleared.
    Any Ideas how to get around this????
    Thanks in advance

    I suppose your login page contains a process like this:
    BEGIN
       wwv_flow_custom_auth_std.login (p_uname           => v ('P101_USERNAME'),
                                       p_password        => :p101_password,
                                       p_session_id      => v ('APP_SESSION'),
                                       p_flow_page       => :app_id || ':1'
       :t_random_number := :p101_random_number; /* this is something I added to my code */
    END;Now, if you go to this page:
    http://apex.oracle.com/pls/otn/f?p=31517:1
    please note the random number assigned to you. Once you login, the same number will appear on the page 1 (near to the top).
    So, that is how you could solve your problem.
       :t_random_numberis an application item.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • I am frustrated with how my cursor jumps around while typing.  How can I make the arrow follow the cursor so this doesn't happen?

    Macbook Pro with OSX Yosemite:  I am frustrated that when using Word for Mac, the cursor keeps jumping around all over the page.  How can I make the pointer follow the cursor so this stops?

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • How do I set the default welcome page for PUBLIC user

    gurus,
    i'm using -
    Oracle 9i Database
    Oracle 9ias Portal Release 2
    QUESTION => how do I set the default welcome page for the PUBLIC user.
    i did the following to achieve this -
    1. logged into portal
    2. clicked on builder
    3. clicked on administer tab
    4. selected PUBLIC user in the Portal User Profile portlet
    5. went to the preferences tab
    6. in the default home page selected a custom page group
    7. logged out of portal
    8. open a new browsere session
    9. type the portal URL and i get the login page ....??
    i'm unable to understand this behavior ... shouldn't i be getting the page group that i set for the PUBLIC user in step 6 above ....
    the second QUESTION is => when the user logs out he/she should see the PUBLIC page set in step 6 above ... but, instead the user sees a page that is as follows -
    Partner Application Name Logout Status [Logout Status]
    Oracle Portal (portal) logout status
    The SSO Server (orasso) checkmark
    buzz.resva.trw.com:7778 checkmark
    infrastructure.happy.resva.trw.com checkmark
    portal1.buzz.resva.trw.com checkmark
    portal2.sylvester.resva.trw.com checkmark
    sylvester.resva.trw.com:7778 checkmark
    so, how can i set the default page for the PUBLIC user and also a page when he user logs out.
    ideas anyone ....?
    thanx a bunch.
    hero

    Hi,
    The sequence of operation you are doing to set the home page for public users is correct. You are getting the login screen as the "custom page group" selected as "home page" has not been granted to public.
    Also, while logging-out, it is normal behaviour to get the screen where it shows the list of partner applications from where user has been logged-out. When you click on "Return" button, you will get to the "home page" set above.
    Hope it clarifies the things.
    Regards,
    Ved

Maybe you are looking for

  • Concatenating the data from a single field

    hello! I wanted to concatenate all the data in a field field is like this: FIELD1 sample1 sample2 sample3 sample4 Output is like this: sample1, sample2, sample3, sample4 how do i code this? thanks!

  • Black Magic Intensity Pro Play only Audio when edit in CS 5.5

    Hi i have an problem, when i try to edit with Black Magic Intensity Pro in premiere CS5.5 i can play only Audio but not Video so i check settings on Premiere and control panel for Black Magic Intensity and everything is OK and i check connections the

  • Switch statement doubts

    Hi guys... in the switch statement can i leave the "default: " blank without having any statement to excute ...is that ok? .<code>switch (expression) { case cond1: code_block_1; case cond2: code_block_2; case condn: code_block_n; {color:#ff0000}defau

  • Lion will not load on my macbook. what should i do?

    Lion will not load on my mac book. what should i do?

  • Download stopped and can't download again

    Download stopped and can't download again at 97%. Using Bitcomet HTTP download.. Go to site and wanna download again, after fill the order number and password the page say "Sorry, You tried to download too many times."