Top DevX Stories
Creating Custom Export Filters for StarOffice with XSLT
WPF Wonders: Using DataTemplates
Crystal Reports Family Offers Options for Developers
Avaya Aura Session Manager video
Avaya Aura Overview video
Search the forums:

Go Back   DevX.com Forums > DevX Developer Forums > Java

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 10-09-2009, 11:01 AM
ug4jee ug4jee is offline
Registered User
 
Join Date: Aug 2008
Posts: 32
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.
Reply With Quote
  #2  
Old 10-13-2009, 05:21 AM
rohitsharma52 rohitsharma52 is offline
Registered User
 
Join Date: Aug 2009
Posts: 5
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:
  • Upon successful login in your Filter, set an appropriate message in request scope.
  • Write a small JSP file or a Tag, which is responsible for displaying the required popup containing the message set earlier.
  • Include this JSP or Tag definition in all the possible outcome paths (JSP's)

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
Reply With Quote
  #3  
Old 10-13-2009, 10:02 AM
ug4jee ug4jee is offline
Registered User
 
Join Date: Aug 2008
Posts: 32
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.
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT -4. The time now is 10:53 PM.


Sponsored Links



Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.