This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

query regarding present code  RSS feed

 
Jignesh Gohel
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!