Karthikeya Boyini has Published 2383 Articles

What is the use of tag in JSP?

karthikeya Boyini

karthikeya Boyini

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

331 Views

The tag redirects the browser to an alternate URL by facilitating automatic URL rewriting, it supports context-relative URLs, and it also supports the tag.AttributeThe tag has the following attributes −AttributeDescriptionRequiredDefaulturlURL to redirect the user's browser toYesNonecontext/ followed by the name of a local web applicationNoCurrent applicationExampleIf you ... Read More

Add a value to Quartet class in JavaTuples

karthikeya Boyini

karthikeya Boyini

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

67 Views

To add a value to the Quartet Tuple, use the addAtX() method. The index can be set here with the X i.e. the place where the value gets added.Let us first see what we need to work with JavaTuples. To work with Quartet class in JavaTuples, you need to import ... Read More

How a JSP page works. Can somebody explains the JSP architecture in simpler terms

karthikeya Boyini

karthikeya Boyini

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

622 Views

The web server needs a JSP engine, i.e, a container to process JSP pages. The JSP container is responsible for intercepting requests for JSP pages. This tutorial makes use of Apache which has built-in JSP container to support JSP pages development.A JSP container works with the Web server to provide ... Read More

LocalDate withYear() method in Java

karthikeya Boyini

karthikeya Boyini

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

126 Views

An immutable copy of a LocalDate with the year altered as required is done using the method withYear() in the LocalDate class in Java. This method requires a single parameter i.e. the year that is to be set in the LocalDate and it returns the LocalDate with the year altered ... Read More

C++ Program to Find Lowest Common Ancestor in a Binary Search Tree

karthikeya Boyini

karthikeya Boyini

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

394 Views

A binary tree which has at most two children, specified as left child and right child. This is a C++ Program to find the lowest common ancestor in a Binary Tree.AlgorithmBegin Create a structure n to declare data d, a left child pointer l and a right child pointer r. ... Read More

What are JSTL formatting tags in JSP?

karthikeya Boyini

karthikeya Boyini

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

390 Views

The JSTL formatting tags are used to format and display text, the date, the time, and numbers for internationalized Websites. Following is the syntax to include Formatting library in your JSP −Following table lists out the Formatting JSTL Tags −S.No.Tag & Description1: To render numerical value with specific precision or format.2: Parses ... Read More

LocalDate withDayOfMonth() method in Java

karthikeya Boyini

karthikeya Boyini

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

115 Views

An immutable copy of a LocalDate with the day of month altered as required is done using the method withDayOfMonth() in the LocalDate class in Java. This method requires a single parameter i.e. the day of month that is to be set in the LocalDate and it returns the LocalDate ... Read More

How to get the MAC address of an iOS/iPhone programmatically?

karthikeya Boyini

karthikeya Boyini

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

745 Views

In iOS versions previous to 7.0 getting the MAC address of device was possible. But with new iOS version it has been disabled for the apps to access MAC address of the device.When it is accessed or requested on current version of iOS it always returns 02:00:00:00:00:00. This has been ... Read More

How to populate a 2d array with random alphabetic values from a range in Java?

karthikeya Boyini

karthikeya Boyini

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

985 Views

To populate a 2d array with random alphabets, use the Random class. Let us first declare a 2d array −char arr[][] = new char[3][3];Now, in a nested for loop, use the Random class object to get random values on the basis of switch case. Here, our range is 3 i.e. ... Read More

The contains() method of Quartet class in JavaTuples

karthikeya Boyini

karthikeya Boyini

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

63 Views

To search a value in JavaTuples Quartet class, you need to use the contains() method.Let us first see what we need to work with JavaTuples. To work with Quartet class in JavaTuples, you need to import the following package −import org.javatuples.Quartet;Note − Steps to download and run JavaTuples program. If ... Read More

Advertisements