facebook

Auto Reload of a JSP after fixing problem

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #232622 Reply

    wseubert
    Member

    I am using Eclipse 3.1 and MyEclipse 4.0M2.

    When an error in a JSP is detected, for example accidentally deleting a ‘>’ to close a tag. The formatting error is marked in red and everything is underlined in red. However, after fixing the error I need to close and reopen the file to get the error to clear.

    Is there a setting or something to allow me to do a reload?

    Is there a way to get this kind of thing to show up in the list of problems?

    #232632 Reply

    Scott Anderson
    Participant

    Actually, saving the file should clear the error. If that’s not the case, can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.

    #232669 Reply

    wseubert
    Member

    I’ll reverify this tonight. When I tried last night it wasn’t even complaining about bad tags.

    I’m using 1.4.2_06 on XP-Home. I’ll get you the Tomcat version. What else in particular do you need other than steps to create the problem?

    #232681 Reply

    Scott Anderson
    Participant

    What else in particular do you need other than steps to create the problem?

    An example project that demonstrates the problem would be best.

    #232741 Reply

    wseubert
    Member

    I have Apache Tomcat/5.0.28

    OK I think I have a strong lead to recreate it.

    Paste the following code into a JSP in a new Web App (notice the missing “> after ChartIndividualUserName):

    <FORM action=”/SchoolPsychology/FieldSupervisor/PreDisplayChart” method=”post”>
    <SELECT name=”EvaluationPeriod”>
    <c:forEach var=”report” items=”${EnrollmentPeriods}”>
    <OPTION value=”${report.id}”>${report}</OPTION>
    </c:forEach>
    </SELECT>
    <INPUT type=”hidden” name=”ReportType” value=”${ReportType}”>
    <INPUT type=”hidden” name=”title” value=”${ChartTitle}”>
    <INPUT type=”hidden” name=”subtitle” value=”${ChartSubTitle}”>
    <INPUT type=”hidden” name=”individualUserName” value=”${ChartIndividualUserName}
    <INPUT type=”hidden” name=”EnrollmentPeriods” value=”${EnrollmentPeriods}”>
    <INPUT type=”submit” value=”Generate”>
    </FORM>

    1. Errors aren’t indicated at all in the MyEclipse perspective.
    2. Errors are sometimes indicated in the Java perspective when adding and removing the “> (sometimes the error is cleared upon typing it without even needing to save it).

    If you can’t get the error so show or not clear just keep playing with adding and removing the ” and >.

    This brings up the question, which perspective should I be developing in? MyEclipse or Java? I assumed that the MyEclipse perspective was a superset of the Java perspective.

    #232743 Reply

    wseubert
    Member

    OK now I am seeing the validation errors (Multiple annotations found at this line) in the MyEclipse perspective but if and only if I create the error, close the file, then open the file. Same for the clearing process…

    #232760 Reply

    Riyad Kalla
    Member

    wseubert,
    There is something funny going on here that loosk like a bug, thank you for bringing this to our attention, I’m sending off a bug report to the web team now.

    #232873 Reply

    wseubert
    Member

    Have you guys been able to reproduce this?

    #232881 Reply

    Riyad Kalla
    Member

    Yep, we thought we had it fixed in M2, seems to be a regression, we’ll get it fixed in M3.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Auto Reload of a JSP after fixing problem

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