• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

struts 1 code for file download from database

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic