File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: pdf & rtf export options are not coming on jsp using displaytag table.
 
Similar Threads
about display tag
Issues Implementing the displayTag
Struts2 with Displaytag export option is not working
Issue with DisplayTag export
[displaytag 1.1] Problem in exporting csv file