send data from applet to web server
Hi,
I want to send data(event notification) to resource through web server using url.
Like,As long as perticular action or event is occuring I am sending that message to url.
I reffered Sevlet theory uses HTTPMessage,but I am confused how should start and what would be feasible?
Even when I run my code I am not finding browser.How should I place an applet in web server page?
Regards,
Palak
Message was edited by:
palak_shah
# 2
<html>
<body>
<h2>This example show how the plugin tag work</h2>
<jsp:plugin type="applet" code ="sample" height="100" width="100">
<jsp:fallback>our browser cannot display this applet text</jsp:fallback>
</jsp:plugin>
</body>
</html>
# 3
Thanks both of you, Still I am stuck with the things. I want to place my applet in web page and want to send parameters to web server page through url link. But not getting exact method I should follow.Regards,Palak
# 5
Hi
I agree usage of HttpClient is a better and a simple method.
But If your Application Requirements are Simple you may go by using URL & URLconnection Objects in java.net package.
Just to Add In You Can Checkout the links given below to have a better understanding of how the communication works...
The Example APPLET code:
http://mindy.cs.bham.ac.uk/AppletServletExample/EgApplet.java.txt
The Example SERVLET code:
http://mindy.cs.bham.ac.uk/AppletServletExample/EgServlet.java.txt
and the Example AppletDemo Class
http://mindy.cs.bham.ac.uk/AppletServletExample/EgApplet.class
Hope this helps :)
REGARDS,
RaHuL