How to use Navigable set interface in Android?

Nishtha Thakur
Published on 20-Mar-2019 10:13:24
This example demonstrates about How to use Navigable set interface in AndroidStep 1 &minus Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"   ... Read More

How do you define multiple filters in JSP?

Arjun Thakur
Published on 20-Mar-2019 10:01:04
Your web application may define several different filters with a specific purpose. Consider, you define two filters AuthenFilter and LogFilter. Rest of the process will remain as explained above except you need to create a different mapping as mentioned below −<filter>    <filter-name>LogFilter</filter-name>    <filter-class>LogFilter</filter-class>    <init-param>       ... Read More

How to use a filter in JSP?

Ankith Reddy
Published on 20-Mar-2019 09:57:23
Following example shows how to print the client's IP address and the current date time, each time it would access any JSP file. This example will give you a basic understanding of the JSP Filter, but you can write more sophisticated filter applications using the same concept −// Import required ... Read More

What are filters in JSP?

George John
Published on 20-Mar-2019 09:55:20
Servlet and JSP Filters are Java classes that can be used in Servlet and JSP Programming for the following purposes To intercept requests from a client before they access a resource at the back end.To manipulate responses from the server before they are sent back to the client.There are various types ... Read More

How to read all form parameters in JSP?

Chandu yadav
Published on 20-Mar-2019 09:50:43
Following is a generic example which uses getParameterNames() method of HttpServletRequest to read all the available form parameters. This method returns an Enumeration that contains the parameter names in an unspecified order.Once we have an Enumeration, we can loop down the Enumeration in the standard manner, using the hasMoreElements() method ... Read More

How to pass check boxes data using JSP?

Arjun Thakur
Published on 20-Mar-2019 09:47:47
Checkboxes are used when more than one option is required to be selected.Following is an example HTML code, CheckBox.htm, for a form with two checkboxes.<html>    <body>       <form action = "main.jsp" method = "POST" target = "_blank">          <input type = "checkbox" name = ... Read More

How to read form data using JSP via POST Method?

Ankith Reddy
Published on 20-Mar-2019 09:43:06
Below is the main.jsp JSP program to handle the input given by web browser using the GET or the POST methods.Infact there is no change in the above JSP because the only way of passing parameters is changed and no binary data is being passed to the JSP program. File ... Read More

How to get programmatically android device secure id?

Jennifer Nicholas
Published on 20-Mar-2019 08:45:52
This example demonstrate about How to get programmatically android device secure id.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.<?xml version = "1.0" encoding = ... Read More

How to get programmatically android device name?

Nitya Raut
Published on 20-Mar-2019 08:23:56
This example demonstrate about How to get programmatically android device name.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.<?xml version = "1.0" encoding = "utf-8"?> ... Read More

What are the standard attributes that should be passed to a custom tag in a JSP page?

Samual Sam
Published on 20-Mar-2019 08:31:41
Consider including the following properties for an attribute −S.No.Property & Purpose1nameThe name element defines the name of an attribute. Each attribute name must be unique for a particular tag.2requiredThis specifies if this attribute is required or is an optional one. It would be false for optional.3rtexprvalueDeclares if a runtime expression ... Read More
Advertisements