facebook

variables defined in an included file are not recognized

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

    jhettenh
    Member

    The Broadvision sw we have has directives which define several global variables:

    <%@ include file=”/ep/publish/qualifiers.jsp”%>

    These variables are receiving “not found” errors when opening a jsp including these files. I think this is related to a problem already moved to the bug list, but I wanted to check.

    #212591 Reply

    Riyad Kalla
    Member

    I was not able to reproduce this problem. I created a new include page that defined the variable “Integer number = new Integer(3)” then I included it in a new page and opened a new scriplet:
    <%= %>

    and was able to autocomplete the “number” variable and nothing was marked as an error. Maybe you can give us more details about what is going on?

    #212797 Reply

    jhettenh
    Member

    Sure,

    One method defined in cp_utils.jsp executes but shows an error in eclipse:

    <%@ include file=”/ep/publish/cp_utils.jsp”%>

    cpErrorSystem(new BVWComponentException(e.toString()));

    Some of the variables likewise defined in cp_utils.jsp

    String serviceName = (String) sessionVisitor.getServiceName();
    String service = serviceName;
    long serviceId = Long.parseLong(sessionVisitor.getServiceId());
    BVI_Visitor visitor = sessionVisitor.getVisitor();
    long visitorId = visitor.getID();

    are marked as errors on the page that includes the cp_utils.jsp file. The Broadvision code executes without error, but there is a whole host of invalid error markers when I modify the main form.

    #212805 Reply

    Riyad Kalla
    Member

    I thought maybe this was an “underscore in the name” issue so I created a new test project to try and reproduce this and I was unable to. Can you come up with a small sample project that exhibits this behavior and email it to support@genuitec.com with a reference to this thread so we know how to test what you send us?

    #212834 Reply

    jhettenh
    Member

    I’ll try and do that soon … it could be the insane amount of code Broadvision included in the IP Forms. I rarely have trouble with pages I’ve created myself.

    #212849 Reply

    Riyad Kalla
    Member

    Thank you, we know this is definately outside the call of duty for our users, but if we can’t reproduce something its frustrating for us to have you guys hitting bugs in the software.

    #212850 Reply

    jhettenh
    Member

    Hmm, well like you I cannot recreate the problem outside of the Broadvision jsp files. If I create a new file and a new include file then all variables and custom methods work just fine and inherit properly. I had figured that since content assist didn’t work before the

    <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>

    line in new jsp files, it had something to do with that, but when I type in the code manually, it still works fine. I’m rather at a loss since there are a ton of errors flagged in the broadvisionf files.

    #212854 Reply

    Riyad Kalla
    Member

    Wait for our maintenence release here very soon and see if the problem magically fixes itself.

    #212873 Reply

    jhettenh
    Member

    That works for me; I have a love/hate relationship with magical fixes. It’s more of aesthetic desire anyways … I don’t like red. Thank you for your help.

    #212875 Reply

    Riyad Kalla
    Member

    God I know what you mean about both the magic part and the red.

    #213024 Reply

    jhettenh
    Member

    Well, the magic didn’t work unfortunately; I’m not sure what the cause might be. I’ve tried several variants with no affect. I guess I’ll just have to love the red for awhile. =-.)

    #213038 Reply

    Riyad Kalla
    Member

    Does this still “work” in the small sample project you created but still not work in your big project? If you are able to narrow this down to a particular issue that can be sampled for us we will get on it ASAP… but without that test case we can’t really move to the next step.

Viewing 12 posts - 1 through 12 (of 12 total)
Reply To: variables defined in an included file are not recognized

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