Subversion Repositories SmartDukaan

Rev

Rev 22191 | Rev 22196 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22191 Rev 22193
Line 9... Line 9...
9
import org.springframework.ui.Model;
9
import org.springframework.ui.Model;
10
import org.springframework.web.bind.annotation.PathVariable;
10
import org.springframework.web.bind.annotation.PathVariable;
11
import org.springframework.web.bind.annotation.RequestMapping;
11
import org.springframework.web.bind.annotation.RequestMapping;
12
import org.springframework.web.bind.annotation.RequestMethod;
12
import org.springframework.web.bind.annotation.RequestMethod;
13
 
13
 
-
 
14
import com.spice.profitmandi.dao.model.FofoForm;
14
import com.spice.profitmandi.dao.repository.dtr.Mongo;
15
import com.spice.profitmandi.dao.repository.dtr.Mongo;
15
 
16
 
16
@Controller
17
@Controller
17
public class FofoController {
18
public class FofoController {
18
	
19
	
Line 29... Line 30...
29
		return "fofo-index";
30
		return "fofo-index";
30
	}
31
	}
31
	
32
	
32
	@RequestMapping(value = "/fofo/{fofoId}/edit", method = RequestMethod.GET)
33
	@RequestMapping(value = "/fofo/{fofoId}/edit", method = RequestMethod.GET)
33
	public String editFofoForm(HttpServletRequest request, @PathVariable(name = "fofoId") int fofoId, Model model) throws Exception{
34
	public String editFofoForm(HttpServletRequest request, @PathVariable(name = "fofoId") int fofoId, Model model) throws Exception{
-
 
35
		FofoForm ff = mongoClient.getFofoForm(fofoId);
34
		model.addAttribute("fofoForm", mongoClient.getFofoForm(fofoId));
36
		model.addAttribute("fofoForm", mongoClient.getFofoFormJsonStringByFofoId(fofoId));
-
 
37
		model.addAttribute("email", ff.getRegisteredEmail1());
35
		return "fofo-form";
38
		return "fofo-form";
36
	}
39
	}
37
}
40
}