facebook

Certain JSP pages marked with error "JSP Problem"

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #306880 Reply

    Gerd W. Naschenweng
    Participant

    We have the following code in one of our JSP’s and MyEclipseIDE (8.5M2) shows an error on the 1st line and the section marked in bold below is underlined in MyEclipse as an error (the problems pane shows the issue on line 9 which is the empty line before the jsp:useBean statement):

    
    <%@[b] page errorPage="/jsp/err[/b]or/ErrorPage.jsp"
    import="com.bidorbuy.bobe.enumlistitem.*"
    import="com.bidorbuy.bobe.error.*"
    import="com.bidorbuy.bobe.jspclient.*"
    import="com.bidorbuy.bobe.list.*"
    import="com.bidorbuy.bobe.order.*"
    import="com.bidorbuy.bobe.site.*"%>
    <%@ taglib uri="/bobe.tld" prefix="bobe" %>
    
    <jsp:useBean id="userToken" scope="request" class="com.bidorbuy.bobe.jspclient.JSPUserToken">
        <% userToken.initialise(pageContext); %>
    </jsp:useBean>
    

    Another page with similar code (as below) does not report an error:

    
    <%@ page errorPage="/jsp/error/ErrorPage.jsp"
    import="com.bidorbuy.bobe.error.*"
    import="com.bidorbuy.bobe.enumlistitem.*"
    import="com.bidorbuy.bobe.jspclient.*"
    import="com.bidorbuy.bobe.query.*"
    import="com.bidorbuy.bobe.site.*"
    import="com.bidorbuy.bobe.thumbnail.*"
    import="com.bidorbuy.bobe.trading.*"
    import="com.bidorbuy.bobe.user.*"
    import="java.util.*" %>
    <%@ taglib uri="/bobe.tld" prefix="bobe" %>
    
    <jsp:useBean id="userToken" scope="request" class="com.bidorbuy.bobe.jspclient.JSPUserToken">
        <% userToken.initialise(pageContext); %>
    </jsp:useBean>
    
    #306904 Reply

    support-joy
    Member

    GNaschenweng,

    Are both the files in the same file path? I would recommend you do the following. Right click on the project and click on Refresh. From MyEclipse IDE click on Project > Clean. Next open the erroneous file, right click on the file and from the context menu click on Source > Clean Up, right click again and click on Source > Format. Next right click and click on Quick Fix. Let me know if this resolves your issue.
    If the above doesn’t resolve your issue, open your problems tab. Look for the error reported. Can you attach a screenshot. Also open your .log file located at [your workspace dir]/.metadata/.log and look for any relevant issue logged. If yes, copy and paste the same here.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Certain JSP pages marked with error "JSP Problem"

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