Getting and Setting Input Text Field Values

Getting and Setting Input Text Field Values

This form contains an input text field and an input button. The form is designed to demonstrate how to get and set the text in a text field. The HTML for the input button includes an event handler attribute. Pressing the button calls a function that: retrieves the value in the text field d

[ read more ]

ListView, with icon

ListView, with icon

ListView in simplest form with plain text only. This exercise describe how to add a icon in ListView. create a new file in /res/layout/row.xml, to setup our layout on each row. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/an

[ read more ]

Load ImageView with bitmap from internet

Load ImageView with bitmap from internet

It's a simple way to load ImageView with a bitmap from internet, via http connection. In order to load something from internet, the AndroidManifest.xml have to be modified to grand permission for internet access. <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http:

[ read more ]

Struts 2 Tutorial: Struts 2 Tiles Plugin Tutorial with Example in Eclipse

Struts 2 Tutorial: Struts 2 Tiles Plugin Tutorial with Example in Eclipse

Introduction to Tiles 2 Nowadays, website are generally divided into pieces of reusable template that are being rendered among different web pages. For example a site containing header, footer, menu etc. This items remains same through out the website and give it a common look and feel. It is very

[ read more ]

Struts 2 Tutorial: Create Struts 2 Application in Eclipse

Struts 2 Tutorial: Create Struts 2 Application in Eclipse

Before we starts with our first Hello World Struts 2 Example, we will need few tools. JDK 1.5 above (download) Tomcat 5.x above or any other container (Glassfish, JBoss, Websphere, Weblogic etc) (download) Eclipse 3.2.x above (download) Apache Struts2 JAR files:(download). Following are th

[ read more ]

PhoneGap PayPal-Plugin

PhoneGap PayPal-Plugin

by Paul Beusterien, Mobile Developer Solutions, Carl Stehle, Appception Inc. and Tomaz Kregar, Bucka IT Adding the Plugin to your project Using this plugin requires Android Cordova (PhoneGap) and the PayPal Mobile Payments Library. The PayPal Mobile Payments Library can be downloaded here.

[ read more ]

Spring MVC: Multiple Row Form Submit using List of Beans

Spring MVC: Multiple Row Form Submit using List of Beans

Recently I had a requirement where using Spring MVC we had to take inputs multiple rows of data from user. The form had many rows which user can edit and submit. Spring MVC provides very simple yet elegant way of collecting data from multiple rows from HTML form and store them in List of Beans in Ja

[ read more ]

Android Filebased Persistence with Preferences, Filesystem and SD Card

Android Filebased Persistence with Preferences, Filesystem and SD Card

1. Android File Based Persistence 1.1. Methods of persistence Android allows to store local data as files. Android uses file based storage for handling application settings (Preferences) and instances of the SQLite database. For each application the Android system creates a "dat

[ read more ]

JSF 2.0 + Spring integration example

In this tutorial, we show you how to integrate JSF 2.0 with Spring. Directory structure of this example 1. Project Dependencies Use Maven to grab all the JSF 2.0 and Spring library dependencies. File : pom.xml 4.0.0 com.mkyong.common JavaServerFaces war 1.0-SNAPSHOT JavaServerFaces Maven Webapp http

[ read more ]

Bean life cycle in spring

This example gives you an idea on how to Initialize bean in the program and also explains the lifecycle of bean in spring. Run the given bean example to retrieves the values of the bean using java file. Here in the file given below i.e. (context.xml) we have declare the bean definition. Mybea

[ read more ]