Most voted "servlet-3" questions
For use in issues involving the Java Servlets API 3.0 or higher. An API to facilitate the construction of dynamic web applications, one of the main features of this version of the API is the use of Annotations for parameterization, mapping and initialization of Servlet, thus dispensing with the web.xml file.
Learn more…8 questions
Sort by count of
-
3
votes1
answer73
viewsIs it possible to know which JEE Container is being used during Dispatcher Servlet startup?
After some difficulties with the use of the Spring Security and JBoss using annotations based on API Servlet 3 (Servlet 3.1 more specifically), I discovered that when using Spring with JBoss, in…
-
2
votes1
answer38
viewshttp get method called automatically
Good morning guys, I’m implementing the get a Servlet method here with a very simple logic. If the user passes a url in the default: ".../entities/id", the editing form should be opened with the…
-
2
votes1
answer156
viewsBean dependency injection on Tomcat
I was trying to get an emergency injection, but I’m not following. I’m studying for the Web Components test, so I was practicing some code. I’m following an example given by the Tomcat 7…
-
1
votes1
answer269
viewsPass variable from daughter page to parent page in jsp
I’m making a simple crud in java using jsp and servlets. And I came across the following situation: I have a layout.jsp which makes the include of another dynamic page, which in this case will be…
-
1
votes1
answer1834
viewshow to rescue a data list and view in jsp
Good evening, I am unable to display a list that is saved in the database on the jsp page. I would like to know how I do, have tried some ways, call for menagerBean and Servlet jsp calling on…
-
1
votes1
answer249
viewsServlet giving error 404
I’m trying to create a posting application, I started studying the Java Web now and every time I run Servlet on Apache 8 it appears a 404 error page. my life package app.web4.servlets; import…
-
0
votes1
answer760
viewsHow can I block access to application pages with session filter?
Session Filter Code @WebFilter(urlPatterns = { "/*" }) public class FiltroSessaoUsuario implements Filter { public void init(FilterConfig fConfig) throws ServletException { } public void…
-
-2
votes1
answer12
viewsjavax.servlet.Servletexception: Error instantiating Servlet class
In trying to access the doPost method, I get a 500 error. Can anyone help me? I created a project with the Maven archetype webapp. -Tomcat 9…