This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "query regarding present code" Watch "query regarding present code" New topic

query regarding present code

Jignesh Gohel
Ranch Hand

Joined: Dec 28, 2004
Posts: 276
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

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

please find out the replica for ENCTYPE in JAVA
Jack Kharvi


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

Joined: Feb 05, 2001
Posts: 17276

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.



Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Ben Souther

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

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:
subject: query regarding present code
It's not a secret anymore!