File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Unable to shown uploded file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Unable to shown uploded file" Watch "Unable to shown uploded file" New topic

Unable to shown uploded file

Subhradip Podder
Ranch Hand

Joined: Aug 27, 2007
Posts: 36
Hi all,

I'm successfully uploded file into server & i want to show that uploded file in same JSP page(With using frameset).But problem is i'm unable to show
the uploded file in same jsp, means can't transfer the value to the second frameset in same JSP.Can anybody help me to give some code for this.
Please help me.... without your's help i'm not able forward my project
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
To do this, you will need 2 HTML file and 2 JSPs:
  • One to contain the frameset (frameset.html)
  • One to contain the Upload button (upload.jsp)
  • One to display the result of the upload (results.jsp)
  • One mostly blank html page to use as a place holder for the results frame until you're ready to display data in it (blank.html)
  • Your frameset.html will look something like this:

    In the <html:form> tag of your upload.jsp, specify target="resultsFrame". Then when your action processes the upload file and forwards to the results.jsp, it will be displayed in the resultsFrame.

    Consultant, Sima Solutions
    I agree. Here's the link:
    subject: Unable to shown uploded file
    It's not a secret anymore!