This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to retrieve the dynamic data from jsp page for print in multiple formats( xls,pdf and doc)?  RSS feed

 
ki dondap
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi There,

I got some data from database and displayed in jsp(in table format).I need to download and open that data ( data which is in jsp table) in specified format( like xls,pdf and doc) and print that.

please help me on this.

Rgards,
Kiran

 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The creation of each of those formats will be a separate process not appropriate for inclusion in a JSP. Your JSP page could provide links pointing to servlets capable of rendering the requested format on request. To avoid multiple database requests, you could create a custom object to hold the table data.

Bill
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!