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 !!