Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

retrive from table

 
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
 
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

 
Please enjoy this holographic presentation of our apocalyptic dilemma right after this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic