DRP Error Collection---"Cannot return from outside a function or method"

Source: Internet
Author: User

For a long time not moving the project, open the project today suddenly is the red exclamation. Detailed errors are shown as:

In other words, now MyEclipse does not recognize the return method used in the JSP page (and there is more than one such warning), How to do????? Suddenly the alarm clock is chaotic. I thought I would not fit the system. How does the project still make a temper?

Online users to provide the solution is to " return to remove ." But after you remove the return, the ones that submitted the form can't be done. Therefore, the following two methods are found and tested under persistence:

§ Open MyEclipse's windows-->. >preferences-->myeclipse-->validation-->javascript Validator for Js, which is the interface in:

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvwvndmteymw==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">

will be Remove the checkmark on the build . Click OK to complete the setup.

§ Right-click in the Project project you created. Find Myeclipse-->exclude Form Validation click on it and hit the √ number:

You can see the miracle appeared Oh, JSP error has gone!

These are the two workarounds for the "cannot return from outside a function or method" error. Error is not difficult, it is difficult to meet the error to keep the quiet heart, the wrong collection. May every day have a good mood.


DRP Error Collection---"Cannot return from outside a function or method"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.