wood burning stoves 2.0*
The moose likes Struts and the fly likes problems indisplay tag export csv options... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problems indisplay tag export csv options..." Watch "problems indisplay tag export csv options..." New topic
Author

problems indisplay tag export csv options...

Meenatchi Sundar
Greenhorn

Joined: Jan 31, 2011
Posts: 12
Hi,
Im beginner in struts2.In my jsp page i have written display:table with export option(csv,excel and xml).The problem is that when i click csv export option,all the values are displayed..But the phone field is displayed as 9.8E+10 instead of 9842380115...i have to display as the [phone number(9842380115)I have to fix this issue..can anyone hel[p in solving this issue?is there anything i need to change in displayta.properties or else is there any other options.
Anyway i post this my displaytag.properties below as shown.
#sort.amount=list
#export.amount=list

export.types=csv excel xml [mymedia]

export.excel=true
export.csv=true
export.xml=true

export.excel.class=org.displaytag.export.excel.ExcelHssfView
export.[mymedia]=true

export.[mymedia].class=fully.qualified.class.name

export.[mymedia].label=Click here to try my export
#export.decorated=true
basic.empty.showtable=true
basic.show.header=true

# include header parameter is forwarded to your export view
export.[mymedia].include_header=true
export.csv.include_header=false

# if set, file is downloaded instead of opened in the browser window
export.[mymedia].filename=


 
Consider Paul's rocket mass heater.
 
subject: problems indisplay tag export csv options...