Skip to content

Commit bf2d9ea

Browse files
Hola Mundo JSF
1 parent 919f39d commit bf2d9ea

File tree

3 files changed

+36
-8
lines changed

3 files changed

+36
-8
lines changed
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<configuration status="INFO">
33
<Appenders>
4-
<console name='Console' target="SYSTEM_OUT">
5-
<PatternLayout pattern="%d{HH:mm:ss} "></PatternLayout>
4+
<Console name="Console" target="SYSTEM_OUT">
5+
<PatternLayout pattern="%d{HH:mm:ss} [%t] %-5level %logger{36} -%msg%n"></PatternLayout>
66
</console>
77
</Appenders>
8+
<Loggers>
9+
<Root level="info">
10+
<AppenderRef ref="Console" />
11+
</Root>
12+
</Loggers>
813
</configuration>

HolaMundoJSF/src/main/webapp/WEB-INF/web.xml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,23 @@
22
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
5-
version="4.0">
6-
<session-config>
7-
<session-timeout>
8-
30
9-
</session-timeout>
10-
</session-config>
5+
version="4.0"
6+
metadata-complete="true">
7+
<context-param>
8+
<param-name>javax.faces.PROJECT_STAGE</param-name>
9+
<param-value>Development</param-value>
10+
</context-param>
11+
<servlet>
12+
<servlet-name>Faces Servlet</servlet-name>
13+
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
14+
<load-on-startup>1</load-on-startup>
15+
</servlet>
16+
<servlet-mapping>
17+
<servlet-name>Faces Servlet</servlet-name>
18+
<url-pattern>/faces/*</url-pattern>
19+
</servlet-mapping>
20+
<welcome-file-list>
21+
<welcome-file>faces/index.xhtml</welcome-file>
22+
</welcome-file-list>
23+
1124
</web-app>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html xmlns="http://www.w3.org/1999/xhtml"
3+
xmlns:h="http://java.sun.com/jsf/html">
4+
<head>
5+
<title>Hola Mundo JSF</title>
6+
</head>
7+
<body>
8+
<h:outputLabel value="Hola Mundo desde JSF" />
9+
</body>
10+
</html>

0 commit comments

Comments
 (0)