This tutorial demonostrates how to create simple Hibernate Application. For this tutorial you need two libraries. Add Hibernate library file to your project and add Java DB Driver library also. This tutorial shows step-by-step method to create Hibernate Application. In this tutorial you will create one Java Bean, One hibernate-mapping; a xml file, One hibernate-config; [...]
Read Full Article25. June 2008
AJAX enables a dynamic, asynchronous Web experience without the need for page refreshes. Find out how this combination of technologies that you already know and love can reinvent your Web development. Wouldn’t it be nice if you could turn your plain old Web pages into something more exciting? Isn’t it time to inject some life into [...]
Read Full Article25. June 2008
This simple CRUD application is based on Struts2 web framework. Used the most easy way to create the appliation. This application demonstrates a very simple application that handles your typical CRUD - Create, Retrieve, Update, Delete operations. It is simple News Portal Application using Struts, JSP, Servlets. CRUD for Admin purpose only. View/Edit/Delete functions are implemented [...]
Read Full Article25. June 2008
I am always looking for easy ways to use less tables in my markup. When designing a website I always aim for no tables but in a web application I may cheat from time to time. Some time ago, thanks to an article on quirksmode, I began creating tableless forms. This trick was great for simple [...]
Read Full Article25. June 2008
Web services are the most attractive target for hackers because even a pre-school hacker can bring down a server by repeatedly calling a web service which does expensive work. Ajax Start Pages like Pageflakes are the best target for such DOS attack because if you just visit the homepage repeatedly without preserving cookie, every hit [...]
Read Full Article25. June 2008
Of course there are many ways to implement a login in a JSF aplication, you can use JAAS, you can use a Servlet Filter, but this one I think is one of the best approaches, of course, in a real application, I usually combine it with some AOP and annotations, but AOP and annotations are [...]
Read Full Article25. June 2008
For .NET use: using System.Data; using System.Data.SqlClient; For java use: import java.sql.*; You will also have to add an ODBC Data Source as follows 1. Open the ODBC Data Source Administrator control panel 2. Select the User DSN tab 3. Click Add 4. Scroll down to end of list and choose SQL [...]
Read Full Article25. June 2008
This is based on the book 19 Deadly Sins of Software Security Buffer Overflows Format String problems Integer range errors SQL injection Command injection Failure to handle errors Cross-site scripting Failing to protect network traffic Use of "magic" URLs and hidden forms Improper use of SSL Use of weak password-based systems Failing to store and protect data securely Information leakage Improper file access Trusting network address information Race conditions (improper [...]
Read Full Article25. June 2008
Three scopes: 1. request scope: destroyed when servlet finishes processing request 2. session scope: destroyed when user closes browser [...]
Read Full Article25. June 2008
Requirements: NetBeans IDE 1. Create a new web project named JSFintroDemo 2. In last window, select JavaServer Faces 3. Rename Servlet URL Mapping to *.faces 4. Open web.xml and you will see: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <context-param> <param-name>com.sun.faces.verifyObjects</param-name> <param-value>false</param-value> [...]
Read Full Article
26. June 2008
0 Comments