Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts 1 code for file download from database

 
Deepa Siva
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9280
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch.
What have you tried so far?
 
Deepa Siva
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9280
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9280
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic