2017년 11월 6일 월요일

redirect 한글값 던지기



project/ KanjiController


@RequestMapping(value="/add_word",method=RequestMethod.GET)
public String add_word(@RequestParam(value="search", defaultValue="list")String search,
@RequestParam("word")String kanji,@RequestParam("ankijang_no")int no)
throws UnsupportedEncodingException{



return "redirect:search_kanji?search="+URLEncoder.encode(search,"utf-8");

댓글 없음:

댓글 쓰기