Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6759979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:00:52+00:00 2026-05-26T14:00:52+00:00

I used the following code…. <html> <head> <% String loginstatus=request.getParameter(loginstatus); String option=request.getParameter(option); //out.println(option); %>

  • 0

I used the following code….

  <html>
<head>
    <% String loginstatus=request.getParameter("loginstatus");
       String option=request.getParameter("option");
        //out.println(option);
%>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>LOGIN PAGE</title>
    <link href="style/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript">
        function validate(uname,pwd){
            var username,password;
            username=uname.value;
            password=pwd.value;
            if(username=="" && password==""){
                alert("Please enter your username and password");
            }else if(username=="")
                alert("Username filed shouldn't be empty");
            else if(password=="")
                alert("Password filed shouldn't be empty");
            else{
                return true;
            }
            return false;
        }
        function forgetpwdformvalidaton(){
            alert("The Page Under Progress");
            return false;
        }
        function pwd(pwdissue){
            var pwddecision=pwdissue.value;
            //alert(pwddecision);
            window.open('loginpagevalidation.jsp?option='+pwddecision,target="_self");
        }
    </script>
</head>
<body>
    <center>
        <%
           Connection con;

           Statement stmt;

       ResultSet rs;

            System.out.print("Oracle data base connectivity.......");

    try{

                Class.forName("oracle.jdbc.driver.OracleDriver");

                    con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","sfts","sfts");

                    stmt=con.createStatement();

                    System.out.println("Success");

                    session.setAttribute("connection", con);
                    session.setAttribute("statement", stmt);

                    System.out.println("Session keys are ready");
                }
                catch(Exception e)
                {

        System.out.println(e);
                }                     
            %>
        <div id="border">
        <div style="border-bottom:1px solid #DEDEDE; border-left:1px solid #DEDEDE; width:1090px;">
             <div class="heading-bg">SALES FORCE TRACKING SYSTEM</div>
            <div class="main">
                <%if(loginstatus!=null && loginstatus.equals("mismatch")){
                    %><h1 class="errormessage">INVALID USERNAME OR PASSWORD.</h1><%
                }%>
               <form name="loginform" onsubmit="return validate(uname,pwd)" action="loginpagevalidation.jsp">
                        <table name="logintable">
                            <caption>SignIn Here</caption>
                            <tr class="tableevenrow"><td>UserName</td><td><input type="text" name="uname" /></td></tr>
                            <tr><td>Password</td><td><input type="password" name="pwd"/></td></tr>
                            <tr class="tableevenrow"><td></td><td><input type="submit" name="submit" value="SIGNIN"/><input type="reset" onclick="managersigning.html" name="reset" value="RESET"/></td></tr>
                            <tr><td></td><td><a href="signup.jsp"> Click here to SingUp</a></td></tr>
                        </table>
                </form>

                <%if(option==null){%>
                    <input type="radio" name="pwdissue" onclick="pwd(this)" value="forget"/>Forget Password
                    <input type="radio" name="pwdissue" onclick="pwd(this)" value="ChangePassword"/>Reset Password
                    <%}else if(option!=null && option.equals("forgetpwd")){%>
                        <input type="radio" name="pwdissue" checked  value="forget"/>Forget Password
                        <input type="radio" name="pwdissue" onclick="pwd(this)" value="reset"/>Change Password
                        <form onclick="forgetpwdformvalidation()" action="">
                            <table>
                                <tr class="tableevenrow"><td>Enter EmployeeID</td><td><input type="text" name="eid"></td></tr>
                                <tr><td>Enter EmailID</td><td><input type="text" name="mailid"></td></tr>
                                <tr class="tableevenrow"><td></td><td><input type="submit" name="sendmail" value="Reset and send password to me"></td></tr>
                            </table>
                        </form>
                    <%}else if(option!=null && option.equals("resetpwd")){%>
                        <input type="radio" name="pwdissue" onclick="pwd(this)" value="forget"/>Forget Password
                        <input type="radio" name="pwdissue" checked value="reset"/>Change Password
                        <form onsubmit="return resetpwdvalidation()" action="">
                            <table>
                                <tr class="tableevenrow"><td>Enter EmployeeID</td><td><input type="text" name="eid"></td></tr>
                                <tr class=""><td>Enter Old Password</td><td><input type="text" name="oldpwd"></td></tr>
                                <tr class="tableevenrow"><td>Enter New Password</td><td><input type="text" name="newpwd"></td></tr>
                                <tr><td></td><td><input type="submit" name="sendmail" value="Change My Password"></td></tr>
                            </table>
                        </form>
                    <%}%>
            </div>
        </div>
   </center>
</body>
</html>

Output screen for this is:
screenshot

My problem is whenever i click on either of ‘ForgetPassword’ or ‘ResetPassword’ it’s appropriate java script function should be called but instead it is directing to loginvalidation.jsp?
What is this problem…??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T14:00:53+00:00Added an answer on May 26, 2026 at 2:00 pm

    It looks like pwd() is the function you are calling?

    <input type="radio" name="pwdissue" onclick="pwd(this)" value="forget"/>Forget Password

    Which does redirect to loginpagevalidation.jsp

    function pwd(pwdissue){
        var pwddecision=pwdissue.value;
        //alert(pwddecision);
        window.open('loginpagevalidation.jsp?option='+pwddecision,target="_self");
    }
    

    Am I missing something?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have used following code in my c# application string verification_url = @http://site.com/posttest.php?; string
I used the following code to check this--- (the request is my request) NSURLConnection
I used following code, but it displays only 2 digit of ISO country name.
i have used following code to repeat a process creation/close iteratively dim vProcessInfo as
I have used following code to create a simple PDF file. It executes fine
I have used the following code in a number of applications to load .DLL
i have used the following code in .htaccess Options +FollowSymlinks RewriteEngine On RewriteBase /
Eariler I happily used the following code for creating form elements (inside Zend_Form descendant):
In my C# project,I used the following code to access my form outside its
I swear the following code used to work, even in IE7 but now i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.