WebSphere Application Server and WebSphere MQ Family Integration
hello world em WebSphere
Click here to load reader
-
Upload
fabricio-carvalho -
Category
Documents
-
view
236 -
download
0
description
Transcript of 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>
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>
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