Samual Sam has Published 2492 Articles

What is isELIgnored Attribute in JSP?

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:25

6K+ Views

The isELIgnored attribute gives you the ability to disable the evaluation of Expression Language (EL) expressions which has been introduced in JSP 2.0.The default value of the attribute is true, meaning that expressions, ${...}, are evaluated as dictated by the JSP specification. If the attribute is set to false, then ... Read More

Check replication type in MySQL?

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:25

342 Views

To check replication type, you can use SHOW GLOBAL VARIABLES command. The syntax is as follows −SHOW GLOBAL VARIABLES LIKE 'binlog_format';The above syntax returns either ROW, MIXED or STATEMENT. The default resultant is ROW.Now you can implement the above syntax to check replication type. The query is as follows −mysql> ... Read More

IntBuffer allocate() method in Java

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:25

165 Views

A new IntBuffer can be allocated using the method allocate() in the class java.nio.IntBuffer. This method requires a single parameter i.e. the capacity of the buffer. It returns the new IntBuffer that is allocated. If the capacity provided is negative, then the IllegalArgumentException is thrown.A program that demonstrates this is ... Read More

What is a include directive in JSP?

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:25

146 Views

The include directive is used to include a file during the translation phase. This directive tells the container to merge the content of other external files with the current JSP during the translation phase. You may code the include directives anywhere in your JSP page.The general usage form of this ... Read More

How to iterate over nodes of XML in JSP?

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:25

342 Views

The tag is used to loop over nodes in an XML document.AttributeThe tag has the following attributes −AttributeDescriptionRequiredDefaultselectThe XPath expression to be evaluatedYesNonevarName of the variable to store the current item for each loopNoNonebeginThe start index for the iterationNoNoneendThe end index for the iterationNoNonestepThe size of the index ... Read More

KeyPairGenerator genKeyPair() method in Java

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:25

100 Views

A key pair can be generated using the genKeyPair() method in the class java.security.KeyPairGenerator. This method requires no parameters and it returns the key pair that is generated.A program that demonstrates this is given as follows −Example Live Demoimport java.security.*; import java.util.*; public class Demo {    public static void main(String[] ... Read More

Extract tuples with specified common values in another column in MySQL?

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:25

381 Views

To extract tuples with specified common values, use the following syntax −SELECT DISTINCT aliasName.yourColumnName1, aliasName.yourColumnName2, aliasName1.yourColumnName 1, aliasName1.yourColumnName2 FROM yourTableName aliasName INNER JOIN yourTableName aliasName1 ON aliasName.yourColumnName1 = aliasName1.yourColumnName1 WHERE aliasName.yourColumnName2 = 'value1' AND aliasName1.yourColumnName2 = 'value2';To understand the above syntax, let us create a table. The query to create ... Read More

IntBuffer wrap() method in Java

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:25

310 Views

An int array can be wrapped into a buffer using the method wrap() in the class java.nio.IntBuffer. This method requires a single parameter i.e. the array to be wrapped into a buffer and it returns the new buffer created. If the returned buffer is modified, then the contents of the ... Read More

How to write a MySQL “LIMIT” in SQL Server?

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:25

273 Views

You need to use TOP(1) in SQL Server. The syntax is as follows −SELECT TOP(1) *FROM yourTableName WHERE yourCondition;To understand the above syntax, let us create a table. The query to create a table is as follows −create table TopDemoInSQLServer (    Id int,    Name varchar(10) );The snapshot of ... Read More

How to apply XSL transformation on an XML document?

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:25

387 Views

The tag applies an XSL transformation on an XML document.AttributeThe tag has the following attributes −AttributeDescriptionRequiredDefaultdocSource XML document for the XSLT transformationNoBodydocSystemIdURI of the original XML documentNoNonexsltXSLT stylesheet providing transformation instructionsYesNonexsltSystemIdURI of the original XSLT documentNoNoneresultResult object to accept the transformation's resultNoPrint to pagevarVariable that is set to ... Read More

Advertisements