Category "servlets"

How to avoid duplicate submission form when Servlet take long time to response

I have a problem in java Servlet. Suppose i have two Servlet and two page(jsp). In index.jsp client enter your mobile number and submit form to sendSMS.do. send

HttpServletRequest unable to get body of request

I'm trying to create a little test servlet (Tomcat 10) to accept simple "POST" messages, however no matter what I've tried the servlet never seems to get the bo

How to calculate age from date of birth

I have a user registration form where all user data is stored in database. I am listing all user data in the UI in a member listing page. In there I have to cal

Information flow when redirecting from HTML to Servlet

I have a question regarding the information flow of a simple link. Let's say I have an HTML that does this: <a href="servlet">Go to Servlet</a> A

Servlet 5.0 JAR throws compile error on javax.servlet.* but Servlet 4.0 JAR does not

I am trying to compile and deploy a simple web app from command line. servlet-api.jar from Apache Tomcat does not compile my java file, but javax.servlet-api-4.

java.lang.AbstractMethodError: com.mysql.jdbc.Connection.isValid(I)Z

I am trying to connect my Servlet to mysql database using data Source . But whenever I run my servlet I end up getting this exception : java.lang.AbstractMetho

Java Servlet: How can I retrieve selected radio button values?

I have created a simple servlet in which a user will be presented with 2 questions, answering either true or false. My problem lies in retrieving the answers se

Play java video streaming with player

I want to steam live video using Java to a player (FlowPlayer, JW Player, etc) I found an example but it is using java servlets: Servlet code: byte[] data =

How to iterate through an array list on a JSP without JSTL

//I have retrieved a Result from MySQL and created and Array-list User .i have sent this //US er Array-list in and sent it through request Response Object. Now

How to install JSTL? The absolute uri: http://java.sun.com/jstl/core cannot be resolved

I don't know what I've done incorrectly, but I can't include JSTL. I have jstl-1.2.jar, but unfortunately I get exception: org.apache.jasper.JasperException:

How does webserver handle HTTP POST [closed]

This might be a very basic question. But, the question that I am trying to address is that Webserver is there to handle HTTP Requests, So it's