Win a copy of Getting started with Java programming language this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Do Post and Do Get  RSS feed

 
tangara goh
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I understand that usually we use Do post, if our html form action is post, and then use Do get and redirect it to another html page.

What I would like to know is that before the redirect page is being processed, I would like the servlet to display a message to say register successful or not successful, due to duplicated ID or email.

Hope someone can advise me about how to enable the servlet to do the display before the servlet do the redirecting.

Thanks.
 
Paul Clapham
Sheriff
Posts: 22106
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If that's what you want, then you don't redirect to the other HTML page. You output HTML which tells the user whether registration was successful. This HTML should include a header which tells the browser to redirect after (say) 15 seconds:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!