THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Crea un archivo de texto plano en el directorio <app_home>, llámalo HolaMundo.jsp y copia el contenido del siguiente ejemplo.
No Format | ||||||
---|---|---|---|---|---|---|
| ||||||
<html> <head> <jsp:useBean id="fechaTiempo" class="java.util.Date"/> <title> JSP Básico HolaMundo </title> </head> <body bgcolor="#909DB8"> <h1> <font face="tahoma" color="white"> ¡Hola Mundo desde GERONIMO! </font> </h1> <font face="tahoma" color="white">on ${fechaTiempo}</font> </body> </html> |
...
Crea un archivo de texto plano en el directorio <app_home>/WEB-INF llamado geronimo-web.xml y copia el contenido del siguiente ejemplo.
Code Block | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1"> <environment> <moduleId> <groupId>aplicaciones.ejemplo</groupId> <artifactId>ApHolaMundo</artifactId> <version>1.1</version> </moduleId> </environment> <context-root>/hola</context-root> </web-app> |
...
Crea un archivo de texto plano, llamado web.xml, en el directorio <app_home>/WEB-INF y copia el contenido del siguiente ejemplo.
Code Block | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
<?xml version="1.0" encoding="UTF-8"?> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <welcome-file-list> <welcome-file>HolaMundo.jsp</welcome-file> </welcome-file-list> </web-app> |
...