|
|
chat server
|
Posted: Feb 17, 2006 2:48 AM
|
|
|
Advertisement
|
hello everyone
my name is D.Ramar
I am creating chat server support
i want to convert <applet> html into jsp file
because i want to get username from first jsp file and second jsp file is <applet> file
here i included my code
first file:
<html> <head> <title>Sixthsense solutions</title> <script> function openWin() { win = window.open("http://localhost:7001/sample/capp.jsp","_blank","height=326,resiza ble=true,status=0,titlebar=yes,toolbar=0,width=500") } </script> </head >
<body bgcolor="#FFFFFF">
<form name="f1"> <table align=center width="519"> <tr> <td width="137"><font color=red> Name </font></td><td width="182"> <input type=text name="uname"></td> <tr> <td width="137"><font color=red>Email </font></td><td width="182"> <input type=text name="eamil"></td> <tr> <td width="137"><font color="red">Category</font></td> <td width="182"><input type=radio name=r1><font color=red>General</font></td> <td width="87"><input type=radio name=r1><font color=red>Sales</font></td> <td width="87"><input type=radio name=r1><font color=red>Technical</font></td> <tr> <td width="137"><font color=red>Initial Question </font></td><td width="182"> <textarea name="message" rows="1" cols="20"></textarea></td> </tr> <td width="137"> <br>
<tr> <td width="137"> <input type="submit" value="Submit" onclick=openWin() name="submit"></td><td width="182"> <input type=reset value="Reset"></td> </tr> </table> </form> </body > </html>
<applet>html file:
<html>
<%
java.lang.String strUserID="";
strUserID = (java.lang.String)request.getParameter("uname"); if(strUserID == null) strUserID = "";
%>
<body> <center>
<OBJECT classid="java:clientapplet7.class" WIDTH = 400 HEIGHT =400 codebase="/WEB-INF/classes/"> <PARAM NAME = "username" VALUE = "<%=strUserID%>"> </OBJECT>
</center> </body> < /html>
could you give me a solution
Yours D.Ramar
|
|