Drp error collection --- "Cannot return from outside a function or method", drpoutside

Source: Internet
Author: User

Drp error collection --- "Cannot return from outside a function or method", drpoutside

For a project that has not been moved for a long time, a red exclamation mark is displayed today. The specific error is as follows:

 

That is to say, now MyEclipse does not recognize the return Method Used in JSP pages (and there are more than one such warning). What should I do ????? The alarm was suddenly messy, and I thought it was hard to install the system. How could the project still get angry.

The solution provided by some online users is"Remove return", But after return is removed, the submitted form cannot be executed. Therefore, we found and tested the following two methods:

§Open MyEclipse's Windows --> preferences --> myeclipse --> validation --> javascript validator for Js, that is, the interface in:


SetRemove the check mark on BuildClick OK to complete the settings.

§Right-click the created Project and choose myeclipse --> Exclude Form Validation from the shortcut menu. Set the √ number:

You can see a miracle. The jsp error is gone!

The above are two solutions to the "Cannot return from outside a function or method" error. It is not difficult to make a mistake. What is difficult is the quiet heart maintained by the mistake. May you have a good mood every day !!


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.