JSTL SQL sql:dateParam Tag

java-ee-thumbnail

The <sql: dateParam> tag is used to add parameter to sql statement to the given java.util.Date value. This tag uses action of both <sql: query> and <sql: update> to provide data and time value for value placeholder. Attributes of <sql: dateParam> Tag value: It is used to add value of the parameter for DATE or […]

JSTL SQL sql:param Tag

java-ee-thumbnail

<sql: param> tag is used to set parameter values for SQL statement. This tag uses action of both <sql: query> and <sql: update> to provide value for value placeholder. Attribute of <sql: param> tag value: It is used to specify value to the parameter. Example of <sql: param> tag Details of the Code <sql: setDataSource […]

JSTL SQL sql:update Tag

java-ee-thumbnail

The <sql: update> tag executes SQL statement specified in the sql attribute or in the tag body, for example SQL INSERT, UPDATE or DELETE statements. Attributes of <sql: setupdate>Tag sql: It specifies SQL command that has to be executed. var: It is used to specify variable name used to store result of query. scope: It […]

JSTL SQL sql:query Tag

java-ee-thumbnail

The <sql:query> tag is used to execute a query specified in sql attribute or in the body. It executes SQL statement and saves in the scoped variable. It executes sql query and stores result in specified variable. Attributes of <sql: query>Tag sql: It specifies SQL command that has to be executed. var: It is used […]

JSTL SQL Tags Library

java-ee-thumbnail

The JSTL SQL tags help us interact with the relational databases such as Oracle, MySql and more. Syntax for JSTL SQL Tag The JSTL SQL Tags <sql:setDataSource >: It is used for creating data source that is to be accessed by executing a query. <sql:query >: It is used to execute a query specified in […]

EclipseLink / JPA Annotations – @Inheritance With Joined Table Strategy

eclipse-thumbnail

In the Java Persistence API (JPA) The entities support inheritance, polymorphic, polymorphic associations, and polymorphic queries. Both abstract and concrete classes can be entities, and both of them can be annotated with the @Entity¬†annotation, mapped as entities and queried for as entities. Entities can extend non-entity classes and non-entity classes can extend entity classes, so […]

EclipseLink / JPA Annotations – @Inheritance With Single Table Strategy

eclipse-thumbnail

In the Java Persistence API (JPA) The entities support inheritance, polymorphic, polymorphic associations, and polymorphic queries. Both abstract and concrete classes can be entities, and both of them can be annotated with the @Entity¬†annotation, mapped as entities and queried for as entities. Entities can extend non-entity classes and non-entity classes can extend entity classes, so […]

EclipseLink / JPA Annotations – @ManyToMany

eclipse-thumbnail

The Many-To-Many annotation is one of the most important annotations provided by the EclipseLink – JPA. It defines a many-valued association with ManyToMany multiplicity (See single-valued multiplicity and different kind of many-valued multiplicity). A newly concept has introduced such as (JoinTable) as well as a new annotation like (@JoinTable) when we are coming to introduce […]

JSTL XML x:out Tag

java-ee-thumbnail

The <x: out> tag is used to display the result of xml path expression and writes result to the jsp writer object. Syntax Of <x: out> Tag Attributes Of <x: out> Tag select: To evaluate the particular object it specifies xml Xpath expression. escapeXML: Accepts special character an convert it to their corresponding character entity […]

JSTL XML Tags Library

java-ee-thumbnail

The XML tag library is used for creating and manipulating the xml data in jsp page and also transform the data used in jsp page. They are mostly used with xml documents rather then html documents. The Syntax for the JSTL XML Tag The JSTL XML Tags <x: out>: It is used to display the […]