Posts

Easy way to arrange element of the web site using CSS

1.        Create CSS class first and add body, content, Header, title, Application Title, Page Title methods.(method implementation below) body {     color : #333333 ;     padding : 0 ;     margin : 0 ;     font-family : Verdana ;     font-size : 12px ;     background-color : #F6F6F6 ; } #content {     width : 90% ;     height : 600px ;     padding : 10px 10px ; } #Header {     float : left ;     clear : both ;     width : 100% ;     height : 80px ;     background-color : #00A6EB ; } .title {     text-shadow : 1px 1px 1px rgba(242,242,242,1) ;     font-weight : bold ;     text-transform : uppercase ;     color : #1D1212 ; ...

Encrypt and Decrypt text using alphabet shifting method

Image
Decrypt             char [] alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" .ToCharArray();             char [] cypertext = (txtCyperText.Text.ToUpper()).ToCharArray();             string decryptText = "" ;             foreach ( char item in cypertext)             {                 for ( int i = 0; i < alpha.Length; i++)                 {                     if (item == 'A' )              ...

Find Country from URI

Image
First Add the Service reference  :  http://www.webservicex.com/geoipservice.asmx?WSDL IPAddress [] address = Dns .GetHostAddresses(textBox1.Text);             string [] array = new string [address.Count()];             int i=0;             foreach ( IPAddress item in address)             {                 array[i] = item.ToString();             }             textBox2.Text = array[0].ToString();             ServiceReference1. GeoIPServiceSoapClient cl = new ServiceReference1. GeoIPServiceSoa...

EJB Application Using Massage Driven Bean

The goal of this exercise is to create the NewsApp enterprise application containing an EJB module and a web module. The NewsApp application uses a message-driven bean called NewMessageBean to receive and process messages sent to the queue by a servlet. The application uses the two Servlets, where the PostMessage Servlet will send messages to the message-driven bean and the ListNews Servlet will display all News messages from the persistent data source. NewsEntity is an entity class representing the News table in a database. It has the attributes “title” and “body” Creating an Enterprise Application with EJB 3.1 This tutorial takes you through the basics of developing a Java EE 6 enterprise application and demonstrates some of the EJB 3.1 technology features that were introduced as part of the Java EE 6 specification. In this tutorial you will create an enterprise application that enables a user to pos...