viewdata.jsp

来自「A brew application taking backup of the 」· JSP 代码 · 共 70 行

JSP
70
字号
<%--     Document   : ViewData    Created on : Jan 14, 2009, 6:21:13 PM    Author     : @n@--%><%@page contentType="text/html" pageEncoding="UTF-8"%><%@page import="MyPackage1.*" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"   "http://www.w3.org/TR/html4/loose.dtd"><html>    <head>        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">        <title>JSP Page</title>    </head>    <body bgcolor="pink"><%       String str = request.getParameter("pinNo");       RestoreLink rl = new RestoreLink();       rl.setSess(request.getSession());       rl.getSess().setAttribute("connection", "");       rl.SelectDate(str);       String finalString =null;       finalString = rl.getMessage();       if (finalString ==null) {           out.print("Enter your Pin No.");       }       else {            String[] temp;            temp =finalString.split(",");%>          <table align="center" bgcolor="light brown" id="dId">            <tr>                <td> Date</td>            </tr>            <%                for ( int i=0; i< temp.length; i++) {%>             <tr>               <td>               <% out.print(temp[i]); %>               </td>               </tr><%        }%>                    </table><%                  }%><form method="post" action="ViewData1.jsp">            <h3> <p align="center"> Mobile Database  </p> </h3>            <br><br>                <table cellspacing="5" cellpadding="5" bgcolor="lightblue" align="center">                    <tr>                        <td>                            Enter Pin No. and Date:                        </td>                        <td>                            <input type="text" id="txt" name="dt">                        </td>                    </tr>                    <tr>                        <td></td>                        <td>                            <input type="submit" value="Submit">                        </td>                    </tr>                                    </table>        </form>    </body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?