*
The moose likes Other Open Source Projects and the fly likes DisplayTag Help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "DisplayTag Help" Watch "DisplayTag Help" New topic
Author

DisplayTag Help

kwyap me
Greenhorn

Joined: Apr 02, 2005
Posts: 8
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
Marshal

Joined: Mar 22, 2005
Posts: 42364
    
  64
Are there any actual error messages?


Ping & DNS - my free Android networking tools app
kwyap me
Greenhorn

Joined: Apr 02, 2005
Posts: 8
Originally posted by Ulf Dittmer:
Are there any actual error messages?



Nope, no error messages in my error logs
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42364
    
  64
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

Joined: Jan 30, 2006
Posts: 41
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

Joined: Apr 02, 2005
Posts: 8
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: DisplayTag Help