- This topic has 5 replies, 2 voices, and was last updated 21 years, 4 months ago by Scott Anderson.
-
AuthorPosts
-
abuhashimMemberHere 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
Scott AndersonParticipantThis 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
abuhashimMemberEclipse Platform
Version: 2.1.1
Build id: 200306271545MyEclipse version 2.5.1
Project
|—-JavaSource
|—-WebRoot
|–index.jsp
|–common
|-many jsps
etcI 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
Scott AndersonParticipantQasim,
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
abuhashimMemberThe 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.
Scott AndersonParticipantTop 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 -
AuthorPosts