Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

retrive from table

 
Deepa Korecherla
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Deepa Korecherla
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic