File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes struts 1 code for file download from database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts 1 code for file download from database" Watch "struts 1 code for file download from database" New topic
Author

struts 1 code for file download from database

Deepa Siva
Greenhorn

Joined: May 25, 2014
Posts: 11
Please help me with the code to upload and then download file from database ,on select of month & year from jsp page and then click on download button,i am using procedures for db
please help,i am new to struts
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8895
    
    8

Welcome to the JavaRanch.
What have you tried so far?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Deepa Siva
Greenhorn

Joined: May 25, 2014
Posts: 11
Joe Ess wrote:Welcome to the JavaRanch.
What have you tried so far?


I am getting null while returning


struts config.xml


DBRankUpload.jsp


upload_page.jsp

Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8895
    
    8

I added Code Tags to your post to make it easier to read. Please use them in the future.

I am getting null while returning


Can you narrow that down for us? It's always a good idea to post a stack trace since that has the line number an error occurred on.
It's also a good idea to try to Isolate The Problem before posting several hundred lines of code. You have a lot going on in the code above. The more specific you can make your example code, the more help we can be.
Deepa Siva
Greenhorn

Joined: May 25, 2014
Posts: 11
Joe Ess wrote:I added Code Tags to your post to make it easier to read. Please use them in the future.

I am getting null while returning


Can you narrow that down for us? It's always a good idea to post a stack trace since that has the line number an error occurred on.
It's also a good idea to try to Isolate The Problem before posting several hundred lines of code. You have a lot going on in the code above. The more specific you can make your example code, the more help we can be.



Action Class is returning null pointer exception ,where it should return success
this is my struts config.xml
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8895
    
    8

Again, please use code tags. They make your code easier to read. I have added them to your previous posts.

Deepa Siva wrote:
Action Class is returning null pointer exception ,where it should return success this is my struts config.xml


As I said in my previous post, Can you narrow that down for us? It's always a good idea to post a stack trace since that has the line number an error occurred on.
Spend a few minutes with our FAQ, How To Ask Questions on JavaRanch. The better question you ask, the more help we can be.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts 1 code for file download from database