wood burning stoves 2.0*
The moose likes Struts and the fly likes Upload The Pdf File On Web Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Upload The Pdf File On Web Server" Watch "Upload The Pdf File On Web Server" New topic
Author

Upload The Pdf File On Web Server

naval kumar
Ranch Hand

Joined: Jul 08, 2012
Posts: 37
Sir, I am using struts framework and want to Upload The file on web Server Through My Application server Java File.

Example:- my Domain is like "http://www.trial.xyz/machine/home.do" and i want to upload from the Application server Java file (Machine.java) to on Web server folder (meter/pdf_file/..).how can i do it?? Please provide me Code or Suggestion. My Application and Web server is different and both have different Ip Address.
Karthik Jayachandran
Ranch Hand

Joined: Feb 18, 2009
Posts: 88

You didnt mention which version of Struts 1 or 2.

Please try this and comeback for any further clarification
naval kumar
Ranch Hand

Joined: Jul 08, 2012
Posts: 37
Struts version 1 . As i was Thinking That I will Give the Path of Web server path location In machine.java File and write the pdf file on that location. But Its not i good strategies to do it . because from this the Most of traffic will be on Network App server then Write The File On web server.
Nam Ha Minh
Ranch Hand

Joined: Oct 31, 2011
Posts: 498

Struts 1.x has been end of line. Why not go with Struts 2?


PM Me If You Want to get Urgent Help on Java Programming
naval kumar
Ranch Hand

Joined: Jul 08, 2012
Posts: 37
because my Application is currently running on struts 1.0 and its live application so it could be very difficult to convert on 2.0
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Upload The Pdf File On Web Server