The <fn: substringBefore> is function of JSTL which is used to extract the part of the string before the specified substring. Syntax Of <fn: substringBefore> Tag Example Details of the Code < c:set var=”str” value=”hello world!!!! Welcome to JavaBeat”> tag is used to set variable name and to display result in the output using value …
JSTL Function fn:substringAfter()
The <fn: substringAfter> is function of JSTL which is used to extract the part of the string after the specified substring. Syntax Of <fn: substringAfter> Tag Example Details of the Code < c:set var=”str” value=”hello world..Welcome to JavaBeat”> tag is used to set variable name and to display result in the output using value attribute. …
JSTL Functions
JSTL function tag library contains set of string manipulation functions that can be used with the JSP Expression Language. Syntax of JSTL Functions Tag Library JSTL Function Tags <fn:contains()>: It is used to check whether string contains specified sub string or not. <fn:containsIgnoreCase()>:It returns true if string contains specified substring ,ignores case and also returns …
JSTL XML x:parse Tag
The <x: parse> tag is used to parse the xml content and the result will be stored in specified variable. Syntax Of <x: parse> Tag Attributes Of <x: parse> Tag Attributes Description doc Specifies that source XML document to be parsed. systemId Specifies the system identifier in xml document for parsing. filter Filter object is …
JSTL SQL sql:query Tag
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
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 …
JSTL Format fmt:requestEncoding Tag
The <fmt: requestEncoding> tag is used to set the character encoding of a request. The Syntax Of <fmt: requestEncoding> Tag Attributes of <fmt: requestEncoding> Tag value: The character encoding is further used to decode the request parameter. Example In first ResourceBundle class we have put color name Listing 1: EncCode_gg.java The another ResourceBundle contains color …
JSTL Format fmt:message Tag
The <fmt: message> tag maps key to localized message to return the value using the resource bundle specified in the bundle attribute. Syntax Of <fmt: message> Tag Attributes Of <fmt: message> Tag Attributes Description key It is used for specifying the key whose value which we want to display. bundle Specifies the resource bundle that …