display variable in console for troubleshooting

Posted on 2005-05-12
Last Modified: 2008-03-04
i have a jsp page ( with jstl ) ; i have some veriable which i want to debug(show) in my console
what do i use to display the variables in the console so i troubleshoot the problem


Question by:royalcyber
    LVL 92

    Accepted Solution


    LVL 86

    Assisted Solution

    If you're just debugging, why not just print the variable to the page?
    LVL 3

    Assisted Solution

    also you can log your messages:

    application.log("this is the message.");

    The log file is defined in server.xml  for Tomcat.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Suggested Solutions

    Title # Comments Views Activity
    nested class vs inner class 5 36
    Increment alphanumeric sequence 6 54
    factorial example challenge 10 44
    count8 challlenge 13 67
    Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
    Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
    Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
    Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now