Aplicaciones
- Varios
- Programación
- Servidores
- Gestores de Contenido
Ruta: >Programas>Aplicaciones
Para crear o modificar una variable de entorno en Windows XP seleccionar: Inicio/Propiedades del sistema/Opciones avanzadas/Variables de entorno y alli editar la variable correspondiente
La variable de entorno CATALINA_HOME se tiene que asignar la dirección donde se ha instalado Tomcat, ej1.: Nombre de variable: CATALINA_HOME
Valor de variable: F:\Programacion\Java\tomcat-5.0\
Ej2:La variable de entorno CATALINA_OPTS hay que definirla como sigue, para cambiar la codificación de la maquina virtual java a la codificación ISO-8859-1,
Nombre de variable: CATALINA_OPTS
Valor de variable: -Dfile.encoding=ISO-8859-1
IMPORTANTE: Tomcat ejecutandose en Windows XP, no toma el directorio de la variable de entorno CATALINA_HOME, sino del Registro de Windows. Ver con regedit.exe y buscar: Tomcat, en
HKEY_LOCALMACHINE/SOFTWARE/Apache Software Fundation/Tomcat/5.0/InstallPath está el valor:
F:\Programacion\Java\Apache Software Foundation\Tomcat 5.0
Los parámetros del servicio Tomcat están en el Registro, en la entrada: Tomcat Service Manager. Alguno de estos valores se pueden modificar con el Administrador de Tomcat. Tambien se pueden ver seleccionando el panel de servicios de Windows.
Aplicaciones Web orientadas a la Presentación: Generan páginas Web dinámicas en varios lenguajes de marcas (HTML, XML, etc.) como respuesta a una petición. Se suelen implantar en páginas JSP.
Aplicaciones orientadas al Servicio: Implementa los servicios de bajo nivel. Estas aplicaciones son invocadas a menudo por las Aplicaciones Web orientadas a la Presentación. Se suelen implantar con servlet.
Los Componentes Web en Java suministran las capacidades de extensión dinámica a un servidor Web
Las paginas JSP y los Java Servlets se pueden usar indistintamente
<html> <head> <title>JDC Registration Page (Servlet GET")</title> </head> <body> <h1>JDC Registration Page (Servlet Version)</h1> <h2>method="GET"</h2> <form method="GET" action=/servlet/JdcExample02" <PRE> First Name: <input type="text" name="firstname"> Last Name: <input type="text" name="lastname"> <input type="submit"> <input type="reset"> </PRE> </form> </body> </html>
import java.io.*; import java.servlet.*; import java.servlet.http.*; import sun.server.http.*; import sun.misc.*; import java.util.*; public class JdcExample02 extends HttpServlet { // //Initialize the servlet and set the html pages. Also //@param stub Arguments passed by the servlet loader //@return void // public void init ( ServletConfig config) throws ServletException { super.init(config); } // // Write to servlet response file. // @param request The servlet request. // @param response The servlet response. // @return void. // public void service (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { Enumeration names = request.getParameterNames(); PrintStream out = new PrintStream ( response.getOutputStream()); response.setContentType ("text/html"); out.println("<title>Welcome to the JDC ( Servlet Version) </title>"); out.println("<h1>Welcome to the JDC ( Servlet Version)</h1>"); out.println("<h2>Debug Info</h2>"); // // Iterate over all key-value pairs from form and print // while ( names.hasMoreElements() ) { String key, value; key = (String)names.nextElement(); value = request.getParameter (key); out.println("key: " + key + " value: " + value); out.println("<br>"); } // // Retrieve key-value pairs by key lookup // String firstname = request.getParameter ( "firstname"); String lastname = request.getParameter ("lastname"); out.println("<h2>Greetings</h2>"); out.println("<br>"); out.println("Hello " + firstname + " " + lastname + "."); out.println("Welcome to the JDC."); out.close(); } }
Items | IIS | Tomcat | Comentarios |
Directorio Instalación | W:\Inetpub | F:\Programacion\Java\Apache Software Foundation\Tomcat 5.0 | Ver en registro del sistema InstallPath |
Directorio raiz | W:\Inepub\wwwroot\WebTIC | F:\Programacion\Java\Apache Software Foundation\Tomcat 5.0\webapps\ROOT | No se puede cambiar la ruta del ejecutable del servicio aunque se cambie el registro del sistema. Jakarta Isapi Redirectory Server Root |
Directorio de Administración | |||
Acceso a página home | 127.16.0.1 | http://127.16.0.1:8080/ | |
Acceso a página home de administración | 127.0.0.1:6465 | http://127.16.0.1:8080/admin | |
Páginas servidas | htm, xml, asp | htm, ,xml, jsp, servlet | |
Página generada automáticamente desde la Base de Datos: Aplicaciones/ el 14/4/2008 9:55:41