0 Replies - 6603 Views - Last Post: 14 January 2013 - 07:13 PM

#1 ajijul  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 2
  • Joined: 14-September 10

user session expired error at first time but running fine after that

Posted 14 January 2013 - 07:13 PM

Please help me with this ridiculous problem. I am passing a URL from my js form by using window.open() function that will hit a controller method and also some path variable is included.. that is,
myUrl = "controller/"+pathVar1+"/"+pathVar2+"/controllerMethod?AUTH_TOKEN=" + getAuthTokenId() +"&";

window.open(myUrl,true);



getAuthTokenId() is written in my "global.js" file And in the controller I have written the method as
@Controller
@RequestMapping("/controller")
public class ControllerName{

  @RequestMapping(value = "/{pathVar1}/{pathVar2}/controllerMethod", method = RequestMethod.GET)
  public @ResponseBody void ControllerMethodDefinition(HttpServletRequest request, HttpServletResponse response, @PathVariable("pathVar1") String pathVar1,@PathVariable("pathVar2") String pathVar2){
        /***/
    }

} 


Now My problem is when first time the js is executing my call from js is not hitting the controller but next time onwards the controller is hit every time.

Is This A Good Question/Topic? 0
  • +

Page 1 of 1