java.sql.SQLException: General error solution
Share
Share
ShareThis is the viewer question asked by smiten. how can i compare the database stored time to current time? I had previously written an article about how to display time in jspNow just make some changes retrieve the database time and split the values of hours,minutes,seconds and finally check the values to get the real [...]
ShareAlready i wrote a post about creating random image using servlet that is loacted here http://s2sgateway.com/?p=378,With the continuation here i give you complete code for creating captcha to validate a form to differentiate/protect from robots and spams .In this project i had placed one form page for submitting information with two servlets one for creating [...]
ShareToday we are going to learn about how to retrieve the created time and date of all files in a folder. This is useful when you want to track the session information of certain files or folders.Lets look the code below. <%@ page contentType=”text/html; charset=iso-8859-1″ language=”java” import=”java.io.File, java.util.Date, java.util.Calendar” errorPage=”" %> <html> <head> <title>Untitled Document</title> [...]
ShareToday we are going to learn how to create a random letter image known as captcha using servlet. Just a simple coding can do it copy the code below and save it and compile it you can directly view the servlet in tomcat using url “http://localhost:8080/captcha/servlet/CaptchaServlet” for this make adjustment in web.xml file by adding [...]
ShareA simple tricky program that can read all the html codes of given url using java the following code does that import java.net.*; import java.io.*; public class URLReader { public static void main(String[] args) throws Exception { URL yahoo = new URL(“http://www.yahoo.com”); BufferedReader in = new BufferedReader( new InputStreamReader( yahoo.openStream())); String inputLine; while ((inputLine = [...]