• Post Reply Bookmark Topic Watch Topic
  • New Topic

Show message and redirect to a page

 
Sudhakar Duraiswamy
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I would want display a custom message to the user before redirecting to a different url.

i use




1)I thought redirecting the user , the browser automatically alert the user that the browser is making a new request.
It didnt happen Y?

2) Is there a way to display a message and then redirect.
 
Ankit Garg
Sheriff
Posts: 9597
36
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Redirecting is automatic, browsers don't display any message that they are redirecting the user.
2. You can use html meta tag to display a message and then redirect like given here...
 
Sudhakar Duraiswamy
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ankit,
thanks for replying.

but dont you think its a security risk , as we know the sendRedirect is as good as(similar to) a new request intiated by the client.


Dont you think this could be misused , say alluring the customer into say (in case of a shopping cart) checkout something that he never wanted in the first place.

Just wondering or am i too paranoid
 
Ankit Garg
Sheriff
Posts: 9597
36
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dont you think this could be misused , say alluring the customer into say (in case of a shopping cart) checkout something that he never wanted in the first place.

A. Soon people will stop using such websites
B. If a person doesn't pay attention while paying what they are paying for, then its their own fault...
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!