• 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

Supressing nulls in jsp

 
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

In Weblogic 8.1 I have seen that there is a provision(in <weblogic-web-app> tag of weblogic.xml) where we can suppress the "null" in jsp. No other null checking is required for that in jsp page.

I want to know whether there is anything similar in jboss 4.0.2 ?
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

where we can suppress the "null" in jsp. No other null checking is required for that in jsp page.



What kind of "null suppressing"?
 
Kousik Majumder
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It may be the following combinations:-

1. var a = null;
2. var a = "";
3. var a = "null";
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is that the real code? Because that looks like (client side) javascript to me. I am still not sure what that kind of feature would be useful for.

Anyway, from what i know, there isn't any such feature available in JBoss.
 
Kousik Majumder
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No. I have just gave you an example.

Actually in Weblogic there is an option by which all the null checking in jsp is done by Weblogic itself. The code is given below.

I want similar thing in Jboss 4.0.2.


 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just googled around to check what weblogic provides. It's not "suppressing" nulls. From the weblogic documentation:

Setting the print-nulls param will:

print-nulls - When set to false, this parameter ensures that expressions with "null" results are printed as " ".



See Ben's reply on a related thread.
 
Kousik Majumder
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes. I want the similar features in Jboss.
Otherwise in the jsp pages when run from Jboss is showing "null" in front end. I have to check all the pages for "null" checking.

If Jboss could have done that for me then it would have been a great help for me.
 
I was her plaything! And so was this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic