Converting PHP file to a JSP file?
I have 3 separate files index.html, foodstore.js and foodstore.phpWhen I run index.html on the localhost then I can use some AJAX advantages.But how to combine those 3 files in one file .jsp?In...
View Article(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 ArticleCDI Weld3.1.6 configuration on Tomcat9 does not work
I'm struggling to create a jsf2.3 project using Weld3.1.6Final and deploying it on target runtime Tomcat9 running with java8.Dinamic web module versione 4.0Configurations:java 1.8JavaServer Faces...
View ArticleHow to display data from Maria DB in a jsp file
I want to put data values ​​from db into employee class and then display all values ​​in jsp file. However, an error continues to occur saying that the list is empty.Employee.javapackage...
View Articlewhen user login the system,if he hasn't operated a long time,how to logout...
I want to achieve this function:when user login the system,if he hasn't operated a long time,how to logout the system and skip to login page?I use a filter class which implements Filter,and when...
View ArticleServlet error during deploy webapp on Wildfly 26.1.2
I'm trying to deploy my webapplication on Wildfly but i'm facing an error during startup. It seems something related to JAXRS but I cannot understand what i'm doing wrong... 00:11:20,162 ERROR...
View ArticleServlets problem with accessing subpages HTTP 404 Tomcat 10.1 java 11
I have just started to learn servlet technology, and I'm currently trying to create a very basic web application. Just some pages, trying this thing. I can reach the start page /index.html but I get...
View ArticleCan't set context path to / at running web application from Dockerfile
I created just the minimum for a web application (for learning purposes) but I can't set the context path when I run it from a Dockerfile image (but it works just fine when I don't use it this way). In...
View ArticleHow to upgrade a java servlet from 2.4 to 3.5? [closed]
I have an application that is integrated with Weblogic and utilizes JSP pages. I am trying to upgrade the servlet from 2.4 to 3.5. I am using eclipse and JAR files. When I go to project Facets to...
View ArticleTomcat 9 servlet: cannot decrease buffer size for writing the response
I found the strange behavior of the Tomcat 9 servlet: when a client is disconnected before the servlet returns the response, the response is still "returned" without raising any exception.Here's the...
View ArticleJSP page unable to get attribute from a Servlet with and without .getSession
I have a web app that must get the city name and, by an API request, it should give the foirecast for that city. But in the JSP file I am not able to get a variable with getAttribute from the...
View ArticleList of employee not displaying on my Web Application with Servlet, Tomcat,...
```My list Employee` method from my Controller is not showing the records in JSP fileImg file1 Image file2controller methodprivate void listEmployee(HttpServletRequest request, HttpServletResponse...
View Articleredis.clients.jedis.exceptions.JedisConnectionException:...
While trying to use Jedis.get(key) while accessing the Redis using Jedis I'm getting this error.redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketException: Broken pipe (Write...
View ArticleCan't use external css styling with jsp
I'm just trying to learn servlets and using JSP files. I would like to do the format of the start page (/login page) with external css file but I didn't manage to do that. It works with internal css...
View Articleindex.jsp not found (cannot be loaded)
i am trying to create a dynamic web app in Eclipse (Tomcat v7). The problem is that when i run my webapp index.jsp cannot be accessed. I can Access every other .jsp, but the index.jsp not.The next...
View ArticleIssue in java code while purging cached url's in Akamai
I'm using java code to purge the cached url's in Akamai. I'm getting 200 response but it's actually not purging the cached url's. where am I going wrong?import java.io.IOException;import...
View Articlecall servlet from controller with parameters to servlet
I am writing a jsp file to call a controller with some parameters. And from this controller i want to call a servlet by passing the values from the controller. And with in the servlet i should get...
View ArticleHaproxy Bad Gateway 502
So I am using HAProxy in front of Jetty servlets.The goal at the moment is just proof of concept and load and stress testing once everything's configured.However I have a problem configuring haproxy. I...
View ArticleWhy does HttpServlet implement Serializable?
In my understanding of Servlet, the Servlet will be instantiated by the Container, its init() method will be called once, and the servlet will live like a singleton until the JVM shuts down.I do not...
View ArticleNo Spring WebApplicationInitializer types detected on classpath
My Eclipse project is suddenly no longer deploying properly. I can't trace it to any particular change I've made to the environment.I have tested with multiple source-controlled projects and they are...
View Article