This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes How to display first 2 lines of data on jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to display first 2 lines of data on jsp" Watch "How to display first 2 lines of data on jsp" New topic
Author

How to display first 2 lines of data on jsp

ki dondap
Greenhorn

Joined: Jun 30, 2008
Posts: 6
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.
 
 
subject: How to display first 2 lines of data on jsp