You are viewing a plain text version of this content. The canonical link for it is here.
Posted to watchdog-dev@jakarta.apache.org by rl...@apache.org on 2002/01/29 00:52:45 UTC

cvs commit: jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/imports positiveMultipleImport.jsp implicit.jsp implicitImportHttp.jsp implicitImportJsp.jsp implicitImportLang.jsp implicitImportServlet.jsp positiveImport.jsp

rlubke      02/01/28 15:52:45

  Modified:    src/server/jsp-tests/jsp/core_syntax/directives/page/imports
                        implicit.jsp implicitImportHttp.jsp
                        implicitImportJsp.jsp implicitImportLang.jsp
                        implicitImportServlet.jsp positiveImport.jsp
  Added:       src/server/jsp-tests/jsp/core_syntax/directives/page/imports
                        positiveMultipleImport.jsp
  Log:
   - content push from CTS
  
  Revision  Changes    Path
  1.2       +3 -3      jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/imports/implicit.jsp
  
  Index: implicit.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/imports/implicit.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- implicit.jsp	4 Oct 2000 00:04:07 -0000	1.1
  +++ implicit.jsp	28 Jan 2002 23:52:45 -0000	1.2
  @@ -1,9 +1,9 @@
   <html>
   <body>
   <%
  -
  -   out.println(request.getProtocol());
  -
  +  
  +   out.println(request.getProtocol());
  +   
      %>
      </body>
      </html>
  
  
  
  1.2       +25 -27    jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/imports/implicitImportHttp.jsp
  
  Index: implicitImportHttp.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/imports/implicitImportHttp.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- implicitImportHttp.jsp	4 Oct 2000 00:04:07 -0000	1.1
  +++ implicitImportHttp.jsp	28 Jan 2002 23:52:45 -0000	1.2
  @@ -1,28 +1,26 @@
  -<html> 
  -<body> 
  -<% /**	Name: implicitImportJsp 
  -	Description:Use  jsp page directive with language ="java"  
  -		    Do not specify javax.servlet.http in the import attribute 
  -		     That package should be available implicitly.Check  
  -		     for some class. 
  -			     
  -	Result:No error 
  -**/ %>		 
  - 
  -<!-- language =java and we check if implicit  import works--> 
  - 
  -<%@ page language="java"  import ="java.util.*" %> 
  - 
  -<% 
  - 
  -  HttpUtils hu=new HttpUtils(); 
  -  String parse="."+"key1=value1"+"&"+"key2=value2"; 
  -  Hashtable ht=hu.parseQueryString(parse); 
  -     
  -   
  -%> 
  - 
  -<%= ht instanceof java.util.Hashtable %> 
  -   
  -</body> 
  +<html>
  +<body>
  +<% /**	Name: implicitImportJsp
  +	Description: Use jsp page directive with language="java" 
  +		    Do not specify javax.servlet.http in the import attribute
  +		    as it should be available implicitly.  Validate
  +		    that an HttpUtils object can be created.
  +			    
  +	Result:No error
  +**/ %>
  +
  +<!-- language=java and we check if implicit import works -->
  +
  +<%@ page language="java" %>
  +
  +<%
  +
  +  HttpUtils hu = new HttpUtils();
  +    
  +  
  +%>
  +
  +<%= hu instanceof javax.servlet.http.HttpUtils %>
  +
  +</body>
   </html>
  
  
  
  1.2       +26 -27    jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/imports/implicitImportJsp.jsp
  
  Index: implicitImportJsp.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/imports/implicitImportJsp.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- implicitImportJsp.jsp	4 Oct 2000 00:04:07 -0000	1.1
  +++ implicitImportJsp.jsp	28 Jan 2002 23:52:45 -0000	1.2
  @@ -1,27 +1,26 @@
  -<html>
  -<body>
  -<% /**	Name: implicitImportJsp
  -	Description:Use  jsp page directive with language ="java" 
  -		    Do not specify the import attribute.javax.servlet.jsp
  -		     package should be available implicitly.Check 
  -		     for some class.
  -			    
  -	Result:No error
  -**/ %>		
  -
  -
  -<!-- language =java and we check if implicit  import works-->
  -
  -<%@ page language="java"  %>
  -
  -<%
  -
  -   JspFactory jfac=JspFactory.getDefaultFactory();
  -
  - %>
  - 
  - <%= jfac instanceof javax.servlet.jsp.JspFactory %>
  -  
  -  
  - </body>
  - </html>
  \ No newline at end of file
  +<html>
  +<body>
  +<% /**	Name: implicitImportJsp
  +	Description: Use jsp page directive with language="java"
  +                 with no import statement.  Validate that
  +                 javax.servlet.jsp.* was imported implicitly
  +                 by creating an instance of JspFactory.
  +	Result:No error
  +**/ %>
  +
  +
  +<!-- language=java and we check if implicit import works -->
  +
  +<%@ page language="java"  %>
  +
  +<%
  +
  +   JspFactory jfac=JspFactory.getDefaultFactory();
  +
  +%>
  +
  +<%= jfac instanceof javax.servlet.jsp.JspFactory %>
  +
  +
  +</body>
  +</html>
  
  
  
  1.2       +27 -26    jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/imports/implicitImportLang.jsp
  
  Index: implicitImportLang.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/imports/implicitImportLang.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- implicitImportLang.jsp	4 Oct 2000 00:04:07 -0000	1.1
  +++ implicitImportLang.jsp	28 Jan 2002 23:52:45 -0000	1.2
  @@ -1,27 +1,28 @@
  -<html>  
  -<title>implicitImportLang</title>  
  -<body>  
  -<% /**	Name: implicitImportLang  
  -		Description:Use a jsp directive with language ="java"   
  -			    Do not specify the import attribute.Lang package should  
  -			    be available implicitly.Check for some class in   
  -			    Lang.  
  -			      
  -		Result:No error  
  -**/ %>		  
  -<!-- language =java and  check if implicit import works-->  
  -  
  -  
  -  
  -<%    
  -    String str="sun";  
  -     out.println(str);  
  -    Integer i=new Integer(5);  
  -    String x=i.toString();  
  -    out.println(x);  
  -  
  -  
  - %>  
  -   
  -</body>  
  +<html>
  +<title>implicitImportLang</title>
  +<body>
  +<% /**	Name: implicitImportLang
  +		Description: Use a jsp directive with language="java" 
  +			    Do not specify the import attribute.  The java.lang 
  +                package should be available implicitly.  Validate
  +                that a String and Integer object can be created.
  +			    
  +		Result:No error
  +**/ %>
  +<!-- language=java and check if implicit import works -->
  +<%@ page language="java" %>
  +
  +
  +
  +<%  
  +    String str="sun";
  +     out.println(str);
  +    Integer i=new Integer(5);
  +    String x=i.toString();
  +    out.println(x);
  +
  +
  + %>
  +
  +</body>
   </html>
  
  
  
  1.2       +27 -27    jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/imports/implicitImportServlet.jsp
  
  Index: implicitImportServlet.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/imports/implicitImportServlet.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- implicitImportServlet.jsp	4 Oct 2000 00:04:07 -0000	1.1
  +++ implicitImportServlet.jsp	28 Jan 2002 23:52:45 -0000	1.2
  @@ -1,28 +1,28 @@
  -<html> 
  -<body> 
  -<% /**	Name: implicitImportServlet 
  -		Description:Use  jsp page directive with language ="java"  
  -			    Do not specify the import attribute.javax.servlet 
  -			     package should be available implicitly.Check  
  -			     for some class in servlet 
  -			     
  -		Result:No error 
  -**/ %>		 
  - 
  -<!-- language =java and we check if implicit  import works--> 
  - 
  -<%@ page language="java"  %> 
  - 
  -<% 
  - 
  -try{ 
  - 
  - RequestDispatcher rd = getServletConfig().getServletContext().getRequestDispatcher( "/jsp/core_syntax/directives/page/imports/implicit.jsp"); 
  - rd.forward(request, response); 
  - 
  -  }catch(Exception o){o.printStackTrace();} 
  - 
  -%> 
  -</body> 
  -</html>	   
  +<html>
  +<body>
  +<% /**	Name: implicitImportServlet
  +		Description: Use jsp page directive with language="java" 
  +			    Do not specify the import attribute. The javax.servlet
  +			    package should be available implicitly.  Validate
  +                that a RequestDispatch object can be created.
  +			    
  +		Result:No error
  +**/ %>		
  +
  +<!-- language=java and we check if implicit import works -->
  +
  +<%@ page language="java"  %>
  +
  +<%
  +
  +try{
  +
  + RequestDispatcher rd = getServletConfig().getServletContext().getRequestDispatcher( "/jsp/core_syntax/directives/page/imports/implicit.jsp");
  + rd.forward(request, response);
  +
  +  }catch(Exception o){o.printStackTrace();}
  +
  +%>
  +</body>
  +</html>	  
   	  
  
  
  
  1.2       +7 -7      jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/imports/positiveImport.jsp
  
  Index: positiveImport.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/imports/positiveImport.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- positiveImport.jsp	4 Oct 2000 00:04:07 -0000	1.1
  +++ positiveImport.jsp	28 Jan 2002 23:52:45 -0000	1.2
  @@ -2,12 +2,12 @@
   <title>positiveImport</title>
   <body>
   <% /**	Name: positiveImport
  -		Description:Use a jsp directive with language ="java" and a
  -			  valid import attribute. Use the imported package in the
  -			  page. 
  +		Description: Use jsp page directive with language="java" and an
  +			  import attribute of java.util.Properties.  Validate 
  +              that the Properties object can be created.
   		Result:No error
  -**/ %>		
  -<!-- language =java and we import a java package to check if import works-->
  +**/ %>
  +<!-- language=java and we import a java package to check if import works -->
   <%@ page language="java" import="java.util.Properties" %>
   
   <%  Properties props=new Properties(); 
  @@ -15,6 +15,6 @@
       String name=(String)props.getProperty("name");
       out.println(name);
    %>
  - 
  +
   </body>
  -</html>
  \ No newline at end of file
  +</html>
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/imports/positiveMultipleImport.jsp
  
  Index: positiveMultipleImport.jsp
  ===================================================================
  <html>
  <title>positiveMultipleImport</title>
  <body>
  <% /**	Name: positiveMultipleImport
  		Description: Validate the multiple import attributes
                       can be used without causing a fatal translation error.
  		Result:No error
  **/ %>
  <%@ page language="java" import="java.util.Properties" import="java.util.Hashtable" %>
  </body>
  </html>
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>