facebook

jsp:getProperty error [Closed]

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

    Brandon Rife
    Member

    I have a simple jsp that looks similar to the following:


    <jsp:useBean id=”mainBean” class=”package.MainBean”>
    <jsp:setProperty name=”mainBean” property=”basePath” value=”<%=basePath%>” />
    <jsp:setProperty name=”mainBean” property=”clientId” param=”clientId”/>
    <jsp:setProperty name=”mainBean” property=”sessionId” param=”sessionId”/>
    </jsp:useBean>
    <jsp:setProperty name=”mainBean” property=”skinId” param=”skinId”/>
    <jsp:getProperty name=”mainBean” property=”doc”/>

    MyEclipse is stubbornly insisting that “package.MainBean” does not have a getDoc() accessor, which it does. The error messsage is simply “package.getDoc()”, not very helpful but in the past this has meant that the reference property acessor did not exist and I could always set things right by recompiling jsps or the entire project. Even though MyEclipse is flagging the error the project deploys and runs fine under Jetty. I’m using Version: 2.7.1 Build id: 200403241200-2.7.1-GA, Eclipse 2.1.3 on Linux.

    Any ideas?

    Thanks!
    Brandon

    #205424

    No Operation
    Member

    Could you please post the method declaration?
    And are there more methods named getDoc, but having parameters?

    NOP

    #205429

    Brandon Rife
    Member

    I figured this out – my fault. I had linked an external class file folder into my project that happened to have old class files.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: jsp:getProperty error [Closed]

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