Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Question about saveTokens  RSS feed

howard franklin
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This page is submitted using button that calls a function that submits the page using the dom.
After it sets a function/parameter

document.forms['I'].elements['function'].value = 'addOffice';

This sends it to the action addOffice.

My question is about the saveToken.

I understand that saveToken() - generate the token key and save to request/session attribute.

My problem is that I am debugging this and I see that it does not get pass the SaveToken(request) statement and then
my page refreshes. Is there something that I am missing here?

I appreciate any help

resetParentStatement(request, frm);
setRequestAttributes (request, frm, null, true);
saveToken (request);

//return mapping.getInputForward ();
ActionForward testActionForward = mapping.getInputForward();
StringBuffer path = new StringBuffer (testActionForward.getPath());
ActionForward myNewActionForward = new ActionForward(path.toString());
myNewActionForward.setRedirect (true);
return myNewActionForward;

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!