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

In Java servlet, cookie.getMaxAge() always returns -1

If I set a cookie with a setMaxAge() well into the future, when I read the cookie back into memory in a subsequent request, the getMaxAge() gives me back a -1. I have checked the actual cookie via...

View Article


How to register an Amazon Alexa Servlet in a Java Springboot 3.xx application

I managed to register the Amazon Servlet in a Springboot 2.xx Application like@Beanpublic ServletRegistrationBean<SkillServlet> registerServlet(Skill skillInstance) { SkillServlet skillServlet =...

View Article


Image may be NSFW.
Clik here to view.

WARN: Establishing SSL connection without server's identity verification is...

Hello I am trying to connect to a mysql database via a java servlet using eclipse and tomcat, but I take the following error: "WARN: Establishing SSL connection without server's identity verification...

View Article

java.io.IOException: Error writing to server

In my project I'm trying to send file to Amazon S3. The code can run now but SOMETIME an error is occur and I can't see the file on S3. The log below: java.io.IOException: Error writing to serverat...

View Article

Getting Status: HTTP Status 404 after running Maven project on Eclipse and...

I am making a simple Maven Project using Eclipse. There is a form that has Username and Password and a submit button.When I enter and submit the default username(admin) and password(admin). It should...

View Article


How to use JSTL in JSP: jakarta.servlet.ServletException:...

I am using TomCatServer v10.1 for Java Web Development project. I am not able to use JSTL in JSP and the error isHTTP Status 500 – Internal Server ErrorType Exception ReportMessage...

View Article

HTTP Status 404 – Not Found - The origin server did not find a current...

** I Am Using TOMCAT - 9 **I am new to TOMCAT andBelow is my Folder Strucenter image description hereI am trying to call a Servlet from index.html page but it shows 404 error, Could anyone help me out...

View Article

How to retrieve value from web.xml in Servlet?

I need to retrieve init-param value from xml to Servlet i used following...

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


How to integrate API in servlet application? [closed]

How to integrate localhost rest API in servlet application?I have two applications which are running in different environments. One application is Spring Boot rest API and second is servlet...

View Article

I want to show data on front end with the help of jsp [closed]

@RequestMapping(value = "/orders", method = { RequestMethod.GET })public String orderList(ModelMap model, HttpServletRequest request) { String uuid; try { uuid = (String)...

View Article

I'm making a voting software for the school elections. Im using HTML, CSS...

Im using HttpServlets.There is a login page where users can login. The data goes to a login servlet, which turns the user to authenticated user, and the auth servlet allows user to enter admin.html. If...

View Article

How do I detect the TLS version of an HttpServletRequest?

I am in the process of phasing out support for TLS 1.0 and TLS 1.1 for a web application.I would like to detect users this will impact based on the connections they are making to my servers.I am...

View Article


DataTables warning: table=userTable - Invalid JSON response?

I use jQuery DataTables and get this warning message:DataTables warning: table=userTable - Invalid JSON responseA servlet fetch users from MySQL which I want to display in a jQuery Datatable, but Ajax...

View Article

How to maintain Session Management in Servlets

The Hidden Form Field does not involve in maintaining a user's session.Then why Hidden Form Field are used in Session Management in Servlets.

View Article


Unable to Retrieve Session Attribute "resetToken" in Change Password Logic

I am currently implementing the forget password logic in my Spring application. The process involves generating a token, sending it via email, and simultaneously setting a session attribute named...

View Article

How to update the resource property using the valuemap in the Sling servlet?

I’m getting all the pages,taking the jcr:content of all the pages as resource and trying to update the pageTitle property using valueMap by adapting ValueMap to resource, But I’mgetting...

View Article


Which javax servelet version support wildfly 30 [closed]

Which javax servlet version support wildfly 30need to know the version of javax servlet dependency version which supports wildfly 30. currently i am using wildfly 25 and javaz servlet 3.0.1. i need to...

View Article

In a web.xml, can the url-pattern of servlet-mapping containing more than one...

I'm finding the following strange behaviour:GET http://myserver/myapp/functionality/2.0 works (calls my @Controller method)2024-03-14 13:59:49,761 [ajp-nio-172.7.102.11-5067-exec-2] INFO...

View Article

How to effectively destroy 'session' in Java Servlet?

The Servlet I'm working has a variable session.I've tried session.invalidate();, this seem to have destroyed session but when I do a redirect like so response.sendRedirect("restanes.jsp");, it gives me...

View Article
Browsing all 675 articles
Browse latest View live


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