Quantcast
Channel: Active questions tagged servlets - Stack Overflow
Browsing all 675 articles
Browse latest View live
↧

Problems with migration from WAS 6.1 to WAS 7.0 cookie is always null

I have this problem:I migrate my applications from WAS 6.1 to WAS 7.0 using migration tool in C:\Program Files\IBM\SDP\runtimes\base_v7\bin\migrationThe application was running just fine in 6.1 server,...

View Article


How to resolve req.getParameter() returning null in servlet?

I am reading 2 numbers as input and am trying to print them in the output dynamically using Servlet, req.getParameter() returns null:HTTP Status 500 – Internal Server Error Type Exception ReportMessage...

View Article


Using @WebServlet on Tomcat 7.0 returns HTTP 404 [duplicate]

I am developing an example servlet on Tomcat 7.0.37 & Eclipse 3.7. My current problem is to get it runnable//...imports and so on...@WebServlet(value="/Hello")public class AdminServlet extends...

View Article

how to limit post size in tomcat 8? How to make a custom reply for it?

I have this configured in my server.xml file:<Connector URIEncoding ="UTF-8" connectionTimeout ="20000" maxHttpHeaderSize ="65536" maxPostSize ="1024" port ="8080" protocol ="HTTP/1.1" redirectPort...

View Article

Quarkus - problem accessing HttpServletRequest

I'm developing a Java application, using Quarkus 2.13.8.Final.There is a simple endpoint, in which I'd use the HttpServletRequest instance: @RequestScoped @Path("/rest/user") @Slf4j public class...

View Article


Exposing resources from jar files in web applications (Tomcat7)

Some time ago I read an article what is expected to be in Servlet API 3.0. I remember I read that you can save some .jsp files in a /WEB-INF/lib/somelib.jar/META-INF/web/.jsp and this resources will be...

View Article

When the session times out, a double click is required to go to the login page

I use this code. After setting passwordChanged, when I click (first request) then it invalidates the session in authenticationServices.logout(getHttpServletRequest()), and on the next request it goes...

View Article

How to forward a request from the servlet to the action in Struts 2?

I want to forward a request from the servlet to the action using RequestDispacher like thisRequestDispatcher dispatcher=request.getRequestDispatcher("hello.action");dispatcher.forward(request,...

View Article


Does Tomcat 11 support Spring 6.1? [closed]

I know that Tomcat 11 supports servlet spec 6.1, but does it support olders as well?Also, I'm not sure about the relationships between servlet specs and Spring versions....

View Article


What is the difference between setting HTTP session timeout using web.xml and...

I have a requirement, when an user is authenticated into a session, and after 10 minutes of inactivity, the session times out. Once the session timed out, any further requests are expired, the request...

View Article

The requested resource is not available using HelloWorld servlet [duplicate]

I am writing a Java Servlet, and I am struggling to get a simple HelloWorld example to work properly.Error 404: The requested resource is not available using HelloWorld servletThe HelloWorld.java class...

View Article

Servlet: HTTP Status 404 - Not Found [duplicate]

My Servlet doesn't work at all. I'm getting HTTPS Status 404- Not Found. Below is the complete code for the same:-index.jsp <!DOCTYPE html><html><head><title>Page...

View Article

How can I know if the request to the servlet was executed using HTTP or HTTPS?

I wrote a servlet in Java and I would like to know if the request to that servlet was executed using HTTP or HTTPS.I thought I can use request.getProtocol() but it returns HTTP/1.1 on both methods.Any...

View Article


When will a submit button in a jsp file return a "null" value in the servlet?

I am trying to understand if I have a fill.jsp file with the form below:<form action="calculate" method="post"><input id="userName" type="text" name="userName"><input id="grossPay"...

View Article

How to bind HTML element names to a servlet?

I know that, when the name of an HTML form element changes, in order for the Servlet, which is processing the form, to retrieve the parameter, it has to be aware of the updated element name. I'm trying...

View Article


I'm facing an issue while running my dynamic web project on tomcat server v.9...

Hi all I am new to advance java, I have completed learning jdbc and now i am in serverlets and i want to run my dynamic web project on tomact server v.9. even after configuring it in the server and...

View Article

ERROR 7388 : Servlet.service() for servlet [dispatcherServlet] in context...

Gone through all the code bit by bit but just can't find what is wrong, if I make postman getUsers request it works fine, but when I make the POST request I get the error:ERROR 7388 ---...

View Article


How to create javax.servlet.Servlet? [duplicate]

The code:import javax.servlet.*;import java.io.*;public class Test implements Servlet { public void init(ServletConfig config) throws ServletException { System.out.println("i am init()........."); }...

View Article

How do I auto-update servlets without restarting tomcat in intellij?

How do I auto-update servlets without restarting tomcat in intellij?In Eclipse, if the servlet code changes without any special setting, it is automatically reflected.However, in IntelliJ, even if the...

View Article

Image may be NSFW.
Clik here to view.

Why the class files inside WEB-INF/classes are deleted when the webapp is...

I'm using Tomcat 5, when I start the server and load my app from webapp folder, my JSP loads, but class files inside the WEB-INF/classes are being erased automatically, and when I load the class files...

View Article
Browsing all 675 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>