Welcome to Dream.In.Code
Getting Java Help is Easy!

Join 86,392 Java Programmers. There are 1,406 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Java Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

How to Call servlet post method through Applet.

 
Reply to this topicStart new topic

How to Call servlet post method through Applet.

gaurav1980
post 8 May, 2008 - 12:09 AM
Post #1


New D.I.C Head

*
Joined: 7 May, 2008
Posts: 1



Hi All,
I want to call a servlet post method from normal applet.
I tried following code:

URL url = newURL("http://localhost:8080/strutstutorial/basicservlet");
URLConnection con = url.openConnection();


but it calls get method.

can any one help me is there any API so that we can call Post method of servlet from applet.

tanks,
Gaurav
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


1lacca
post 8 May, 2008 - 06:17 AM
Post #2


code.rascal

Group Icon
Joined: 11 Aug, 2005
Posts: 3,192

Here is a simple example
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 5/17/08 05:04AM

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month