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

Unable To Instantiate Servlet Class While Deploying WebApp through Tomcat...

I was trying to make a servlet for webapp, In INTELLIJ IDEA. While deploying there was no error but when the servlet is called in the web, it says"jakarta.servlet.ServletException: Error instantiating...

View Article


How to get client host/domain name in spring boot controller

I have a spring boot application with one rest api. Will deploy it in one linux server.And we have multiple java applications deployed in multiple linux servers calls that api.Whenever a request made...

View Article


Servlet Mapping using web.xml

I have a confusion regarding the structure of the web.xml for the servlet mapping, I don't have any problem executing it but I am trying to figure out why we have such a pattern in the deployment...

View Article

Is Springboot filter implementing ContainerResponseFilter,...

I have a springboot filter as below implementing ContainerResponseFilter, ContainerRequestFilter. I am setting a variable "key" in the request filter and using it in the response filter method. Pls...

View Article

Image may be NSFW.
Clik here to view.

Springboot / HttpServletResponse is not retreiving the actual HTTP body

I am facing a weird issue on a Spring boot project where the body is not retrievable in the controller.This is a bit specific: I am using a bc tls psk scheme to talk to sim cards and it has been...

View Article


NullPointerException in Spring Framework (or what?)

I have run into a very weird problem, and I have simply no idea, where to start. In our working application, one of our pages seems to fail kinda arbitrarily - that is, sometimes it works, and...

View Article

Image may be NSFW.
Clik here to view.

Java HTTP Servlet returns 405 despite implementing doPost

Here is the HTML code:<!DOCTYPE html><html><head><meta charset="UTF-8"><title>Add Two Numbers</title></head><body><h1>Please enter...

View Article

How to accept both multipart and application/x-www-form-urlencoded?

I built a servlet that allows uploading a file or alternatively uploading a list as input. So far I've handled it by setting the servlet to accept multipart/form-data so even if there is no file, I...

View Article


How to Integrate Google Analytics into a Java Dynamic Web Project Using JSP...

I'm currently working on a Java dynamic web project that utilizes JSP and servlets, and I'm running it locally on XAMPP with Tomcat 9. I would like to integrate Google Analytics to track user...

View Article


How could we manage separate sessions in Spring Security via @PathVariable?

Imagine we have a customized way of authentication for the below URLs.Path1: http://www.example.com/company1/homePath2: http://www.example.com/company2/homePath3:...

View Article

Big Paging Problem

My result page needs to be paged. But I have some problems.I get results from a web service (not mine), about 1 000 000 objects. But in 1 000 000 objects, there are some objects with their status is...

View Article

How can I make a ServletContextListener stop the Java EE application?

I have a ServletContextListener which performs some database management functions when my Java EE application starts. This runs in my application before JPA and other pieces of the application are...

View Article

Ajax Post request to Servlet?

Hi I have been trying to pass value from ajax to servlet ,have used JQUERY jquery-1.3.2 & query-1.3.2.min .I am successfully able to send the data but if i print the value in servlet getting...

View Article


Entity stream is closed in container response filter

I am trying to capture the request body string using entity stream in both request filter and response filter. But when I try to fetch request body string entity stream in the response filter, I get...

View Article

Java Servlet to ASP data headings missing [duplicate]

Result wanted<th>Group</th><th>Subject</th><th>Date</th><th>Tags</th>Java ServletList<String> leftLabels = new...

View Article


request.getQueryString() seems to need some encoding

I have some problem with UTF-8. My client (realized in GWT) make a request to my servlet, with some parametres in the URL, as follow:http://localhost:8080/servlet?param=valueWhen in the servlet I...

View Article

How to handle HTTP 510, 598 and 599 error codes in web.xml

We use weblogic to deploy our application, the requirement is to handle all the server errors, in web.xml and have 500 through 510, 598 and 599. The specification of error codes - 510, 598 and 599...

View Article


Image may be NSFW.
Clik here to view.

(httplog)-static: issbsettingenabled false android

I am developing Android app and running in Samsung J7. The problem is while running the app it show the error "(httplog)-static: issbsettingenabled false" is there any way to enable httplog true or an...

View Article

UTF-8 encoding error for Loggin with Google

public static String getToken(String code) throws ClientProtocolException, IOException { String response = Request.Post(Constants.GOOGLE_LINK_GET_TOKEN) .bodyForm( Form.form().add("client_id",...

View Article

SEVERE: Allocate exception for servlet

I was previously using NetBeans IDE in Windows 10. I got a new PC with Windows 11. Both NetBeans IDE and Eclipse IDE are installed. In NetBeans IDE, while trying to configure the tomcat server, I got...

View Article
Browsing all 675 articles
Browse latest View live


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