{"id":2596,"date":"2018-01-19T14:19:03","date_gmt":"2018-01-19T14:19:03","guid":{"rendered":"http:\/\/codethataint.com\/blog\/?p=2596"},"modified":"2018-01-19T14:36:57","modified_gmt":"2018-01-19T14:36:57","slug":"how-to-debug-in-jsp-page","status":"publish","type":"post","link":"https:\/\/codethataint.com\/blog\/how-to-debug-in-jsp-page\/","title":{"rendered":"How to debug in JSP Page"},"content":{"rendered":"<p>To find the Variables assigned in JSP page use Windows->Show View->Display<\/p>\n<ul>\n<li>In debug perspective: Window -> Show View -> Display<\/li>\n<li>Put a break point in your code<\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<p>Lets have a expression like one below<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\n &lt;c:if test=&quot;${user.isSuccess}&quot;&gt;\r\n .\r\n . \r\n &lt;\/c:if&gt;\r\n<\/pre>\n<p>Now i need to find the value of <strong>user.isSuccess<\/strong> you can run the below code in in <strong>Display<\/strong> to see the values<br \/>\nset in the userObject<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\n_jspx_page_context.findAttribute(&quot;user&quot;) \r\n<\/pre>\n<p>It takes the value from the Page context and displays the values stored in the User Object <\/p>\n<p><em>Note : The pageContext, _jspx_page_context are different variable names used for based on IDE while debugging JSP page.<\/em> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>To find the Variables assigned in JSP page use Windows->Show View->Display In debug perspective: Window -> Show View -> Display Put a break point in your code Lets have a expression like one below &lt;c:if test=&quot;${user.isSuccess}&quot;&gt; . . &lt;\/c:if&gt; Now i need to find the value of user.isSuccess you can run the below code in&hellip; <a href=\"https:\/\/codethataint.com\/blog\/how-to-debug-in-jsp-page\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[181,53],"tags":[],"class_list":["post-2596","post","type-post","status-publish","format-standard","hentry","category-eclipse","category-jsp"],"_links":{"self":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/2596","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/comments?post=2596"}],"version-history":[{"count":2,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/2596\/revisions"}],"predecessor-version":[{"id":2602,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/2596\/revisions\/2602"}],"wp:attachment":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/media?parent=2596"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/categories?post=2596"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/tags?post=2596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}