File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Jsp and Hrefs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Jsp and Hrefs" Watch "Jsp and Hrefs" New topic

Jsp and Hrefs

shanthini raman

Joined: Aug 19, 2008
Posts: 2
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 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

Joined: May 26, 2003
Posts: 33102

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.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Wayan Saryada
Ranch Hand

Joined: Feb 05, 2004
Posts: 105

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.

Website: Learn Java by Examples
I agree. Here's the link:
subject: Jsp and Hrefs
It's not a secret anymore!