- This topic has 5 replies, 3 voices, and was last updated 21 years, 6 months ago by Scott Anderson.
-
AuthorPosts
-
ParvinderMemberhi all,
at the following line
<jsp:include page=”NavGraph.jsp” flush=”true”/>
it gives me a error saying
“The method setAttribute(String, Object) in the type ServletRequest is not applicable for the arguments (String, int) Detail.jsp”any idea what is the error regarding ?
thanks
~Parvinder
Scott AndersonParticipantAccording to the JSP 2.0 specification, any file with a .jsp suffix is assumed to be a toplevel jsp page and must compile cleanly, by itself. I’d suggest that you take all your non-toplevel JSP’s and change their suffix to something else, since they won’t be syntactically when interpreted as a toplevel page. The JSP spec recommends the suffix ‘.jspf’ for JSP fragment. However, this is only a recommendation and you may actually use whatever suffix you like for included pages, as llong as it isn’t .jsp.
–Scott
MyEclipse Support
No OperationMemberCould the error message be a result from your included file?
I also notice, that error marker locations are sometimes faulty!NOP
Scott AndersonParticipantI also notice, that error marker locations are sometimes faulty!
We’ve already corrected this issue internally and it will be part of the next service release.
–Scott
MyEclipse Support
ParvinderMemberI tried changing the jsp file and renamed it to .jspf but still the error exists
The same thing works in Netbeans.Any idea what it could be<code>
<BR>
<%for(int i=0;i<detailCompCount;i++)
{
String rendererName = detailBean.getRenderer(i);if(!rendererName.equals(“renderer/TaskRenderer.jsp”))
{</code>
Above is one of the code snippets.It gives the following error at
“<%for…”The method setAttribute(String, Object) in the type ServletRequest is not applicable for the arguments (String, int) Detail.jsp webguiLombo/Web Root/view line 301
thanks
~Parvinder
Scott AndersonParticipantFrom the sounds of the error, it appears to be unrelated to the line being marked. We do have an issue in the 2.5.1 release where sometimes the JSP editor will flag the wrong line for an error. We’ve fixed the problem in our internal builds and it will be part of the next service release. However, I’d expect that your actual problem may lie elsewhere in the file.
Did you create this project in its default location, or outside the workspace?
What is your operating system and version, Eclipse version and build id (Help > About Eclipse Platform), MyEclipse version, and JDK version? Was the Eclipse installation a fresh one or upgraded from a prior version? Does your Eclipse installation have additional plugins installed in it?
–Scott
MyEclipse Support -
AuthorPosts