Package spring3.form

Examples of spring3.form.ContactForm


     */
    @RequestMapping("/contacts")
    public ModelAndView showContacts() {
     
      ModelAndView mav =  new ModelAndView("contact");
    mav.addObject("contact",new Contact());
    return mav;
    }
View Full Code Here


  public ModelAndView helloWorld() {
      //String message = "Hola Mundo Spring se ha instaldo correctamente";
       List<Contact> contacts = new ArrayList<Contact>();
      
         
              contacts.add(new Contact("Barack", "Obama", "barack.o@whitehouse.com", "147-852-965"));
              contacts.add(new Contact("George", "Bush", "george.b@whitehouse.com", "785-985-652"));
              contacts.add(new Contact("Bill", "Clinton", "bill.c@whitehouse.com", "236-587-412"));
              contacts.add(new Contact("Ronald", "Reagan", "ronald.r@whitehouse.com", "369-852-452"));
         
       ContactForm contactForm = new ContactForm();
        
         try {
View Full Code Here

              contacts.add(new Contact("Barack", "Obama", "barack.o@whitehouse.com", "147-852-965"));
              contacts.add(new Contact("George", "Bush", "george.b@whitehouse.com", "785-985-652"));
              contacts.add(new Contact("Bill", "Clinton", "bill.c@whitehouse.com", "236-587-412"));
              contacts.add(new Contact("Ronald", "Reagan", "ronald.r@whitehouse.com", "369-852-452"));
         
       ContactForm contactForm = new ContactForm();
        
         try {

         ServicioContactoStub oStub = new ServicioContactoStub();
           MostrarContacto oMostrarContacto = new MostrarContacto();
        
         MostrarContactoResponse objResponde =  oStub.mostrarContacto(oMostrarContacto);
         ContactoVO[] contacts2= objResponde.get_return();
        
       contactForm.setContacts(contacts2);
           return new ModelAndView("showcontactrow" , "contactForm", contactForm);
          
    } catch (RemoteException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
View Full Code Here

TOP

Related Classes of spring3.form.ContactForm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.