LPS-47775 Moves code from jsp to java
LPS-47775 When forcePost is true we should make a submitForm