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


  • 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


  • 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 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 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
  • Describe the use of namespaces in an XML document.

    The XML namespaces recommendation defines a way to distinguish between duplicate element type and attribute names. Such duplication might occur, for example, in an XSLT stylesheet or in a document that contains element types and attributes from two different DTDs.

    An XML namespace is a collection of element type and attribute names. The namespace is identified by a unique name, which is a URI. Thus, any element type or attribute name in an XML namespace can be uniquely identified by a two-part name: the name of its XML namespace and its local name. This two-part naming system is the only thing defined by the XML namespaces recommendation.

    XML namespaces are declared with an xmlns attribute, which can associate a prefix with the namespace. You can declare an XML namespace on any element in an XML document. The declaration is in scope for the element containing the attribute and all its descendants (unless it is overridden or undeclared on one of those descendants). It is a common practice to declare all namespaces within the root element. For example:

    <!-- Declares two XML namespaces. Their scope is the 'aaa' and 'bbb' elements. -->
    <aaa xmlns:foo="" xmlns="">

    If an XML namespace declaration contains a prefix, you refer to element type and attribute names in that namespace with the prefix. For example:

    <!-- 'aaa' and 'bbb' are in the '' namespace, 
         which is associated with the 'foo' prefix. -->
    <foo:aaa xmlns:foo="">

    If an XML namespace declaration does not contain a prefix, the namespace is the default XML namespace and you refer to element type names in that namespace without a prefix. For example:

    <!-- This is equivalent to the previous example but uses a 
         DEFAULT namespace instead of the 'foo' prefix. -->
    <aaa xmlns="">

    The value (unique URI) of the xmlns attribute identifies the namespace, not the prefix. In this example, all elements belong to the same namespace although different prefixes are used.

    <!-- 'aaa' and 'bbb' belong to the same '' namespace. -->
    <foo:aaa xmlns:foo="" xmlns:bar="">

    In this example, all elements belong to different namespaces although they have the same prefixes.

    <!-- 'aaa' and 'bbb' belong to different namespaces. -->
    <foo:aaa xmlns:foo="">
      <foo:aaa /> 
    <foo:bbb xmlns:foo="">
      <foo:bbb /> 

    You may override the prefix used in an XML namespace declaration, simply declare another XML namespace with the same prefix. For example, in the following, the foo prefix is associated with the namespace on the aaa element and the namespace on the bbb element. That is, the name aaa is in the namespace and the name bbb is in the namespace.

    <!-- 'bbb' belongs to overriden '' namespace. -->
    <foo:aaa xmlns:foo="">
      <foo:bbb xmlns:foo="">abcd</foo:bbb>
    This practice leads to documents that are confusing to read and should be avoided.

    When an XML namespace declaration goes out of scope, it simply no longer applies. For example, in the following, the declaration of the namespace does not apply to the bbb element because this is outside its scope.

    <!-- 'bbb' does NOT belong to any  namespace. -->
    <aaa xmlns="">abcd</aaa>

    You may undeclare the default XML namespace - declare a default XML namespace with an empty (zero-length) name (URI). Within the scope of this declaration, unprefixed element type names do not belong to any XML namespace. For example, in the following, the default XML namespace is the for the aaa and there is no default XML namespace for the bbb elements. The name aaa is in the namespace and the name bbb is not in any XML namespace.

    <!-- 'bbb' does NOT belong to any  namespace. -->
    <aaa xmlns="">
        <bbb xmlns="">

    You may NOT undeclare XML namespace prefix. It remains in scope until the end of the element on which it was declared unless it is overridden. Furthermore, trying to undeclare a prefix by redeclaring it with an empty (zero-length) name (URI) results in a namespace error. For example:

    <!-- You may NOT undeclare XML namespace prefix. -->
    <foo:aaa xmlns:foo="">
        <foo:bbb xmlns:foo=""> <!-- ERROR -->

    Attributes can be also explicitly assigned to the given namespace. See the example:

         You may assign namespaces to attributes. 
         'bbb' element belongs to '' namespace.
         'attr' attribute belongs to '' namespace.
    <foo:aaa xmlns:foo="" xmlns:bar="">
      <bar:bbb foo:attr="attribute">abcd</bar:bbb>
    Attributes without a prefix never belongs to any namespace. The attributes do not belong to any namespace even if a default namespace is defined for the relevant element.

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