1. Index.jsp
2. Web.xml
3. HibernateUtil.java
4. Person.java
5. hibernate.cfg.xml
6. Person.hbm.xml
7. server.xml
1 | <%@ page import="java.io.*"%> |
1 | The web.xml is: |
|
|
1 | <%@ page import="java.io.*"%> |
1 | The web.xml is: |
| This topic can be a little tricky ...! But basically there are 2 ways 1. Declarative security, in which you configure your applications web.xml and the containers' users file. Then essentially the server takes care of implementing authentication, access restriction and SSL as defined by you. This is easier but suffers from lack of portability, as the process varies for different servers. 2. Programatic security in which some or all of the security is handled by you. this is more portable but requires more work. |
1 2 | window.open ("http://enrichjava.blogspot.com/","mywindow","status=1,toolbar=0"); |
1 | <body oncontextmenu="return false;"> |
1 2 3 4 5 6 7 | <SCRIPT type="text/javascript"> window.history.forward(); function noBack() { window.history.forward(); }</SCRIPT></HEAD><BODY onload="noBack();" onpageshow="if (event.persisted) noBack();" onunload=""> |