LVA2022 opened a new issue, #7362: URL: https://github.com/apache/netbeans/issues/7362
### Apache NetBeans version Apache NetBeans 21 ### What happened On the one hand, when you create a "web application" project and create a JSP at the time of starting the <%%> tag to add java code, autocompletion does not work, outside the tag it does work. On the other hand, when you create a Servlet it sends an input error because the imports come by default with: import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; The correct thing would be to import them in this way: import java.io.IOException; import java.io.PrintWriter; import jakarta.servlet.ServletException; import jakarta.servlet.annotation.WebServlet; import jakarta.servlet.http.HttpServlet; import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletResponse; but it is a problem that can be solved. I think that the autocomplete problem that I mentioned at the beginning is the worst since I did not find a solution because it only happens with the JSP and within the <%....%> tags and I see that it has been dragging from NetBeans 17 onwards without a solution some. ### Language / Project Type / NetBeans Component web application project ### How to reproduce If you could solve the problem of autocompletion and error recognition within a <%%> tag in the next version of netBeans 22 it would be great since, as I mentioned, it is a problem that continues from netbeans 17 onwards ### Did this work correctly in an earlier version? Apache NetBeans 16 or earlier ### Operating System Windows 11 ### JDK JDK 21 ### Apache NetBeans packaging Apache NetBeans provided installer ### Anything else If the code inside <%...%> is wrong, an error message is not displayed, it is like a notepad ### Are you willing to submit a pull request? No -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
