Apr 26, 2013

Private page as default landing page after login in to Liferay


1.  Create one public page for login name it (Login) and give friendly url as (/home) or other then login because login is reserved key word of liferay, also do not create other page here(public).

2.  Now create first private page called (welcome) and give friendly url as(/welcome) or other as per              requirement.

3.  Create other pages as per requirement on private pages.

4.  Open control panel-->go to portal settings-->and give default landing page as ("/group/guest/welcome")  the (/welcome) is what we defined on step no 2.

5.  Also have to give membership to the user.

  5.1   So for that go to control panel-->portal settings-->select tab(Default User Associations)

  5.2  Write the site name(liferay.com) in Sites text field in new line because liferay consider per line user     association.

And Save it

That's it you are done.

NOTE:- You can also set Default Logout Page using step no 4 and set Default Logout Page as (/home) .

Dec 26, 2012

Spring Framework Overview



Spring is the most popular application development framework for enterprise Java. Millions of developers around the world use Spring Framework to create high performing, easily testable, reusable code.

Spring framework is an open source Java platform and it was initially written by Rod Johnson and was first released under the Apache 2.0 license in June 2003.
Spring is lightweight when it comes to size and transparency. The basic version of spring framework is around 2 – 3 MB.

The core features of the Spring Framework can be used in developing any Java application, but there are extensions for building web applications on top of the Java EE platform. Spring framework targets to make J2EE development easier to use and promote good programming practice by enabling a POJO-based programming model.

Dec 6, 2010

Steps for creating jar file (.jar) from java file

To Create jar file of any java program use under given steps


NOTE:     It is necessary that your program run in java then and then that
        program is ready to create a jar file
       
       
1.Go To Run open cmd
2.Go To Directory where your .java file reside
3.Compile .java file and create .class file
4.Use the under given syntax to create the jar file(use this in command prompt)
   
    Syntax-1:
   
        jar cf tejas.jar *.class
   
5.Now Extract the .jar file which is generated by the above syntax in your current
    directory
6.Open the extrected folder
7.Open the META-INF folder
8.Copy the MANIFEST.MF from META-INF
9.Paste that file in the folder where .jar file is generated
10.Edit MANIFEST.MF with Note Pad and write the under given syntax to that file
       
        syntax-2:
       
            Main-Class: test (.java name but without .java ex: test(test.java))
           
        now save that file and exit from edit
       
11.Go To command prompt and write under given syntax
       
        syntax:
       
            jar cmf MANIFEST.MF tejas.jar *.class
       
NOTE-1: Here in syntax-1 the tejas.jar is given by manually so you can give any
        name to your jar file ex: exam.jar,abc.jar
NOTE-2: Here in syntax-2 you give the .jar file name same as given in the syntax-1


So your jar file is Generated and ready to execute.....
       

Sep 10, 2010

features of java

There are main nine(9) features of java that are listed as under


1.compiled & interpreted

2.plateform independent

3.object oriented

4.robust and secure

5.distributed

6.simple, small and familiar

7.multithreaded and interactive

8.high performance

9.dynamic and extensible