Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8210641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T10:08:27+00:00 2026-06-07T10:08:27+00:00

In my web application I have to give this line to check whether an

  • 0

In my web application I have to give this line to check whether an object has a field

<c:catch var="itemException">${item.masterOrderId}</c:catch>

However, it seems like when there is an exception thrown, the page works like desired, but when there currency item has a field masterOrderId then the page get a line of ugly output of all the master order id, like this

      7876288237088001859330060608701482416601260870751365393358087099973546544808785323837468560876664746049371087079881351783808767780494694690870295666366152083001

When i try to check the page source, interestingly I cannot find the string. so please let me know anything I can do to find out the trick, so I can do something to avoid of the nasty output.

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T10:08:29+00:00Added an answer on June 7, 2026 at 10:08 am

    Actually, just looking again at your question:

    In my web application I have to give this line to check whether an object has a field

    <c:catch var="itemException">${item.masterOrderId}</c:catch>
    

    If you have this as a line in your JSP, if the c:catch tag isn’t getting an exception, it’s executing the EL tag and printing out the ID to the page. Instead you should catch the ID at the point that it will be used. For example:

    <table>
    <c:forEach var="${item}" items="${items}">
        <c:catch var="itemException">
            <tr>
                <td>${item.a}</td>
                <td>${item.b}</td>
                <td>${item.masterOrderId}</td>
            </tr>
        </c:catch>
    </c:forEach>
    </table>
    

    That way if there is an exception the row gets surpressed, if not the ID gets outputted in an appropriate place.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building a web application and have been told that using object oriented
I have a web application which uses URLs that look like this: http://library.example.com/Register.aspx?query=academic&key=586c70bb-5683-419c-aae9-e596af9ab66a (The
I have developed an web application using Asp.net ( .Net Framework 3.0). In this
I have in my web application a role called Administrator. Users who have this
I have a web application that has some pretty intuitive URLs, so people have
I have a web application that our product owner has stated must respond within
I have one question; In my ASP.NET MVC web application have to do certain
In my web application I have taken a ajax calendar in that i want
In my web application i have registration form, when user register i want to
in my web application I have a button when I click I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.