How to create a src/main/java source folder in Eclipse Click on new->Java Project Click on next Click on Source tab--usally source tab will be selected by default.. Under Details-click on-Create new source folder link. Enter the folder name as "src/main/java" Click on finish. Start creating packages under this.
In spring mvc its very easy to redirect from one controller to another controller Example : @Controller @RequestMapping("/springcontroller1") public class SpringController1{ } @Controller public class SpringController2{ //thinking of redirecting on clicking on a method @RequestMapping(value = "/SpringController2cancel.abc", method = RequestMethod.POST, params = "action=cancel") public ModelAndView cancel(@ModelAttribute("MyForm") MyForm myForm, BindingResult errors,SessionStatus sessionStatus,HttpServletRequest request) throws MyException { ModelAndView modelAndView = new ModelAndView(); sessionStatus.setComplete(); //redirecting to controller1 return new ModelAndView("redirect:/springcontroller1.abc"); } }
(defn saysomething " i dont want to talk to you" [name] (str "why is it so?" name)) #'my-clojureproject1.core/saysomething => (println (saysomething "anjana") => (defn saymorethings "what do you want to hear" [name] (str "life is a box of chocolates" name)) #'my-clojureproject1.core/saymorethings => (println (saymorethings "nirosha") ) life is a box of chocolatesnirosha nil
Comments
Post a Comment