The Artima Developer Community
Sponsored Link

Java Answers Forum
chat server

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
ramar duraichamy

Posts: 1
Nickname: sairam
Registered: Feb, 2006

chat server Posted: Feb 17, 2006 2:48 AM
Reply to this message Reply
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

Topic: No Class Test in com.bruceeckel.simpletest? Previous Topic   Next Topic Topic: why do I get this error message?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use