aspose file tools*
The moose likes Servlets and the fly likes query regarding present code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "query regarding present code" Watch "query regarding present code" New topic
Author

query regarding present code

Jignesh Gohel
Ranch Hand

Joined: Dec 28, 2004
Posts: 276
hello
here i have a code for file transfer that is written in html.
But i want the same to be in the swing format. this code is for file transfer

HTML:
<form ENCTYPE="multipart/form-data" action="/servlet/FileUpLoad" method="POST">
<input name='upfile' type='file'>
<input type="submit" name="Upload" value="Transfer the file">
</form>

please find out the replica for ENCTYPE in JAVA
Thanks
Jack Kharvi


Regards,
Jignesh

The Art Of Life Is To Know When To Be Useless And When To Be Useful - CHUANG TZU
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

So which is your real name, Jignesh Gohel or Jack Jharvi?

But I am confused as to what exactly you are asking. Are you trying to create a Swing GUI? If it is directly about Swing, we have a great Swing forum that I can move this thread to.

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

If you mean that you are trying to send a file to a servlet app from a swing client, check out http://jakarta.apache.org/commons/httpclient

It contains the needed functionality for sending multipart streams.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: query regarding present code