Samual Sam has Published 2310 Articles

What is info attribute in JSP?

Samual Sam

Samual Sam

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

358 Views

The info attribute lets you provide a description of the JSP. The following is a coding example −

Select query using MySQL IN() and avoid sorting in it

Samual Sam

Samual Sam

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

296 Views

Using IN() sorts the result for the specific field. To avoid this, use ORDER BY and FIND_IN_SET() for the field.To understand the find_in_set(), let us create a table. The query to create a table is as follows −mysql> create table ProductStock    -> (    -> ProductId int,    -> ... Read More

SecureRandom getSeed() method in Java

Samual Sam

Samual Sam

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

135 Views

The seed bytes as required can be obtained using the method getSeed() in the class java.security.SecureRandom. This method requires a single parameter i.e. the number of seed bytes that need to be generated and it returns the seed bytes as required.A program that demonstrates this is given as follows −Example Live ... Read More

What is language attribute in JSP?

Samual Sam

Samual Sam

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

496 Views

The language attribute indicates the programming language used in scripting the JSP page.For example, because you usually use Java as the scripting language, your language option looks like this −

How to use a value of XPath expression result in JSP in a variable?

Samual Sam

Samual Sam

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

224 Views

The tag sets a variable to the value of an XPath expression.If the XPath expression results in a boolean, tag sets a java.lang.Boolean object; for a string, java.lang.String; and for a number, java.lang.Number.AttributeThe tag has the following attributes −AttributeDescriptionRequiredDefaultvarA variable that is set to the value of ... Read More

What is isELIgnored Attribute in JSP?

Samual Sam

Samual Sam

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

7K+ 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

444 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

212 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

268 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

468 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

Advertisements