Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jsp and Hrefs

 
shanthini raman
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a jsp page whic is used to write current details and history details so far.But Now the history is becoming large for some resources it that case so I need to apply a new requirement on top of it.As I need to have a href link for jsp which has to write history details only if they required or resources wish to see their history details.so that I can to improve the performance time of the details page byretrieving only current details and kept the History details as History Link.
Can you please give me some IDea How can I modify the existing page to the expecting page.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34837
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to CodeRanch!

I'm not sure what you mean by "only if they are required". In a nutshell though, you have a link to another URL. Which calls a servlet to get the history and then a JSP to display the history.
 
Wayan Saryada
Ranch Hand
Posts: 105
IntelliJ IDE MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First, you can limit the information of the history details using paging mechanism. Only display some data and allow user the see the next or previous items. Another way is to divide the page into two JSP pages. One for the details which then have a link to another JSP page that display the history. You'll also need to implement the paging here as well.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic