• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

retrive from table

 
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

reply
    Bookmark Topic Watch Topic
  • New Topic