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

[485 byte] By [palak_shaha] at [2007-11-26 13:33:48]
# 1
in JSP you have a TAG called <jsp:plugin>Make Use of it....
RahulSharnaa at 2007-7-7 22:14:26 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 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>

drvijayy2k2a at 2007-7-7 22:14:26 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 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
palak_shaha at 2007-7-7 22:14:26 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Use the Apache Jakata Commons HttpClient package to send an HTTP Get Method to the server. http://jakarta.apache.org/commons/httpclient/See the tutorial and examples for information.
tolmanka at 2007-7-7 22:14:26 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 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

RahulSharnaa at 2007-7-7 22:14:26 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...