• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to display first 2 lines of data on jsp

 
ki dondap
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am Retrieving 100 lines of descrption from database to my jsp using struts, but I need to display only first 2 lines of that and rest of the description i need to show only when an image is clicked.

I know how to display rest of the description on the popup page when you click on the image. Please help me how to display only first two lines.

Thanks in advance.

Kiran.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic