提交表格中断

时间:2013-01-29 16:35:12

标签: jsp

嗨我正在尝试做一个简单的检查,如果有一个会话,如果没有在我的表单上显示另一个内容,但当我点击提交按钮没有任何反应。

<h1>Online banking</h1>
<% 
     String useremai =  (String)session.getAttribute("email");
    if(useremai!=null)
     {%> 

    Welcome Mr(s). <%=useremai%>                

<%

        }
     else 
     {
            %>
    <form action="index_activate.jsp" method="post" name="myform" id="myform" onSubmit="validateBlanks();return false;">
    E-mail  <input class="input" id="email" name="email" type="text" style="width:120px; text-align:center" value=""/><br><br>


    Password <input class="input" id="password" name="password" type="password" style="width:120px; text-align:center" value=""/><br>

    <div id="tip_login_otp" style="position:absolute; visibility:hidden; margin:-35px 0 0 -35px;">
    <img src="images/tip_login_otp.png" />
    </div>      
    <input id="submit" name="submit" type="image" style="margin: 10px 0 0 20px; float:right" src="images/bt_submit.gif" />   

    <% 
    String email = request.getParameter( "email" );
    session.setAttribute( "email", email );

    String password = request.getParameter( "password" );
    session.setAttribute( "password", password);
    %>      

</form>

0 个答案:

没有答案