jsp

<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>

<%

String path = request.getContextPath();

String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

%>



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

  <head>

    <base href="<%=basePath%>">

    

    <title>My JSP 'addcontidion.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache"> 

<meta http-equiv="cache-control" content="no-cache"> 

<meta http-equiv="expires" content="0">  

  </head>

          

  <body>

 

        <form action="${pageContext.request.contextPath}/servlet/AddConditionServlet" method="post">

            

        <label>Test Case: format(DA02CO00=Y,DA02CO01=Y)</label></br>

        

          <textarea rows="10" cols="150" name="txtcondition" value="">${tpb.getVarStr}</textarea><br>

        

        <label>please add rule</label></br>

              

          <textarea rows="25" cols="150" name="txtmscript" value="">${tpb.layout}</textarea>

        <input type="submit" value="submit" name="submit">



        </form>   





  </body>

</html>

 

<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>

<%

String path = request.getContextPath();

String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

%>



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

  <head>

    <base href="<%=basePath%>">

    

    <title>Code Page</title>

<meta http-equiv="pragma" content="no-cache"> 

<meta http-equiv="cache-control" content="no-cache"> 

<meta http-equiv="expires" content="0">  

  </head>

  

  <body>

      <form action="${pageContext.request.contextPath}/servlet/CodeServlet">

 <center>         

          <label>Add spec text:</label></br>

      

          <textarea rows="35" cols="150" name="testcontext"></textarea><input type="submit" value="submit" id="submit"></br>

      </center>    

      </form>

    

  </body>

</html>

 

你可能感兴趣的:(jsp)