group of test apps
Revisión | 9d801666378155894156ee23d36b83543bd9e472 (tree) |
---|---|
Tiempo | 2014-01-29 11:59:47 |
Autor | astoria-d <astoria-d@mail...> |
Commiter | astoria-d |
hello-beans added
@@ -0,0 +1,7 @@ | ||
1 | +package motoTest; | |
2 | + | |
3 | +public class GreeterBean { | |
4 | + public String sayHello() { | |
5 | + return("Hello, fucking World!!!!!!"); | |
6 | + } | |
7 | +} | |
\ No newline at end of file |
@@ -0,0 +1,8 @@ | ||
1 | +<?xml version="1.0" encoding="ISO-8859-1"?> | |
2 | + | |
3 | +<!DOCTYPE web-app | |
4 | + PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" | |
5 | + "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> | |
6 | + | |
7 | +<web-app> | |
8 | +</web-app> |
@@ -0,0 +1,15 @@ | ||
1 | +@echo off | |
2 | +rem set JAVA_HOME=C:\Program Files\Java\jdk1.7.0_21 | |
3 | +set JAVA_HOME=C:\Users\dmotooka\AppData\jdk-7u45-windows-i586 | |
4 | + | |
5 | +rem set JBossHome=C:\Apps\JBoss\jboss-as-7.1.1.Final | |
6 | +set JBossHome=C:\Users\dmotooka\AppData\jboss-as-7.1.0.Final | |
7 | + | |
8 | +cd WEB-INF\classes\motoTest | |
9 | +"%JAVA_HOME%\bin\javac" *.java | |
10 | + | |
11 | +cd ..\..\.. | |
12 | + | |
13 | +"%JAVA_HOME%\bin\jar.exe" -cvf hello-beans.war *.jsp WEB-INF | |
14 | +copy hello-beans.war "%JBossHome%\standalone\deployments | |
15 | +pause |
@@ -0,0 +1,8 @@ | ||
1 | +<%@ page language="java" %> | |
2 | +<html> | |
3 | + <head><title>Hello Example</title></head> | |
4 | + <body> | |
5 | + <jsp:useBean id="greeter" class="motoTest.GreeterBean" scope="session"/> | |
6 | + <%= greeter.sayHello() %> | |
7 | + </body> | |
8 | +</html> | |
\ No newline at end of file |