Category: Java

xml tutorials

Convert XML to Polymorphic Object using JAX-B

Here is an example of how you can convert XML to polymorphic objects using JAX-B. Abstract Animal Class package com.memorynotfound.xml.jaxb; public abstract class Animal { } Cat Inherits from Animal package com.memorynotfound.xml.jaxb; import javax.xml.bind.annotation.XmlRootElement;...
xml tutorials

Convert Polymorphic Object to XML using JAX-B

When you use polymorphism in your classes and you want to convert your object to XML using JAX-B, here is an example how to. Abstract Animal Class package com.memorynotfound.xml.jaxb; public abstract class Animal {...
xml tutorials

Convert XML to Object in Java using JAX-B

In the following tutorial we will show you how you can convert XML to Object in Java using JAX-B. Annotations Explained First we need to define our model that will be converted to XML...
xml tutorials

Convert a Java Object to XML using JAXB

In the following tutorial we will show you how you can convert a Java Object to XML. Annotations Explained First we need to define our model that will be converted to XML representation. Here...
java tutorials

Configure HTTP/HTTPS Proxy Settings Java

For local networks inside an organisation it is common to access the public internet through a HTTP Proxy. This tutorial will show you how you can globally set the HTTP Proxy Settings in Java....
jsf tutorials

JSF Internationalisation i18n – Message bundles

In this tutorial we will show you how to support multiple languages using JSF Internationalisation. JSF internationalisation Project Structure src |–main | +–java | +–com | +–memorynotfound | |–LanguageSwitcher.java | +–resources | +–com |...