background preloader

Download Latest Version of IntelliJ IDEA

Download Latest Version of IntelliJ IDEA
Related:  JSH(jsf+spring+hibernate)

Horstmann Chapter 27 Chapter 27 Chapter Goals To implement dynamic web pages with JavaServer Faces (JSF) technology To learn the syntactical elements of JavaServer Faces To learn about navigation in JSF applications To build three-tier web applications A Simple JSF Program JSF: Java Server Faces To develop a JSF application, you need a web server that is integrated with a JSF container A JSF page contains HTML and JSF tags The user interface of a JSF application is described by a set of JSF pages Each JSF page has the following structure: <html><%@ taglib uri=" prefix="f" %><%@ taglib uri=" prefix="h" %><f:view><head><title>Page title</title></head><body><h:form> Page contents </h:form></body></f:view></html> Executing the datetime Web Application File datetime/index.jsp The JSF Container Rewrites the Requested Page The HTML Code That Is Generated by a JSF Page File datetime/WEB-INF/faces-config.xml Important Design Principle of the JSF Technology Self Check

Effective Scala Table of Contents Other languages 日本語Русский简体中文 Introduction Scala is one of the main application programming languages used at Twitter. Scala provides many tools that enable succinct expression. Above all, program in Scala. This is not an introduction to Scala; we assume the reader is familiar with the language. This is a living document that will change to reflect our current “best practices,” but its core ideas are unlikely to change: Always favor readability; write generic code but not at the expensive of clarity; take advantage of simple language features that afford great power but avoid the esoteric ones (especially in the type system). And have fun. Formatting The specifics of code formatting — so long as they are practical — are of little consequence. This is of particular importance to Scala, as its grammar has a high degree of overlap. We adhere to the Scala style guide plus the following rules. Whitespace Indent by two spaces. Naming Use short names for small scopes Use vals Prefer:

Penetration Testing Tools - IT Best Practice Penetration Testing is not a small task. Its required lots of practice and tools knowledge to get the right information and put all the information in Black & White. Tools here describe here are based on BackTrack Linux Version 5 Release 1. Directory Structure of BackTrack Linux Version 5 Release 1 A. Network Analysis 1. 1. dnsdict6 2. dnsenum 3. dnsmap 4. dnsrecon 5. dnstracer 6. dnswalk 7. fierce 8. ldb 9. maltego 10. reverseraider 2. 1. 0trace 2. alive6 3. arping 4. detect-new-ip6 5. fping 6. hping2 7. hping3 8. netdiscover 9. netifera 10. nmap 11. nping 12. pbnj 13. sctpscan 14. svwar 15. trace6 16. traceroute 17. zenmap 3. 1. fragroute 2. fragrouter 3. ftester 4. hexinject 5. sniffjoke 4. 1. autoscan 2. implementation6 3. implementation6d 4. netifera 5. nmap 6. scapy 7. zenmap 5. 1. 2. tcpdump 3. tshark 4. wireshark 6. 1. nmap 2. p0f 3. sctpscan 4. xprobe2 5. zenmap 7. 1. dmitry 2. netmask 3. scapy 4. tcptraceroute 8. 1. amap 2. dmitry 3. httprint 4. httsquash 5. miranda 6. nbtscan 7. ncat 8. nmap 9. sslscan 10. zenmap 9. 1. samrdump 10. 2. nmap

JSF 2.0 + Spring + Hibernate integration example Here’s a long article to show you how to integrate JSF 2.0, Spring and Hibernate together. At the end of the article, you will create a page which display a list of the existing customer from database and a “add customer” function to allow user to add a new customer into database. P.S In this example, we are using MySQL database and deploy to Tomcat 6 web container. 1. Directory structure of this example 2. Create a customer table and insert 2 dummy records. DROP TABLE IF EXISTS `mkyongdb`. 3. A model class and Hibernate mapping file for customer table. File : package com.mkyong.customer.model; import java.util.Date; public class Customer{ public long customerId; public String name; public String address; public Date createdDate; //getter and setter methods } File : Customer.hbm.xml 4. Spring’s BO and DAO classes for business logic and database interaction. File : File : File : File : File : CustomerBean.xml 5. <?

Typesafe - the stack built to scale featuring Scala, Akka and Play Ophcrack 17. Integrating with other web frameworks 17. Integrating with other web frameworks This chapter details Spring's integration with third party web frameworks such as JSF, Struts, WebWork, and Tapestry. One of the core value propositions of the Spring Framework is that of enabling choice. In a general sense, Spring does not force one to use or buy into any particular architecture, technology, or methodology (although it certainly recommends some over others). This freedom to pick and choose the architecture, technology, or methodology that is most relevant to a developer and his or her development team is arguably most evident in the web area, where Spring provides its own web framework (Spring MVC), while at the same time providing integration with a number of popular third party web frameworks. Having dispensed with the woolly sales patter (c.f. the previous paragraph), the remainder of this chapter will concentrate upon the meaty details of integrating your favorite web framework with Spring. 17.2 Common configuration <?

Getting Started — Scala IDE documentation Installation Scala IDE for Eclipse is best installed (and updated) directly from within Eclipse. This is done by using Help → Install New Software..., add the Add... button in the dialog. Choose a name for the update site (Scala IDE is an obvious choice). Then read the next section to select which version you will install. Choosing what version to install The list of URLs of the different update sites are available in the download area. For Scala 2.10: provides support for projects using Scala 2.10 (any minor version). If you want to live on the bleeding edge (i.e., using the development stream for Scala and Scala IDE), check the nightlies section to find the one that fits your needs. The version of Scala used inside Scala IDE cannot be chosen per project. Finishing installation Copy the URL as location and hit OK to validate. Select Scala IDE for Eclipse from the list of available features. After having restarted Eclipse, Scala IDE is installed. Using Scala IDE with an existing project Important

Cain & Abel Cain & Abel is a password recovery tool for Microsoft Operating Systems. It allows easy recovery of various kind of passwords by sniffing the network, cracking encrypted passwords using Dictionary, Brute-Force and Cryptanalysis attacks, recording VoIP conversations, decoding scrambled passwords, recovering wireless network keys, revealing password boxes, uncovering cached passwords and analyzing routing protocols. The program does not exploit any software vulnerabilities or bugs that could not be fixed with little effort. It covers some security aspects/weakness present in protocol's standards, authentication methods and caching mechanisms; its main purpose is the simplified recovery of passwords and credentials from various sources, however it also ships some "non standard" utilities for Microsoft Windows users. The latest version is faster and contains a lot of new features like APR (Arp Poison Routing) which enables sniffing on switched LANs and Man-in-the-Middle attacks.

JSF 2.0,Spring 3.0.0 and Hibernate 3.3.2GA Putting them all togeather with minimal xml configuration! I spent almost 2 days putting these three together to generate a test application. The beauty about this app is it dose not have any xml configuration file except of course the applicationcontext.xml for spring. And in that file also there is just the datasource defined. I thought of putting it down here in order to save somebody stumbling with the same some time. What Does the app do? well its just a test application. Lets get directly dirty with the code Lets start with the applicationContext.xml file .. As you see all you have done is defined your datasource and wired it with entityManagerFactory which will be used by hibernate. As you must have noticed here we only declare the persistence-unit name which is used by spring. . here we dont define any beans or navaigation rules here we just have our resource bundle and the reslover for faces beans. so now its all configured. next is the DAOimpl class then we have the spring service classes and finally the backing bean

'scala' tag wiki Criteria (Hibernate API Documentation) All Superinterfaces: CriteriaSpecification All Known Implementing Classes: CriteriaImpl, CriteriaImpl.Subcriteria public interface Criteriaextends CriteriaSpecification Criteria is a simplified API for retrieving entities by composing Criterion objects. The Session is a factory for Criteria. List cats = session.createCriteria(Cat.class) .add("name", "Iz%") ) .add( "weight", new Float(minWeight) ) ) .addOrder( Order.asc("age") ) .list(); You may navigate associations using createAlias() or createCriteria(). List cats = session.createCriteria(Cat.class) .createCriteria("kittens") .add("name", "Iz%") ) .list(); List cats = session.createCriteria(Cat.class) .createAlias("kittens", "kit") .add("", "Iz%") ) .list(); You may specify projection and aggregation using Projection instances obtained via the factory methods on Projections. Author: Gavin King See Also: getAlias public String getAlias() Returns: setProjection add Throws:

Programming in Scala, First Edition Programming in Scala, First Editionby Martin Odersky, Lex Spoon, and Bill VennersDecember 10, 2008 Martin Odersky made a huge impact on the Java world with his design of the Pizza language. Although Pizza itself never became popular, it demonstrated that object-oriented and functional language features, when combined with skill and taste, form a natural and powerful combination. Pizza's design became the basis for generics in Java, and Martin's GJ (Generic Java) compiler was Sun Microsystem's standard compiler starting in 1.3 (though with generics disabled). I had the pleasure of maintaining this compiler for a number of years, so I can report from first-hand experience that Martin's skill in language design extends to language implementation. Since that time, we at Sun tried to simplify program development by extending the language with piecemeal solutions to particular problems, like the for-each loop, enums, and autoboxing. Will Scala be the next great language? How to use this book