Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: Compiling JSP into a servlet


Message #1 by Jagdeep Nagdev <jeetu248@y...> on Wed, 29 Aug 2001 06:04:37 -0700 (PDT)
hi buddy
i dont think u have to compile jsp pages
the jsp pages are compiled by the servlet engine of ur application server
the first time the jsp page is called and subsequently when u make changes
to the jsp page.
regards
prashant

Age does not protect you from love. But love, to some extent, protects you
from age. - Jean Moreau

> -----Original Message-----
> From: Jagdeep Nagdev [SMTP:jeetu248@y...]
> Sent: Wednesday, August 29, 2001 6:35 PM
> To: Pro_JavaServer_Pages
> Subject: [pro_jsp] Compiling JSP into a servlet
> 
> I have written the following code for a jsp when i try
> to compile the same it gives me error. Maybe i am not
> using the right command for compiling, can someone pls
> guide me as to what command should i use to get the
> following jsp compiled.
> thanks in advance
> Jagdeep
> 
> <HTML><HEAD><TITLE>JSP THAT PRINTS ALL
> PARAMETERS</TITLE></HEAD>
> <BODY>
> <%@ page import="java.util.Enumeration"%>
> <H2> Print all initialization parameters</H2>
> <UL>
> <%  Enumeration parameters 
> config.getInitParameterNames();
>     while (parameters.hasMoreElements())
>     { 
>        String name = (String)parameters.nextElement();
> %>     <LI> <%=name%> 
> <%=config.getInitParameter(name)%>
> <%  }   %>
> </UL>
> </BODY>
> </HTML>
> 
> 

  Return to Index