Sunday, 30 June 2013
Saturday, 29 June 2013
MVC2 Architecture
MVC2 Design Pattern
1) Model
2)View
3)Controller
Model : Java Bean is nothing but Model
A java program which contain business logic is called as Model Component
Ex : Java Bean
View : A piece of code which is responsible to display information to the client is called as View Component.
Ex : JSP , HTML
Controller : A program which takes the request of client and capture the data , and create appropriate Model component object and call the methods.
Ex : Servlet
1) Model
2)View
3)Controller
Model : Java Bean is nothing but Model
A java program which contain business logic is called as Model Component
Ex : Java Bean
View : A piece of code which is responsible to display information to the client is called as View Component.
Ex : JSP , HTML
Controller : A program which takes the request of client and capture the data , and create appropriate Model component object and call the methods.
Ex : Servlet
Tuesday, 25 June 2013
JQuery library download
After click here select the version and then click that link
Ex->Download the uncompressed, development jQuery 1.10.1
And then copy all the code and save to your file(file extension as .js),after that use in your html pages
[OR]
Copy all the code and save to your file(file extension as .js),after that use in your html pages
Monday, 24 June 2013
Maven build tool download
Set M2_HOME for maven home directory.
M2_HOME=C:\apache-maven-3.0.5
Set JAVA_HOME with java JDK folder C:\Program Files\Java\jdk1.7.0_21 Set PATH for maven bin folder,so that we can run mvn command anywhere in the system from command prompt. C:\Program Files\Java\jdk1.7.0_21\bin;C:\apache-maven-3.0.5\bin;
Sunday, 23 June 2013
REGULAR JAVA COMMANDS USED IN DOS COMMAND PROMPT
COMMAND | USAGE |
---|---|
TO COMPILE JAVA PROGRAMS,IT DISPLAYS ALL OPTIONS RELATED TO COMPILATION javac Welcome.java |
|
java | TO RUN JAVA PROGRAMS,IT DISPLAYS ALL OPTIONS RELATED TO RUN THE PROGRAMS java Welcome java com.ram.Welcome(when we have .class file in the package) |
javac -d | COMPILE THE PROGRAMS AND PLACED IN PACKAGE javac –d destinationpath sourcepath javac –d . Welcome.java (Package folder will create in current directory) javac –d C:\myfolder\java\bin C:\myfolder\java\src\Welcome.java |
javap | TO KNOW THE DETAILS OF ANY CLASS,IT DISPLAYS ALL THE METHODS IN THAT CLASS AND implemented interfaces,extended classes also javap Welcome |
javadoc | CREATE DOCUMENTATION TO THE JAVA CLASSES javadoc Welcome.java |
jar | TO CREATE JAR FILES,WAR FILES,EAR FILES AND ALSO EXTRACT THESE FILES jar –cvf filename.jar(create) jar –cvf myjar.jar jar –cvf mywar.war jar –xvf myjar.jar(extract) jar –xvf mywar.war |
set | TO SET THE ENVIRONMENT VARIABLES LIKE ”CLASSPATH”, “PATH” AND “JAVA_HOME” set JAVA_HOME=C:\Program Files\Java\jdk1.7.0_01; set PATH=C:\Program Files\Java\jdk1.7.0_01\bin; set CLASSPATH=servlet-api.jar; set CLASSPATH=servlet-api.jar;ojdbc14.jar; (CLASSPATH for more jars at a time) set CLASSPATH=%CLASSPATH%;hibernate3.jar; (set CLASSPATH to already existed CLASSPATH variable) |
TO KNOW THE VALUES LIKE ”CLASSPATH” , “PATH” AND “JAVA_HOME” ENVIRONMENT VARIABLES echo %CLASSPATH% echo %PATH% echo %JAVA_HOME% |
Friday, 21 June 2013
Java Features
* Java is a complete object oriented programming Language(Objet Oriented)
Object oriented programming concepts are:
->Class
->Object
->Inheritance
->Polymorphism
->Abstraction
->Encapsulation
* Java is a completely platform independent language,so once we develope the code we can run on any machine which has java jvm(Platform Independent)
* Java is easy language we can easily understand(Easy to learn)
* It's providing full security across net,There is no explicit pointers(Secutiry)
* We can develope large applications(High Performance)
* Java is a multi threaded language,Thread is like a seperate program executing concurently(Multi Threaded)
* We can carry the java bytecode to any platform easily(Portability)
* Java is a Robust,it means Strong,It follows strong dynamic memory management(Robust)
* Java is a both compiler and interpreted based language(Interpreted)
Object oriented programming concepts are:
->Class
->Object
->Inheritance
->Polymorphism
->Abstraction
->Encapsulation
* Java is a completely platform independent language,so once we develope the code we can run on any machine which has java jvm(Platform Independent)
* Java is easy language we can easily understand(Easy to learn)
* It's providing full security across net,There is no explicit pointers(Secutiry)
* We can develope large applications(High Performance)
* Java is a multi threaded language,Thread is like a seperate program executing concurently(Multi Threaded)
* We can carry the java bytecode to any platform easily(Portability)
* Java is a Robust,it means Strong,It follows strong dynamic memory management(Robust)
* Java is a both compiler and interpreted based language(Interpreted)
Subscribe to:
Posts (Atom)