Skip to content
Advertisement

Tag: servlets

Including JSTL implementation jar only

Following this answer, below is a simple JSP demo that includes only JSTL implementation jar(javax.servlet.jsp.jstl-1.2.1.jar), but not JSTL API jar(javax.servlet.jsp.jstl-api-1.2.1.jar), My understanding is, JSTL implementation jar holds both API(mostly Java interfaces) and it’s implementation. This is the reason test.jsp got compiled and executed successfully. Further, same approach would work with servlets using API implementation jar provided by Tomcat container without

how to modify web.xml for multiple servlet

I just get confused about how to modify web.xml for multiple servlet. I got three servlet to handle three different jsp, but now only one servlet is effective. Answer You should declare and define the classes/servlets inside the web.xml file like this:

Why does Spring MVC respond with a 404 and report “No mapping found for HTTP request with URI […] in DispatcherServlet”?

I’m writing a Spring MVC application deployed on Tomcat. See the following minimal, complete, and verifiable example Where SpringServletConfig is Finally, I have a @Controller in the package com.example.controllers My application’s context name is Example. When I send a request to the application responds with an HTTP Status 404 and logs the following I have a JSP resource at /WEB-INF/jsps/index.jsp

Servlet get GET and POST’s parameters at the doPost method

My problem is when I’m trying to access a POST Variable with request.getParameter(“name”), it works perfectly. But in some conditions, when a POST request arrives at my application, I also need to get GET Parameter from the Query String. As far as I can see, with getParameter, you can only access current request’s parameters, but, as in my condition, as

Error loading fcl file in servlet

I have Java Web application JSP/Servlet that works with jFuzzyLogic library which uses rules.fcl file which is located at WEB-INF/rules/rules.fcl. I m trying to load the rules.fcl file in a servlet file but when i try to execute the application web i got these errors : Someone help me plz with it! Thanks. Answer Your code says you have got

package javax.servlet.annotation does not exist

I have some of the following imports defined like the following as shown in the image below. I am wondering, how can I eliminate “package javax.servlet.annotation does not exist” error. I am currently working on “Java Web” type of project in Netbeans 7.4. . Secondly, I believe , the above error is the reason behind my second error related to

Advertisement