facebook

[Closed] Error show line number only JSP tag but not JSTL

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #238347 Reply

    ShiRaTo
    Member

    Hi, I’ve a question about error that show when we code wrong

    look at my picture, you’ll see that if it’s JSP tag ( <jsp:useBean id=”test” scope=”pages” class=test.Test”></jsp:useBean> ) the scope is wrong “pages” should be page
    the error show is correct

    but when i code <c:if test=”${true}” scope=”pages” var=”x”></c:if> the scope is wrong too. but myeclipse cannot show line number of error and don’t have auto complete in scope attribute while JSP tag has auto complete in scope attribute

    Did I setup something wrong?? I’ve already add JSTL library in my project.

    Thanks in advance.

    #238369 Reply

    Riyad Kalla
    Member

    I believe the JSTL libs use different names, try “page”

    #238392 Reply

    ShiRaTo
    Member

    @support-rkalla wrote:

    I believe the JSTL libs use different names, try “page”

    yes, the correct name is “page”.
    but I mean the line number of error that show is line 1. It should be the line number that contain “pages” name, isn’t it?
    and it show this error message “NOTE: No JSP line number was avaliable so line 1 was used for the marker”

    so, did I set up something wrong.. because MyEclipse cannot show JSLT line number that error occur but it can show error for JSP tag

    Thanks

    #238395 Reply

    Riyad Kalla
    Member

    Oh no you didn’t setup anything wrong, we validate (compile) the page with Jasper2 and Javac, the problem is that Javac isn’t reporting a line number for us with an error on it correctly so we can’t map it to anything in the source file.

    #238423 Reply

    ShiRaTo
    Member

    ok i get it.. Thank you very much

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: [Closed] Error show line number only JSP tag but not JSTL

You must be logged in to post in the forum log in