
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"> <display-name>Belajar Struts2</display-name> <welcome-file-list> <welcome-file>index</welcome-file> </welcome-file-list> <filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter</filter-class> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> </web-app> |
Tag <head>
1 |
<title>Basic Struts 2 Application - Welcome</title> |
Tag <body>
1 |
<h1>Welcome To Struts 2!</h1> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.5//EN" "http://struts.apache.org/dtds/struts-2.5.dtd"> <struts> <constant name="struts.devMode" value="true" /> <package name="basic-struts2" extends="struts-default"> <action name=""> <result>/index.jsp</result> </action> </package> </struts> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<Configuration> <Appenders> <Console name="STDOUT" target="SYSTEM_OUT"> <PatternLayout pattern="%d %-5p [%t] %C{2} (%F:%L) - %m%n"/> </Console> </Appenders> <Loggers> <Logger name="com.opensymphony.xwork2" level="info"/> <Logger name="org.apache.struts2" level="info"/> <Logger name="org.apache.struts2.edit" level="debug"/> <Root level="warn"> <AppenderRef ref="STDOUT"/> </Root> </Loggers> </Configuration> |
Selamat mencoba,
salam berbagi,
wijaksana
Pages: 1 2