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

Image may be NSFW.
Clik here to view.

Servlet getParameter() returns null for form-data [duplicate]

I am sending a POST request to my localhost Tomcat 8.0 Servlet 3.1 web application but request.getParameter("") returns me null.This is how I make my request.I am using PostMan to perform my POST...

View Article


HTML5 FormData returns null in Java Servlet request.getParameter()

My view is HTML 5. I'm using FormData to make a AJAX 2 POST to a Servlet. Inside the servlet i'm trying to read request parameters. I can't see any parameters. However, Google Chrome Dev console shows...

View Article


Retrieving user fail

Does using 1 form for both login and signup can cause this error? When I run the tomcat and try to login it keeps returning null as the user, even though the user does exist in the database. As for the...

View Article

Servlet how to send response redirect with body data?

Trying to redirect with a body message?response.sendRedirect(url);Writer writer = response.getWriter();writer.write("some message");write.close();andWriter writer =...

View Article

Servlet form submissions redirecting to different servlets without specified...

I am learning Java as a beginner!I have an HTML page with multiple forms, each containing different input fields. Surprisingly, when I submit these forms, they automatically redirect to different...

View Article


In simple terms, what is a servlet container? [duplicate]

As a UI developer and someone with very limited Java knowledge, how do I understand what exactly is servlet container in simple terms?I have heard Weblogic, JBoss, etc are servlet containers, but not...

View Article

Spring Security ExceptionTranslationFilter throw "Unable to handle the Spring...

I'm using spring security web 5.0.9 and tomcat 8. ExceptionTranslationFilter throw ServletException "Unable to handle the Spring Security Exception because the response is already committed."I dig into...

View Article

ServletContextListener execution order

How to define order of ServletContextListener's execution due application initialization, if i have multiple ServletContextListener's and some of them declared in deployment descriptor and other with...

View Article


Getting "No WebApplicationContext found: not in a DispatcherServlet request...

I am getting this error when I am trying to load a spring form other solutions that I am getting is of adding a listener in web.xml but currently I am using a java based configurationERROR No...

View Article


Python: ServiceDesk PLus Servlet API

I am new to programming in Python and am writing a script for my company. We use ServiceDesk Plus which uses Servlet API. I want to write a script that will auto create/close tickets upon alarms from...

View Article

Image may be NSFW.
Clik here to view.

Writing a unit test for a servlet that reads an excel file is failing on AEM...

I am writing a unit test for a servlet that uses an excel file as input stream using the poi libraryorg.apache.poiThis is the servlet:protected void doPost(SlingHttpServletRequest request,...

View Article

No injection source found for a parameter of type public when create simple...

I tried to create a simple servlet, but I got some error when the pod goes up:Caused by: org.glassfish.jersey.server.model.ModelValidationException: Validation of the application resource model has...

View Article

Configure NGINX behind Tomcat Server both installed in different computers

I've found some information about how to configure NGINX as reverse proxy for Tomcat or other java servers but always having both, Nginx and java server in same machine, in my case I have Nginx and...

View Article


I'm migrating a JAX-WS servlet from JBoss 7.3.10 (Java 11) to JBoss 7.4.15...

So, I have a functioning web service running on JBoss 7.3.10. It's a JAX-WS servlet. When JBoss is started, the init() method is being called (as expected; load-on-startup is 1 in web.xml). Now I am...

View Article

Encoding servlets with UTF-8 on WildFly

I used to run my JavaEE applications on GlassFish server, and there was no problem with the encoding type (UTF-8) since I added the following property in JVM Settings of the server:file.encoding =...

View Article


How to read the written data from the Servlet's Response [duplicate]

1.Now, I have this Response object, and I'm using the Response.getWriter object to write to it and some JSON data.PrintWriter writer = response.getWriter();writer.write("hello...

View Article

How tp Pass list of object using servlet to jquery ajax [duplicate]

how to pass list of object to ajax call using servlet?

View Article


Image may be NSFW.
Clik here to view.

Separate Content-Disposition from HTTPServlet Response Writer

I asked the question earlier about Content-Disposition breaking JSP code. Although I didn't find an optimal solution, I did come to the conclusion of using a popup window to download the file. This way...

View Article

Spring MVC - measure length of incoming requests of type x-www-form-urlencoded

I'm using Spring Boot 2.7.18 and Spring MVC.I made a OncePerRequestFilter that counts the bytes passing through the InputStream of each request, by "hijacking" the original InputStream and replacing it...

View Article

Easiest way to populate a bean using servlet params

without using any big web framework (just servlets), do you know a ready to use small library that can populate my bean properties from the params of an http request?

View Article
Browsing all 675 articles
Browse latest View live


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