facebook

jsp error

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

    Parvinder
    Member

    hi 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

    #197509 Reply

    Scott Anderson
    Participant

    According 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

    #197619 Reply

    No Operation
    Member

    Could the error message be a result from your included file?
    I also notice, that error marker locations are sometimes faulty!

    NOP

    #197623 Reply

    Scott Anderson
    Participant

    I 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

    #197646 Reply

    Parvinder
    Member

    I 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

    #197655 Reply

    Scott Anderson
    Participant

    From 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

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: jsp error

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