hello world em WebSphere

3

Click here to load reader

description

hello world em WebSphere

Transcript of hello world em WebSphere

Page 1: hello world em WebSphere

Hello World – para WebSphere Application Server

helloworld.jsp

<html> <head>//Exibe a hora da execução<jsp:useBean id="datetime" class="java.util.Date" />

<title>dw Getting Started with Geronimo</title></head><body><h1>Hello world !</h1>on ${datetime}

</body></html>

Page 2: hello world em WebSphere

2- Web.xml

<?xml version="1.0" encoding="ISO-8859-1"?><web-app 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" version="2.4">

<description> Primeiro exemplo - Hello JSP example </description>

<display-name> Primeiro exemplo - Hello JSP example </display-name>

</web-app>

Page 3: hello world em WebSphere

3- No DOS digitar

1- jar cvf hellojsp.war

2- java - jar bin/deployer.jar --user system --password manager deploy hellojsp.war

3- Deployed hellojsp