Are You Recruiter/Hiring Manager?
Cloud-based Candidate Screening | Online Tests
PMP 1600 Questions
PMP 1600 Questions
1600 PMP mock questions 1400 CAPM mock questions 800 SCJP 6 mock questions 600 OCAJP 7 mock questions 590 OCPJP 7 mock questions 556 SCWCD 5 mock questions 500 OCEJWCD 6 mock questions pdfDownload (java,struts, hibernet etc)

Tutorial Home

Hibernate

  • Advantage of Hibernate over JDBC
  • Hibernate Setup with an web Application
  • First Hibernate Application
  • Hibernate mapping with Database TABLE
  • Hibernate Data Type-Java Data Type - SQL Data Type mapping
  • One to Many Relation in Hibernate
  • One to Many Relation in Hibernate bi-directional
  • Many to Many Relation in Hibernate
  • HQL: The Hibernate Query Language
  • Criteria Queries
  • Criteria Queries : Equal (eq), Not Equal(ne), Less than (le), greater than (gt),greater than or equal(ge) and Ordering the results
  • Criteria Queries: And OR conditions
  • Hibernate generator to generate id (primary key)
  • prevent concurrent update in Hibernate,slate object updatation in Hibernate,version checking in Hibernate

    Struts


  • Model View Controller (MVC)
  • Model View Controller (MVC)
  • Struts Flow-How Struts Works?
  • Struts Tutorial - Struts Setup- First Struts Action class setup
  • Message Resources
  • Validation Framework
  • Validation Framework-client side
  • ForwardAction
  • IncludeAction
  • DispatchAction
  • LookupDispatchAction
  • DynaActionForm
  • DynaActionForm
  • Struts Tutorial - Mutli-click prevention using struts tokens-Prevent Duplicate Submission
  • Logic Iterate Map and List

    JSP


  • JSP Tutorial
  • Introduction to JSP
  • JSP Comments
  • JSP Syntax
  • JSP Scripting Elements :Scriptlet, expression, declaration
  • JSP Directives
  • implicit objects in JSP
  • JSP Actions
  • Introduction to JSP
  • jsp:useBean
  • The jsp:setProperty Action
  • The jsp:getProperty Action
  • Introduction to JSP

    Spring


  • Spring Tutorial
  • Introduction to Spring
  • Benefits of Using Spring Framework
  • Inversion of Control in Spring
  • Introduction to BeanFactory
  • Dependency Injection in Spring
  • Collections Setter Injection
  • Bean Scopes in Spring
  • Spring IOC Setup Step by Step
  • Bean Lifecycle in Spring
  • ApplicationContext
  • MessageSources in Spring
  • Web Spring MVC framework
  • Developing Your First Spring Web Application
  • Developing Your Second Spring Web Application with Spring Form
  • Developing Your First Spring Web Application with Spring Validation Framework with Code Example
  • Spring integration with Hibernate
  • Given an XML schema for a document style Web service create a WSDL file that describes the service and generate a service implementation.

    WSDL file:

    					
    <message name="AuthorNotFoundException">
         <part name="Author" type="xsd:string" />
    </message>
    
    <portType name ="BookSearch">
         <operation name="getBooksByAuthor" >
              <input message="tns:getAuthorName">
              <output message="tns:getBookList">
              <fault name="AuthorNotFoundException" message="tns:AuthorNotFoundException">
         </operation>
    </portType>
    					
    					

    Generated service endpoints interface (SEI):

    public interface BookSearch extends java.rmi.Remote {
    	public Books[] getBooksByAuthor(String authorName) throws java.rmi.RemoteException,
    			com.acme.AuthorNotFoundException;
    }
    					

    Generated exception class:

    public class AuthorNotFoundException extends java.lang.Exception{	
    	...	
    	public AuthorNotFoundException(String Author) {
         	...
    	}
    	
    	public getAuthor() {...}
    }
    					

    • portType = ABSTRACT INTERFACE

    • operation = METHOD

    • message = PARAMETERS, RETURN VALUES AND EXCEPTIONS

    More detailed example (also demonstrates references in SOAP 1.1 message):

    WSDL file:

    
    <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                       xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                      xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
                       xmlns:tns="http://www.example.com"
                 targetNamespace="http://www.example.com">
    
     <wsdl:types>
       <xsd:schema targetNamespace="http://www.example.com">
    
         <!-- "Person" type used by "compare" operation,
              note use optional attributes -->
    
         <xsd:complexType name="Person">
           <xsd:sequence>
             <xsd:element name="firstName" type="xsd:string" />
             <xsd:element name="lastName" type="xsd:string" />
           </xsd:sequence>
           <xsd:attribute name="id" type="xsd:ID" use="optional" />
           <xsd:attribute name="href" type="xsd:anyURI" use="optional" />
         </xsd:complexType>
    
       </xsd:schema>
     </wsdl:types>
    
     <!-- RPC style message definitions -->
    
     <wsdl:message name="compareInput">
       <wsdl:part name="person1" type="tns:Person" />
       <wsdl:part name="person2" type="tns:Person" />
     </wsdl:message>
    
     <wsdl:message name="compareOutput">
       <wsdl:part name="result" type="xsd:boolean" />
     </wsdl:message>
    
     <!-- Geometry portType -->
    
     <wsdl:portType name="Human">
       <wsdl:operation name="compare">
         <wsdl:input message="tns:compareInput" />
         <wsdl:output message="tns:compareOutput" />
       </wsdl:operation>
     </wsdl:portType>
    
     <!-- Binding for "Human" portType that
          uses SOAP encoding -->
    
     <wsdl:binding name="HumanBinding" type="tns:Human">
       <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" 
       <wsdl:operation name="compare">
         <soap:operation soapAction="" style="rpc" />
         <wsdl:input message="tns:compareInput">
           <soap:body namespace="http://www.example.com" use="literal" />
         </wsdl:input>
         <wsdl:output message="tns:compareOutput">
           <soap:body namespace="http://www.example.com" use="literal" />
         </wsdl:output>
       </wsdl:operation>
     </wsdl:portType>
    
    </wsdl:definitions>
    					
    					

    Will generate SEI:

    public interface Human extends java.rmi.Remote {
    	public boolean compare(Person person1, Person person2) throws java.rmi.RemoteException;
    }					
    					

    Following Web-Service call:

    Person one = new Person("Mikalai", "Zaikin");
    Person two = new Person("Volha", "Zaikina");
    boolean b = port.compare(one, two);					
    					

    will be serialized in the following SOAP 1.1 message:

    
    <soap:Envelope xmlns:soap= "http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      
        <ns:compare xmlns:ns="http://www.example.com">
          <person1>
            <firstName>Mikalai</firstName>
            <lastName>Zaikin</lastName>
          </person1>
          <person2>
            <firstName>Volha</firstName>
            <lastName>Zaikina</lastName>
          </person2>
        </ns:compare>
        
      </soap:Body>
    </soap:Envelope>
    					
    					

    Following Web-Service call:

    Person one = new Person("Mikalai", "Zaikin");
    boolean b = port.compare(one, one);								
    					

    will be serialized in the following SOAP 1.1 message:

    
    <soap:Envelope xmlns:soap= "http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      
        <ns:compare xmlns:ns="http://www.example.com">
          <person1 href="#unique_person_id" />
          <person2 href="#unique_person_id" />
        </ns:compare>
    
        <ns:Person id="unique_person_id" xmlns:ns="http://www.example.com">
          <firstName>Mikalai</firstName>
          <lastName>Zaikin</lastName>
        </ns:Person>
        
      </soap:Body>
    </soap:Envelope>
    					
    					

    The information you are posting should be related to java and ORACLE technology. Not political.