This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <servlet> | |
| <servlet-name>dispatcher</servlet-name> | |
| <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> | |
| <init-param> | |
| <param-name>contextConfigLocation</param-name> | |
| <!--Defaults to WEB-INF\dispatcher-servlet.xml --> | |
| <param-value>classpath:mvc-config.xml</param-value> | |
| </init-param> | |
| </servlet> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // create main class Journey | |
| public class Journey { | |
| public static void main(String[] args) { | |
| Vehicle v = new Car(); | |
| v.start(); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Bike implements Vehicle { | |
| @Override | |
| public void start() { | |
| System.out.println("Travel by Bike"); | |
| } | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Car implements Vehicle { | |
| @Override | |
| public void start() { | |
| System.out.println("Travel by Car"); | |
| } | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public interface Vehicle { | |
| void start(); | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Car { | |
| public void journey () { | |
| System.out.println("Travel by Car"); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Journey { | |
| Car car = new Car(); | |
| public void startJourney() { | |
| car.journey(); | |
| } | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Car { | |
| public void travel () { | |
| System.out.println("Travel by Car"); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Journey { | |
| Car car = new Car(); | |
| public void startJourney() { | |
| car.travel(); | |
| } | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| label.firstname=First Name | |
| label.lastname=Last Name | |
| label.email=Email | |
| label.telephone=Telephone | |
| label.add=Add Employee | |
| label.menu=Actions | |
| label.title=Employee Form | |
| label.footer=www.behindjava.com |