This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes pdf & rtf export options are not coming on jsp using displaytag table. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "pdf & rtf export options are not coming on jsp using displaytag table." Watch "pdf & rtf export options are not coming on jsp using displaytag table." New topic
Author

pdf & rtf export options are not coming on jsp using displaytag table.

Vikas Aricent
Greenhorn

Joined: May 17, 2011
Posts: 2
hi friends,
my question might sounds funny..but i am getting mad with following problem:
Actually i am using displaytag table with jsp and also using the export property to convert the table into pdf and rtf. the day before today, it was working fine..mean i was able to export the data into pdf and rtf. but today...pdf and rtf export options are not appearing in jsp. When i tried to export it into csv,excel and xml..it's working fine.
I am attaching my displaytag.properties file. And please let me know...i have got stuck due to this strange behavior. And one more thing i have also added the filter in web.xml like this:


<filter>
<filter-name>ResponseOverrideFilter</filter-name>
<filter-class>org.displaytag.filter.ResponseOverrideFilter</filter-class>
</filter>


<filter-mapping>
<filter-name>ResponseOverrideFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>ResponseOverrideFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>

<filter-mapping>
<filter-name>ResponseOverrideFilter</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>
following is my displaytag.properties


#sort.behavior=list
#sort.amount=list
basic.empty.showtable=true
#basic.msg.empty_list=No results matched your criteria.
paging.banner.placement=bottom
#paging.banner.onepage=<span class="pagelinks"></span>
export.types=csv excel xml pdf rtf
#export.decorated=false
#export.amount=list
#export.csv=false
#export.excel=false
#export.xml=false
export.pdf=true
export.rtf=true
export.excel.class=org.displaytag.export.excel.DefaultHssfExportView
export.pdf.class=org.displaytag.export.DefaultPdfExportView
export.rtf.class=org.displaytag.export.DefaultRtfExportView
#export.pdf.label=pdf
export.pdf.include_header=true
export.pdf.filename=ProjectReport
locale.provider=org.displaytag.localization.I18nStrutsAdapter
# if set, file is downloaded instead of opened in the browser window
#export.[mymedia].filename=




so friends pl let me know about this

Thanks
Vikas



 
wood burning stoves
 
subject: pdf & rtf export options are not coming on jsp using displaytag table.
 
Similar Threads
Issue with DisplayTag export
Struts2 with Displaytag export option is not working
about display tag
[displaytag 1.1] Problem in exporting csv file
Issues Implementing the displayTag