George John has Published 1081 Articles

How to use Action in JSP?

George John

George John

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

1K+ Views

The plugin action is used to insert Java components into a JSP page. It determines the type of browser and inserts the or tags as needed.If the needed plugin is not present, it downloads the plugin and then executes the Java component. The Java component can be either ... Read More

Handling optional/empty data in MongoDB?

George John

George John

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

404 Views

In order to handle empty data, you can use $ne operator. Let us create a collection with documents. Following is the query>db.handlingAndEmptyDataDemo.insertOne({"StudentName":"John", "StudentCountryName":""}); {    "acknowledged" : true,    "insertedId" : ObjectId("5c9cbd5ca629b87623db1b12") } >db.handlingAndEmptyDataDemo.insertOne({"StudentName":"John", "StudentCountryName":null}); {    "acknowledged" : true,    "insertedId" : ObjectId("5c9cbd6ba629b87623db1b13") } > db.handlingAndEmptyDataDemo.insertOne({"StudentName":"John"}); {    "acknowledged" ... Read More

How to make Animate text from one TextView to another in Android?

George John

George John

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

820 Views

This example demonstrate about How to make Animate text from one TextView to another.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.     ... Read More

How to use Android sequence layout?

George John

George John

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

536 Views

Before getting into android sequence layout, we should know what is sequence layout in android. Sequence layout contains a sequence of steps with the progress bar. According to sequence, it follows an animated progress bar.This example demonstrates How to use Android sequence layout.Step 1 − Create a new project in ... Read More

How can I make my layout scroll vertically in Android?

George John

George John

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

8K+ Views

Before getting into example, we should know what is vertical Scroll View(Scroll View). Vertical Scroll view provide by android.widget.ScrollView class. It is used to scroll child views in a vertical direction.This example demonstrates how to use Vertical Scroll view.Step 1 − Create a new project in Android Studio, go to ... Read More

How to reverse the direction of marquee of a TextView in Android?

George John

George John

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

630 Views

This example demonstrate about How to reverse the direction of marquee of a Text View.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.   ... Read More

How to share app data with other applications in android?

George John

George John

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

1K+ Views

In android using implicit intent, we can send data with other applications using ACTION_SEND action. We have to call Intent.createChooser() to open default chooser of android mobile to send the data. it may same or different in Android mobiles.This example demonstrates how to share app data with other applications in ... Read More

Android Popup Menu Example

George John

George John

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

2K+ Views

Popup menu just like a menu, it going to be display either above of the view or below of the view according to space on activity. Here is the simple solution to create android popup menu.Step 1 − Create a new project in Android Studio, go to File ⇒ New ... Read More

Can MySQL automatically convert empty strings to NULL?

George John

George John

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

15K+ Views

You need to use NULLIF() function from MySQL. The syntax is as follows:SELECT NULLIF(yourCoumnName, ’ ’) as anyVariableName from yourTableName;In the above syntax, if you compare empty string( ‘ ‘) to empty string( ‘ ‘), the result will always be NULL. However, if you compare with NULL to empty string( ... Read More

What is the difference between int and integer in MySQL?

George John

George John

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

2K+ Views

The int is the synonym of integer in MySQL 5.0. Here is the demo display both int and integer internally represents int(11).Creating a table with int datatypemysql> create table IntDemo    -> (    -> Id int    -> ); Query OK, 0 rows affected (1.04 sec)Here is description of ... Read More

Advertisements