Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DisplayTag Help

 
kwyap me
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am trying out DisplayTag on a JSP web app. I am using a JSP/Servlet model whereby data is retrieved and serialized at the javabeans and passed to the JSP for display via servlets.

I got an error. At the 1st page, Displaytag shows the results w/o any formatting. What I saw was only black text over a white table. If I were to click on page 2, 3 etc, I would then see correctly the table colors as I wanted it to be.

Pls advice
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are there any actual error messages?
 
kwyap me
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ulf Dittmer:
Are there any actual error messages?



Nope, no error messages in my error logs
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then it's probably the result of a faulty control flow; without seeing the code it's hard to guess at what might be going wrong.
 
alan wamser
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you click on page 2 and 3 and everything displays ok. What happens is you go back to page one after you've clicked on 2 or 3?
 
kwyap me
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by alan wamser:
If you click on page 2 and 3 and everything displays ok. What happens is you go back to page one after you've clicked on 2 or 3?


Hi

Thank you for the patient replies

The app basically contains a JSP as the presentation layer, passing data into the servlet/beans for "Processing" before returning to the JSP a serialized bean model. The displaytag here loads the bean model and lists it out.

After the servlet processes, it navigates to the JSP, displaying page 1. This page 1 is faulty. But if you click page 2,3 etc it would be ok. And if you do click back page 1, it is still displaying fine. Its only the first page that is being displayed after the servlet's processing thats giving problems
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic