How to create persistent Cookie in servlet (Java) difference between the...
How to create persistent Cookie in servlet (Java) or both have the same Syntax onlyAnd Difference between the non-persistent cookie and HttpSession.Cookie c = new Cookie("c1",login);//create...
View ArticleThe servlet does not respond to my post request [duplicate]
My training project is tennis scoreboard and I have met some problem. I created HTML page where 2 players send their name and then servlet takes the request and sends it to service layer which is then...
View ArticleReturning XML file as reponse from HttpServlet
I am trying to implement Java method for downloading file in XML format. The source of my XML file comes as FileInputStream from Oracle database and accessed via service.Servlet Code @Override...
View ArticleHow to fix java.lang.NoSuchMethodException: Servlets.MyServlet.() at...
I have a form in a jsp page that I'm trying to connect to a servlet, MyServlet. I am using Tomcat 10.x. I keep getting the following error:HTTP Status 500 – Internal Server ErrorType Exception...
View ArticleJetty 11 doesn't detect Jakarta servlets, how can I debug it?
This is a followup to this question.I have the same situation, and think I have followed the instructions in the answer by Joakim, and the EmbedMe code. I tried to run exec:java with the -X switch, but...
View ArticleJetty 11 Doesn't Detect Jakarta Servlets
This is a follow up to this question. I don't think it's a duplicate because the accepted answer indicates that Jetty 11 doesn't work with javax servlets, but I'm asking why Jetty 11 doesn't work with...
View ArticleHow to resolve error 404 in tomcat server via Netbeans? [duplicate]
I've deployed my web application Tomcat server via Netbeans; only index.html page is wroking when I click on submit, the error pops up.Please Help me out of thisHTTP Status** 404** – Not FoundType...
View ArticleUnifying a Servlet Project and a Socket Project in one Project - Class not...
I have 3 projects. One is a Servlet (made inside a Dynamic Web Project), the other is a socket project (also a Dynamic Web Project) and the last is a real Dynamic Web Project that I want to use to...
View Articlejava.net.HttpRetryException: cannot retry due to server authentication, in...
We have two parts in our app:Server - provide REST servicesClient - consume them via Spring restTemplateIn addition to the HTTP status our server returns an HTTP body with JSON that describe error in...
View ArticleUsing JSP, how to change from Sign Up form to Sign In form on the same file?
I set my grid-view class display to grid with columns of 1fr 1fr.SignUpLogIn.jsp code:<div class="grid-view"><!-- Image Section --><div class="img-section"><img src="img/imgGS.jpg"...
View Articlehow to solve this The server does not support version 3.0 of the J2EE Web...
i am trying to deploy the jsp-servlet application in tomcat5.5 but shows this error when i try to deploy in to the server. The server does not support version 3.0 of the J2EE Web module...
View ArticleUnavailableException: Servlet class my.package.Servlet is not a...
The Eclipse App Engine plugin is no longer supported. To upgrade my apps from Java 8 to Java 11, I opted for the Maven App Engine plugin. To ensure a smooth process, my plan is to first redeploy the...
View ArticleHow do I properly shut down Log4j, closing all Appenders and, therefore, files
My servlet-based web-app sometimes fails to close Log4j log files when redeployed, leaking to file descriptor leakage and occassionally leading to servlet-contained dying from 'too many open files'.I...
View ArticleThe server does not display the answer when calculating
After running the program (calculator test sample), the result is not displayed. The Result line: ${requestScope.result} - does not change, although the result should be displayed instead of...
View Articlejava.lang.OutOfMemoryError: Java heap space
I've the error described below in the trace, when I try upload an 80,193KB FITS file for processing, in order to display select fields. Basically I have a mock web interface that allows a user to...
View ArticleError when accessing EJB local interface in POJO
I have an ear file and inside this ear there is war for my webapplication .Now I have a requirement to lookup a local interface of an EJB through a POJO (this is a scriptlet which is used in...
View ArticleWildfly Jakarta EE 10 Multipart forms missing
In the process of upgrading from Wildfly 25 to Wildfly 27 (and beyond), we are no longer seeing multipart forms.The request parts is null (see below at the bottom). So, I'm not sure where it is getting...
View ArticleHow to forward request from catch all Servlet filter to Java Servlet?...
I am using Tomcat 10. I have set up a catch-all servlet filter in a Java Web Project. The web.xml looks like...
View ArticleCant create a new Servlet in IntelliJ Ultimate Edition 2023.2
Similar to this question, I cant create a Servlet file with the 'new' context menu New -> Servlet. However, as shown in the screenshot, src/main/java is alreay marked as a source root directory, so...
View Articleproblem with System.in for logical testing java code in servlet
i change standard System.in to pass my test cases cause the code reads input from System.in. In multi-thread environment like servlet changing the standard System.in will give problems. Is there any...
View Article