Posts

Showing posts with the label java applications

Error while installing GWT plugin in eclipse

What type of errors we will get by installing GWT plugin in eclipse as well as what is new in GWT? will see in this page.  If you are new to GWT better first read GWT , then you will easily understand what I am explaining here. I was already explained in GWT page, how to install gwt plugin and create sample application and running the same application in development mode.  Previously I am using gwt-2.4 in my system with JDK-1.6 and eclipse-juno-4.2 in windows-xp. N ow, I got changed my system OS to Windows-8.1. I have installed JDK-1.6 as per my project requirement and I followed the same steps as previously I have installed GWT-plugin. The plugin was installed, but in eclipse GWT symbol is not displaying. I was tried with different eclipses, but there was no Luck. Finally I have uninstalled JDK 1.6 and again I installed JDK-1.7. After that I have tried again installing GWT-plugin in new eclipse. Now, I got the GWT symbol in my eclipse after that I realized that was installed 2.

hibernate sample application with example

Hibernate is ORM(Object Relational Mapping) framework for mapping java object with database table. A brief description about Configuration, SessionFactory, Session, Query, Criteria, Transaction and follow the same for sample application creation using hibernate. Configuration:   Configuration is that the initial object you wish to make any of hibernate application and typically making one time throughout the applying initialization. It represents the configuration or properties file providing by hibernate. SessionFactory:   Configuration object is employed to make SessionFactory instance that intern configures hibernate for the applying. SessionFactory object is significant weight part, it's created throughout application start up time and unbroken for later use. The way to do this we are going to see in below application. We would like one SessionFactory object per info employing a separate configuration. Therefore if you victimization multiple databases then you'd ou

how to count the page views by using JSP

To count no.of page's are viewed by user in your application is a challenge in real time application. In this page we will see how to count the page views when user has viewed the page.           Here, we will do one example how many times user has visited each page in our application. In this post we will come to know, how to count the total application page views as well as individually each pages count.           Let us assume my web application name is "Page Counter". For creating the web application in eclipse IDE, Click here . This Page Counter contains three pages, assume that are the different pages in an application. But, there is the link between each other files for navigating from one page to another. Also it will show the total pages view count and individual page view count in all the pages. Let us see, below is my first jsp file,           You can declare the below content inside the < body > tag. Rest of the content in every page will b

Create, compile and run java sample program

When we are starting learning any of the new technology, we  usually  starts with a sample program called Hello world. In the current post I am going to explain how to create sample hello world program and execute it in java. As we are in initial stage of learning and practicing, initially will use notepad and command prompt to create program and execute and then will look how to use IDE(Eclipse). I am using notepad to write the program code and using command prompt to execute sample java program. My sample java program name as Hello.java.  Create Hello.java program: Open the Notepad  --->  File  --->  New  --->  write the below code, 1 2 3 4 5 6 7 8 9 public class Hello { public static void main ( String [] args ) { System . out . println ( "Hello! How are you?" ); } } Save the file with the name as Hello.java. So, program creations completed and then next process is to compile our Hello.java program through c