
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<TITLE>
Hello World
</TITLE>
</HEAD>
<BODY>
<table BORDER=0 CELLSPACING=0 CELLPADDING=0 >
<tr>
<td WIDTH="10" BGCOLOR="#FF0000">&nbsp;</td>
<td BGCOLOR="#FF0000"><b><font face="Arial, Helvetica"><font color="#FFFFFF">
<font size=+1>OracleJSP Web Service Client Demo</font></font></font></b></td>
<td WIDTH="10" BGCOLOR="#FF1010">&nbsp;</td>
<td WIDTH="10" BGCOLOR="#FF2020">&nbsp;</td>
<td WIDTH="10" BGCOLOR="#FF3030">&nbsp;</td>
<td WIDTH="10" BGCOLOR="#FF4040">&nbsp;</td>
<td WIDTH="10" BGCOLOR="#FF6060">&nbsp;</td>
<td WIDTH="10" BGCOLOR="#FF7070">&nbsp;</td>
<td WIDTH="10" BGCOLOR="#FF8080">&nbsp;</td>
<td WIDTH="10" BGCOLOR="#FF9090">&nbsp;</td>
<td WIDTH="10" BGCOLOR="#FFA0A0">&nbsp;</td>
<td WIDTH="10" BGCOLOR="#FFB0B0">&nbsp;</td>
<td WIDTH="10" BGCOLOR="#FFC0C0">&nbsp;</td>
<td WIDTH="10" BGCOLOR="#FFD0D0">&nbsp;</td>
<td WIDTH="10" BGCOLOR="#FFE0E0">&nbsp;</td>
<td WIDTH="10" BGCOLOR="#FFF0F0">&nbsp;</td>
</tr>
</table>
<jsp:usebean id='proxy' scope='page' class='oracle.j2ee.ws_example.proxy.StatefulExampleProxy' />
<jsp:setProperty name="proxy" property="*" />
<%
	String yourName = request.getParameter("name");
  if(yourName == null)
  {
%>

<P>
<B>Description:</B>
<BR>
This example demonstrates use of JSP to develop a Web Service client.
<BR>
This demo uses a stateful Java web service deployed in a Oracle9iAS Containers for J2EE.
<BR>
To build and deploy this web service please refer to <A href="Readme.html">Readme</A> file.

</P>
<BR>
<P>
<B>Usage:</B>
Enter you name and then click submit button. The JSP invoke two methods on the Java web service proxy.
<BR>First method returns a text string and the one returns a counter . 
<BR>If you reload the page or re-submit this form with new information then you 
can see that the counter is maintaining the state properly.
</P>


<form method=POST action=wsclient.jsp>
 What is your Name ? <input type=text name=name>
  <input type=submit value="Submit">
  </form>
<%} 
  else
  {
%>

<P>
Time :<% out.println((new java.util.Date()).toString()); %>
</P>

<%=proxy.helloWorld("<B>" + yourName + "</B>") %>

<BR>
<P> Current Count : 
<B><%=proxy.count()%></B> ... 
<B><%=proxy.count()%></B> ...
</P>
<BR>
Go <A HREF="./wsclient.jsp">back</A> and re-submit information to verify the state of the counter.
<%
  }
%>
<BR>
<BR>

<p><b><font face="Arial, Helvetica"><font color="#FF5050"><font size=-1>Copyright
(c) 2001, 2002, Oracle Corporation. All rights reserved.</font></font></font></b>
</BODY>
</HTML>
