• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

group of test apps


Commit MetaInfo

Revision9d801666378155894156ee23d36b83543bd9e472 (tree)
Zeit2014-01-29 11:59:47
Autorastoria-d <astoria-d@mail...>
Commiterastoria-d

Log Message

hello-beans added

Ändern Zusammenfassung

Diff

--- /dev/null
+++ b/hello-beans/WEB-INF/classes/motoTest/GreeterBean.java
@@ -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
--- /dev/null
+++ b/hello-beans/WEB-INF/web.xml
@@ -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>
--- /dev/null
+++ b/hello-beans/deploy.cmd
@@ -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
--- /dev/null
+++ b/hello-beans/hello-beans.jsp
@@ -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
Binary files /dev/null and b/hello-beans/hello-beans.war differ