3 Replies Latest reply on Dec 2, 2002 8:08 PM by bkoch

    Why I get null always?

    dudoes

      I use Jboss3.0.1RC1/Tomcat4.0.4£¬I have got a strange problem:

      System display "null" on page When a String gotten from DB is empty.

      I hate "null", I can accept a empty String, "",etc.,rathen than a string whose content is "null".

      Weblogic6.1 have not the same problem.

      How can i set System to return a empty String instead of a "null" String? because it destoy my page.

      Must I check every String if it is empty and convert it to a empty String by myself,not to a "null" String automatically by system?


      I need your help.


      thanks

        • 1. Re: Why I get null always?
          anil105

          Hi,
          I have the same problem of "nulls" in JSP.
          This is also a problem with Jetty.
          The problem is,when a null is passed in the request object,it is taken as a String with value "null" & hence the problem.
          It seems there is a problem in the Jasper JSP compiler.
          I also need an urgent solution for this problem.
          Any help is appreciated.
          Anil

          • 2. Re: Why I get null always?
            cabad

            Hello,
            I´ve the same problem deploying an application from weblogic to jboss.
            Do you have solve this problem?
            Thanks

            • 3. Re: Why I get null always?
              bkoch

              same problem here, has anyone figured out a solution to this issue ?