• Post Reply Bookmark Topic Watch Topic
  • New Topic

PostBack ?

 
Sal DiStefano
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have a question regarding determining if a page is being loaded for the first time or being re-submitted with data. I have used .NET which has a postback flag. Is there a Tag for JSP which provides similar functionality? If not what are some of the methods you use to determine this. I have considered using hidden fields but want to avoid that if possible.
Thanks
Sal
 
amol re
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you do somethng like this?
When you get the request for that page, check for particular variable in the session. If not set, set it and send the response normally.
If its set, it means, its not the first request for that page in that particular user session. So, show your "cannot resubmit" message.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might get some usefull info from this thread I started a few days ago.
 
Sal DiStefano
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Greg, There were a few different options there.
Sal
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!