|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Display popup message when user login to site in J2EE
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. |
|
#2
|
|||
|
|||
|
Hi There,
I believe you will be using either an HTML or Javascript element to display the popup and definately you would like to delegate the responsibility for the same to the UI layer/components. In such a case, my recommendation would be to do the following:
Being true to MVC, the security concern is handled by your Filters/Controllers and the message is set in a Model, which is then displayed by the View layer (JSP). Let me know if you any constraints in following this approach, if so can think of an alternate approach. Regards |
|
#3
|
|||
|
|||
|
Thank you for your suggestion, I implemented this and working good.
Is there any other way to without changing all the JSPs(becoz we may not expect as user which url requesting as per their bookmarks set). Thinking about if we can pass this along with the redirect in Java Filter which was using for the authentication. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Display XML element attributes in CSS or XSL | Allen Pitts | XML | 0 | 10-31-2002 04:02 PM |
| informing user with a message! | s | ASP.NET | 0 | 01-28-2002 11:03 AM |
| Display message while uploading, then change on completion | Jill | Web | 0 | 10-25-2001 05:29 PM |
| Script for scrolling | Mark | Web | 3 | 08-30-2001 12:45 PM |
| Determining when a user leaves your web site | Manoj | Enterprise | 0 | 06-28-2001 10:56 AM |