facebook

JSP Errors 2.5.1 GA

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

    abuhashim
    Member

    Here is the content of the page index.jsp

    <%@ page language=”java”%>
    <%@ taglib uri=”/WEB-INF/struts-tiles.tld” prefix=”tiles” %>

    <tiles:insert definition=”wads.start” flush=”true” />

    Here is the error message

    Kind Description Resource In Folder Location
    Error javax/servlet/ServletRequest index.jsp ads/WebRoot line 0

    #197566 Reply

    Scott Anderson
    Participant

    This is really not enough information to even hazard a guess. Please provide the following:
    operating system
    Eclipse version and build id
    MyEclipse version
    Project layout and webroot location
    Did you use the wizard to create the project?
    Did you map the taglibs to URI’s as required by the spec in web.xml?
    Do you have a null errorPage element specified?
    Is this a top-level JSP or an included fragment?

    –Scott
    MyEclipse Support

    #197585 Reply

    abuhashim
    Member

    Eclipse Platform
    Version: 2.1.1
    Build id: 200306271545

    MyEclipse version 2.5.1

    Project
    |—-JavaSource
    |—-WebRoot
    |–index.jsp
    |–common
    |-many jsps
    etc

    I didn’t use the wizard

    I didn’t map taglibs in web.xml, eventhough that is true for all pages and they have no errors

    no errorPage element is specified, eventhough that is true for all and they have no errors

    Top level I guess. The struts tiles framework actually populates this shell with jsps specified in the struts config

    Qasim

    #197594 Reply

    Scott Anderson
    Participant

    Qasim,

    From the layout of your project it appears that your JSP’s etc are not located under your WebRoot. Is that correct? If so, that is the source of your issues. All of your web content needs to be located under the WebRoot at some level.

    –Scott
    MyEclipse Support

    #197595 Reply

    abuhashim
    Member

    The diagram got reformatted. All JSPs are under WebRoot.

    Some directly and some in the common directory under web root.

    BTW evethought these errors are showing it is not stopping the JSP’s from compiling and running correctly. They work just fine.

    #197598 Reply

    Scott Anderson
    Participant

    Top level I guess. The struts tiles framework actually populates this shell with jsps specified in the struts config

    Does it do this by using the ‘include’ mechanism? If so, then your pages won’t be considered to be top-level. Does changing the filename so that it has a fragment suffix (like .jspf) solve the issue when your select Rebuild All JSP’s from the project’s context menu?

    –Scott
    MyEclipse Support

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: JSP Errors 2.5.1 GA

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