aspose file tools*
The moose likes Struts and the fly likes retrive from table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "retrive from table" Watch "retrive from table" New topic
Author

retrive from table

Deepa Korecherla
Ranch Hand

Joined: Jul 14, 2004
Posts: 197
I am using logic:notEmpty tag to display the contents of the table which I'm getting from the database.
but It doesn't work.
what shud I use..if the table is empty (display a msg "no records") else display the table
pls help asap


DKR<br />SCJP1.2,SCWCD1.4,SCBCD1.3,SCJA
Deepa Korecherla
Ranch Hand

Joined: Jul 14, 2004
Posts: 197
now i'm using only logic resent and notPresent

In action class i'm setting the attribute only if object is not null/empty.
now again i've problem..
if I put myobject.equals("null")
It shows the table in my jsp though it don't have any records in it
pls pls pls help
reply if not clear
Deepa Korecherla
Ranch Hand

Joined: Jul 14, 2004
Posts: 197
now i'm using only logic resent and notPresent

In action class i'm setting the attribute only if object is not null/empty.
now again i've problem..
if I put myobject.equals("null")
It shows the table in my jsp though it don't have any records in it
pls pls pls help
reply if not clear
Mark Blackledge
Greenhorn

Joined: Nov 04, 2005
Posts: 5
If "myobject" is a String, you want to be testing it for null like
in your action code.

If you have JSTL you can do this in your JSP

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: retrive from table