facebook

JSP – Actualize status [Closed]

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    eCommerce
    Member

    In my JSP file I use statements like this e.g.
    <%= util.formElement(FormUtil.RADIO_BUTTON, “PB”, true) %>

    The method comes from another class, imported using “useBean”. If I modify the method formElement() in the original class to have more parameters the JSP does it not recognize until I close the JSP file and reopen it.

    Is there any possibilty to change this behavior so I don’t have always to close and reopen the file?

    THANKS

    #225127

    Riyad Kalla
    Member

    Is there any possibilty to change this behavior so I don’t have always to close and reopen the file?

    If you have JSP validation turned on, cause the file to rebuild (Edit it and save it) and that will mark the compilation error for you in the left margin. The right margin (what you are likely seeing) are real-time and not 100% accurate, but more of a ‘helpful indicator’.

    #225164

    eCommerce
    Member

    It doesn’t work. I can never see the red button on the left site. Also the jsp icon does never get the red cross on it when it has any error in it. It is a Clear Case associated project, may the problem come of this?

    #225171

    Riyad Kalla
    Member

    Please shut down MyEclipse, edit the shortcut you use to start it, and add a -vm argument at the front of the command that points to a JDK (not JRE) install of javaw.exe, like so:

    
    c:\eclipse\eclipse.exe -vm c:\j2sdk1.4.2_07\bin\javaw.exe -vmargs -Xmx256
    

    This will allow MyEclipse to find the javac.exe executable that it is trying to use to validate your JSPs.

    #225180

    eCommerce
    Member

    It doesn’t work. When I want to start eclipse the JVM terminates with exit code 13

    #225182

    Riyad Kalla
    Member

    It doesn’t work. When I want to start eclipse the JVM terminates with exit code 13

    What exactly is your shortcut ‘command’ when it fails? (Please copy paste it here)

    #225184

    eCommerce
    Member

    E:\Programme\eclipse\eclipse.exe -vm D:\Programme\JDK142\BIN\javaw.exe -vmargs -Xmx256

    #225189

    Riyad Kalla
    Member

    -Xmx256

    I appologize, this is my fault. You need an ‘m’ at the end of this number to signify “Megabytes” otherwise IIRC, it tries to allovate kilobytes (which would explain the VM dump). So change it to this:

    E:\Programme\eclipse\eclipse.exe -vm D:\Programme\JDK142\BIN\javaw.exe -vmargs -Xmx256m

    #225243

    eCommerce
    Member

    It didn’t work either. I have installed a second Eclipse version and now there are some JSP files validated but not all. When I use the menu MyEclipse –> Run Validation I get the following error message:
    “Validation was terminated on intranet because the maximum number of messages were reported.”
    I’ve laready set the limit of visible items in the error filter to the maximum and did recompile the hole project but it doesn’t help. What am I doing wrong?

    #225248

    Riyad Kalla
    Member

    “Validation was terminated on intranet because the maximum number of messages were reported.”

    It sounds like there is something wrong with your project, what kind of errors is this project reporting? Let’s get those fixed up first… list the first few errors here from the problems view.

    #225328

    eCommerce
    Member

    When I remove the validation markers of MyEclipse I get 2 errors:
    2 CoyoteRequest cannot be resolved or is not a type CoyoteAdapter.java intranet/java/ch/sarasin/eco/intranet/login/coyote/as line 22 17.
    2 CoyoteRequest cannot be resolved or is not a type CoyoteAdapter.java intranet/java/ch/sarasin/eco/intranet/login/coyote/as line 22 17.

    When I run the MyEclipse validation it stops after a while with the message
    “Validation was terminated on intranet because the maximum number of messages were reported.”
    and then I get 27 errors

    2 ‘class’ or ‘interface’ expected: ^ productEdit.jsp intranet/JSP/intranet/CMA line 1245
    2 ‘class’ or ‘interface’ expected: } productEdit.jsp intranet/JSP/intranet/CMA line 1245
    2 ‘try’ without ‘catch’ or ‘finally’: try {. NOTE: No JSP line number was avaliable so line 1 was used for the marker. productEdit.jsp intranet/JSP/intranet/CMA line 1
    2 <identifier> expected: } productEdit.jsp intranet/JSP/intranet/CMA line 1245
    2 cannot resolve symbol: symbol : variable attached_object ticker.jsp intranet/JSP/intranet/CDA line 32
    2 cannot resolve symbol: symbol : variable description ticker.jsp intranet/JSP/intranet/CDA line 37
    2 cannot resolve symbol: symbol : variable languageId ticker.jsp intranet/JSP/intranet/CDA line 32
    2 cannot resolve symbol: symbol : variable prodAuMDate productInsert.jsp intranet/JSP/intranet/CMA line 8
    2 cannot resolve symbol: symbol : variable prodHorizon productInsert.jsp intranet/JSP/intranet/CMA line 3
    2 cannot resolve symbol: symbol : variable prodHorizonId productInsert.jsp intranet/JSP/intranet/CMA line 3
    2 cannot resolve symbol: symbol : variable prodMarge productInsert.jsp intranet/JSP/intranet/CMA line 5
    2 cannot resolve symbol: symbol : variable prodRisk productInsert.jsp intranet/JSP/intranet/CMA line 4
    2 cannot resolve symbol: symbol : variable prodRiskId productInsert.jsp intranet/JSP/intranet/CMA line 4
    2 cannot resolve symbol: symbol : variable Util productInsert.jsp intranet/JSP/intranet/CMA line 3
    2 cannot resolve symbol: symbol : variable Util productInsert.jsp intranet/JSP/intranet/CMA line 4
    2 CoyoteRequest cannot be resolved or is not a type CoyoteAdapter.java intranet/java/ch/sarasin/eco/intranet/login/coyote/as line 22
    2 CoyoteRequest cannot be resolved or is not a type CoyoteAdapter.java intranet/java/ch/sarasin/eco/intranet/login/coyote/as line 22
    2 File “/intranet/CDA/ticker.jsp” not found. NOTE: No JSP line number was avaliable so line 1 was used for the marker. bottom_frame.jsp intranet/JSP/intranet/CDA line 1
    2 File “/intranet/CMA/API/frontdoor_header.jsp” not found. NOTE: No JSP line number was avaliable so line 1 was used for the marker. CmaAccessList.jsp intranet/JSP/intranet/CMA line 1
    2 File “/intranet/CMA/API/frontdoor_header.jsp” not found. NOTE: No JSP line number was avaliable so line 1 was used for the marker. frontdoor.jsp intranet/JSP/intranet/CMA line 1
    2 File “/intranet/CMA/API/frontdoor_header.jsp” not found. NOTE: No JSP line number was avaliable so line 1 was used for the marker. productHeader.jsp intranet/JSP/intranet/CMA/API line 1
    2 File “/intranet/CMA/API/frontdoor_header.jsp” not found. NOTE: No JSP line number was avaliable so line 1 was used for the marker. SarasinAvaloqQuizInput.jsp intranet/JSP/intranet/CMA line 1
    2 File “/intranet/CMA/API/frontdoor_header.jsp” not found. NOTE: No JSP line number was avaliable so line 1 was used for the marker. SarasinAvaloqQuizInputOverview.jsp intranet/JSP/intranet/CMA line 1
    2 File “/intranet/CMA/API/productHeader.jsp” not found. NOTE: No JSP line number was avaliable so line 1 was used for the marker. productAdmin.jsp intranet/JSP/intranet/CMA line 1
    2 File “/intranet/CMA/API/productHeader.jsp” not found. NOTE: No JSP line number was avaliable so line 1 was used for the marker. productCategory.jsp intranet/JSP/intranet/CMA line 1
    2 File “/intranet/CMA/API/productHeader.jsp” not found. NOTE: No JSP line number was avaliable so line 1 was used for the marker. productDelete.jsp intranet/JSP/intranet/CMA line 1
    2 illegal start of type: if (submitter1 != null && browse == 1 && submitter2 == null && inserter == null){ productEdit.jsp intranet/JSP/intranet/CMA line 175

    #225329

    eCommerce
    Member

    Hi I think I found the error, I am too stupid. I always changed the size of displayed error messages of eclipse but never of the validator.
    Sorry…
    Hope it works now.
    Thanks for your help

Viewing 12 posts - 1 through 12 (of 12 total)
Reply To: JSP – Actualize status [Closed]

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