JSTL Function fn:indexOf()

java-ee-thumbnail

The <fn:indexOf()> is a string function of JSTL. This function returns the index within a string of a specified substring. This function is used to get the first occurrence of the substring in the given string. This function takes string type as arguments and returns int type. Syntax of <fn:indexOf()> Tag Example Steps for Execution […]

JSTL Function fn:escapeXml()

java-ee-thumbnail

The <fn:escapeXml()> function is used to escape characters that could be interpreted as XML markup. This is a string function of JSTL. This function also used to replace all characters which have a special meaning in XML. The syntax of<fn:escapeXml()> Tag In this syntax string is of data type “String” it returns a string. Example […]

JSTL Function fn:endsWith()

java-ee-thumbnail

The <fn:endsWith()> function is used for checking the suffix of a string. This function manipulates the string that ends with specific character or string in JSP. Syntax of <fn:endsWith()> Tag In the syntax string and suffix are data type String. It returns the Boolean value. If the input string is tested successfully then the functions […]

JSTL Function fn:containsIgnoreCase()

java-ee-thumbnail

The <fn:containsIgnoreCase()> function is a string function of JSTL. This function is used to check whether the entered string contains the specified substring irrespective of upper case or lower case. This function returns the boolean value. Syntax of Function <fn:containsIgnoreCase()> Example of Function <fn:containsIgnoreCase()> In the above syntax string and substring are of data type […]

JSTL Function fn:contains()

java-ee-thumbnail

The fn: contains() is a string function of JSP Standard Tag Library (JSTL). It is used to specify whether the string contains specified substring or not. If it contains substring, it returns true or else false. Syntax of Function fn: contains() Example Details of the Code <c:out value=”${fn:contains(myjavabeat,java)}”/> tag is used evaluate result of the […]

Eclipselink / JPA – Abstract Entity And Non-Entity Classes In The Entity Inheritance

eclipse-thumbnail

When we’ve discussed the inheritance and mapped superclasses concepts in the previous tutorials, we are avoiding concepts that could confuse the readers or makes misunderstanding for them. Most of the clarified examples didn’t provide an Abstract Entity as a target entities that can be managed by the entity manager. On the contrary an Abstract Entity was only […]

JSTL XML x:param Tag

java-ee-thumbnail

The tag is subtag of <x:transform> tag. This tag is used with transform tag to set a parameter in the XSLT stylesheet. This tag is used as nested with <x:transform> tag for sending the parameter along with the values. Syntax of xml <x:param> tag Attributes of xml <x:param> tag name : This attribute specifies the […]

JSTL XML x:choose ,x:when and x:otherwise Tags

java-ee-thumbnail

The <x:choose> tag is XML tag used for checking conditional statements. This is similar to java switch statement. In java program we use the case statement but in JSTL we use <c:when< and <x:otherwise< instead of case statement. Syntax of <x:choose> Tag JSTL XML <x:when> Tag This is the subtag of <x:choose> tag. The <x:when> […]

JSTL XML x:transform Tag

java-ee-thumbnail

The <x:transform> tag is used to transform an xml data based on XSLT script. This tag used to apply an XSL transformation on an XML document. Syntax of <x:transform> Tag Attributes of <x:transform> Tag Attributes Description var This attribute specifies the variable name to which transformed XML document has to be set. scope This attribute […]

EclipseLink / JPA Annotations – @AttributeOverride And @AssociationOverride

eclipse-thumbnail

At this tutorial we’ll introduce using of @AttributeOverride and @AssocationOverride that mentioned intentionally at the @MappedSuperclass tutorial. As you’ve remembered at @MappedSuperclass annotation tutorial, we’ve mentioned at the Database Design section the possibility of using @AttributeOverride and @AssociationOverride to override the attributes and associations that inherited from the mapped superclass. An entity can inherit a persistent entity state and […]