grab our rss feed  Follow us on twitter

s2sgateway

Practical Learning of Programming languages such us j2ee,java,jsp

Subscribe now for latest updates

  Powered by FeedBurner

Entries for the ‘Java’ Category

java.sql.SQLException: General error solution

Share

Leave a Comment

Convert jar to exe file

Share

Comments (1)

How to extract war file in java

Share

Leave a Comment

Students management java project download

Share

Leave a Comment

compare current time with database retrieved time in jsp

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 [...]

Leave a Comment

captcha project in jsp/servlet

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 [...]

Comments (2)

pagination in jsp,java

Share

Comments (6)

Finding created/modified time of files in a folder

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> [...]

Leave a Comment

Creating captcha(random letter image) in jsp

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 [...]

Comments (2)

Reading Html code of all the url using java

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 = [...]

Leave a Comment

create a file from form input in java,jsp

Share

Leave a Comment

Send Email in Java

Share

Comments (5)

Print a particular area of a page using javascript

Share

Comments (3)

How to use batch update in java and jsp

Share

Comments (1)

Setting Environment Variable in XP

Share

Leave a Comment