File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problems indisplay tag export csv options...

 
Meenatchi Sundar
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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=


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic