Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Download a content in a dynamic web application - help needed

 
Ganapathy Ram
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Currently, I am working in a corporate banking project which involves the use of JSF, Spring WebFlow and some AJAX

Now I need to have a code which enables the user to download the content whatever he clicks to view on the screen

For example, he would have selected Account Settings or Credit Card settings etc.,

The thing is that I need to download it dynamically on the screen if clicked "Download"

All I want is to use a reusable code for downloading as this involves many layers and huge amount of pages to download for

Please help me

Thanks
Ram
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18152
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry. We can help you develop code, but we are not a free software development service. The actual code is something you'll have to develop and research yourself.
 
Ganapathy Ram
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Tim Holloway

I never asked you a code. I said I wanted someone to guide me to develop a resuable code to have it.
Now I have found it out. It is itext jar

By the way, I am overwhelmed by your free response

Thanks
Ganapathy Ram
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18152
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No problem. I think it was just language translation difficulties. If we seem a little sensitive about providing code it comes from cases where people who didn't really know anything about Java got hired as cheap labour and expected us to provide even cheaper (free) labour to do their jobs for them. As long as I can't have free groceries, I can't afford to do much free programming work. Especially since the monsoons are off to an early start this year where I live and I'll be buying a new roof soon.

Since itext gave you what you wanted, I guess that means you needed to be able to produce PDF outputs. Itext is good for that. I also have used fop with Spring. It allows you to prototype PDF reports in XML form instead of Java code.

A common mistake that a lot of people make is that they try to use JSF to output PDFs. JSF is not designed to do that. It wants to output ordinary HTML. You should be able to use Spring WebFlow to do the PDF output, though. We have a very good Spring Forum if you need help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic