Tagged Questions

Servlets are programs that run on a Web or Application server and act as a middle layer between a request coming from a Web browser or other HTTP client and databases or applications on the HTTP server.

My java servlets have been running perfectly out of my html forms for many, many years. Now my long-time ISP has thrown in the towel so I had to get a new ISP. They support my servlets, they say, and ...

hello every one i am learning servlet and i am having a problem while saving data into mysql its not saving in mysql while user enters the value.
hello every one i am learning servlet and i am having ...

I am trying to send request to my jsp page i.e manufacturer details and here getting the attribute via session. but it throws an error 500
I am trying to send request to my jsp page
but it throws an ...

I'm uploading my project into Openshift server using Eclipse IDE plugin, My project is working fine in local server. But after uploading it into server, It says:
See this SCREENSHOT.
When i see into ...

What method should I use to retrieve and display my image which is store in mysql with the datatype longblob. As for string I simply use
(Example: rs.getString("foodname"))
but waht is the datatype ...

I am trying to run the code that's in this website but I am not getting the result I am supposed to. I have developed the project on Eclipse and I have an html page on the web content folder and the ...

I calling the LoginCheckServlet from LoginPage.jsp, but I don't want the URL to be LoginCheck when I forward the page. If the login is correct, then I want to forward to HomePage.jsp with /Home, if ...

My jsp page consists of a form that takes in an email address. I then use java to check if my postgresql database already contains that email address. Right now my servlet just redirects the user back ...

I wrote a filter, but the result response does not contain the specified header.
Is the final response is the same response, which was modified in the filter?
What I need to modify to get a correct ...

I'm developing a servlet and deploying it on my local Glassfish instance.
That servlet communicates to an external system using Web Services. The problem i'm facing is that the web service response ...

I am newbie and I am creating a web application where user can register and create there profile.
I really don't have idea , how does user profile concept work or how to create it like facebook or any ...

One of the webservices I am trying to connect requires me to submit a form to an url, lets say LINK_A.
I have a form view VIEW_A, I submit VIEW_A to my own servlet called SERVLET_A. Here in SERVLET_A ...

I'm using the Java Servlet 3.0 to upload files, using the @MultipartConfig annotation and request.getParts() to obtain the files.
When a file is uploaded, a TMP file is created in the Web Application ...

I have a java application (servlet, jsp, html, javascript). It is running on a apache http server.
I am currently monitoring my application and I can see that "dns lookup" are taking a long time on ...

I created a web project using GWT and seam. All my GWT pages are managed by seam which is fine. Where I am having trouble is when I try to upload a file to my server. I call a specific servlet to do ...

I am able to load my my sql jdbc driver from the other ways but when am trying to register it with the use of servletconfig interface it gives an exception: java.lang.ClassNotFoundException: Though I ...

In Eclipse Luna I have a Dynamic Web Project (with default build settings) on Apache Tomcat 8.0. In the project, I have a JSP loader.jsp that calls a method in a Java class FileLoader that returns a ...

I have this JSP/Servlet based application where I have the database columns output shown in a table. But, I want one of the column contents to come out as hyperlinks for all 100 entries.
How should ...

I'm using ThreadLocal in a servlet under the assumption that any reference to the ThreadLocal value won't outlive the request. This assumption is based on the fact that servlets kick off a thread for ...

I have created a Dynamic Web Project in Eclipse 3.6.1(Helios). I have added JAR files to the build path for this project and they all worked perfectly fine. However, Jsoup is one JAR file that is not ...

Am develop code for upload images. but that not work properly. in my servlet i will check contenttype if contexttype match to "image/jpeg" or "image/jpeg" the file will write other wise show an error ...