Jrun quickly locate compile-time error locations

Source: Internet
Author: User
Tags expression variable
Compile | Error 1 JSP Error Lookup method


1.1 shows the error line number <= 1047 & > 1032


1.1.1 Determines the number of rows (including spaces) before the global variable declaration


Example: main.jsp


<%@ page contenttype= "text/html;charset=gb2312"%>


<%@ page import= "lulusoft.common.*"%>


<%@ page import= "lulusoft.database.*"%>


<%@ page import= "lulusoft.ef2.bcdeliverprocess.*"%>


<%@ page import= "Lulusoft.ef2.instock.CBCInStock"%>


<%@ page import= "lulusoft.web.common.*"%>


<%@ include file= "/web/web/cwebtool.jsp"%>





<%!


the number of rows here is 9


1.1.2 Calculates the number of rows that contain files

The number of rows in the
cwebtool.jsp is 1032 lines


1.1.3 Calculation Expression


x = number of error lines currently displayed + 9–1032


x is the actual error row number in main.jsp


The valid range for the expression is the number of error lines currently displayed <= 1047 & > 1032


1.2 shows the number of error lines >9 & < 260-(1047-1032)


1.2.1 Calculation expression


X = number of error lines currently displayed + (1047-1032)


x is the actual error row number in main.jsp


For example, the last line in the variable declaration section is 260 x is >9 & x<15


1.3 The number of error lines displayed is the number of
from the main program body.

Displays the same number of error rows as the actual error





If the error prompted is a compiled Java generation, locate the relevant Java file in the web-inf/jsp directory and find the error message line for the hint.














Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.