views:

231

answers:

2

Hi,

I would like to show a popup message to the users when ever login to my site, only when login( later on it is not required).

we are using java/j2ee for my application, and authentication provided using the Filters, once login success we are redirecting the request to the requested page(it is not the same always it depends on user access but any access to our application there authentication will be performed). here I want to display a popup message to the user when logon.

Please suggest me where i can use the popup message to display to the user.

Thanks in advance.

A: 

You could use a session variable for this. In every page check if the session variable is null and if it isn't show the pop-up and initialize it.

kgiannakakis
A: 

Thank you for your reply, It is working fine.

Is there any other way to achieved this, without changing all the jsp files, becoz the user might bookmark the url and try to access that time we are not sure which page he is trying to access. If we could provide this via filter i.e. along with sendRedirect() method.

Please provide your suggestion on this.

Thanks,

jee