I can't open the window at deploy server.

16 views
Skip to first unread message

jb9...@gmail.com

unread,
Jan 24, 2013, 4:16:27 PM1/24/13
to google-a...@googlegroups.com
Hello^^

I am creating the GAE+Spring+JPA web project.
Now i have probem.

When i open other window at jsp page, i got the 404 error page.
but it is just deploy server, not local debugging server.

here is my code.

  1. NBoardList.jsp: view page
    • function showContents(id, listIndex){
    • $.getJSON('contentsView/'+id, function(result){
    • $('#contentsTitle').text(result.title);
    •                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • $('#contentsContents').html(result.content);
    • $('#updateBut').click(function(){window.open('updateView/'+id+'?listIndex='+listIndex+'&random='+Math.random(),'updateView','location=yes,status=yes,width=1000,height=800,resizable=yes' )});
    • });
    • }
  2. NBoardUpdate.java: controller
    • @RequestMapping("/updateView/{nBoardID}")
    •     public ModelAndView updateView(@PathVariable Long nBoardID, @RequestParam("listIndex") int listIndex, HttpServletRequest request){
    •     ModelAndView    mv  =   new ModelAndView("NoticsBoard/NboardUpdate");
    •         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    •     return mv;
    •     }

This code local GAE Server is rightly run...
Reply all
Reply to author
Forward
0 new messages