Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

How do I send an HTTP form from Java?

Thread view: 
furby - 25 Jan 2006 01:37 GMT
I'm using netbeans to develop a small Java application. It consists of
two fields, that I want to be able to submit to a web page (Therefore
simulating the use of the form that would normally be used. This way I
can do some of the prcessing for my app offline... It makes sense,
really.).

How do I do this? I used to write a lot of apps in Java, but I haven't
done much in the language for a few years now. I'm sure there's a
way....
Chris Smith - 25 Jan 2006 01:41 GMT
> I'm using netbeans to develop a small Java application. It consists of
> two fields, that I want to be able to submit to a web page (Therefore
[quoted text clipped - 5 lines]
> done much in the language for a few years now. I'm sure there's a
> way....

Google "Jakarta Commons HttpClient"
or, use java.net.URL, but your code will be less clear.

Signature

www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation

raavi - 25 Jan 2006 04:54 GMT
Can you explain your problem in detail? actually what do u want ur
project to do? do you want to submit an html form to your servlet?
> > I'm using netbeans to develop a small Java application. It consists of
> > two fields, that I want to be able to submit to a web page (Therefore
[quoted text clipped - 15 lines]
> Chris Smith - Lead Software Developer/Technical Trainer
> MindIQ Corporation
Chris Smith - 25 Jan 2006 06:05 GMT
[top-posting fixed]

> > > I'm using netbeans to develop a small Java application. It consists of
> > > two fields, that I want to be able to submit to a web page (Therefore
> > > simulating the use of the form that would normally be used. This way I
> > > can do some of the prcessing for my app offline... It makes sense,
> > > really.).

> > Google "Jakarta Commons HttpClient"
> > or, use java.net.URL, but your code will be less clear.

> Can you explain your problem in detail? actually what do u want ur
> project to do? do you want to submit an html form to your servlet?

It's not my problem.  It's furby's problem.  Nevertheless, furby was
pretty clear in explaining that this is an application (meaning: not a
servlet) that needs to simulate (meaning: not actually use) an HTML form
submission.

Signature

www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.