• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problems indisplay tag export csv options...

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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=


 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic