  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Design discussion | Design discussion 2005-04-12 - By Scott Powell
Back Depending on the page layout/design, a small frame or iframe that refreshes at a regular interval is an approach to consider.
Let's say you call the frame "messageFrame". messageFrame uses a meta-refresh to periodically poll the url messageAlerts.jsp which simply returns the correct HTML to indicate there are new messages for the user (or that there aren't any) .
For example, with new messages, something as simple as <img src="newMessages .gif" /> vs. <img src="noMessages.gif" /> might do (don't forget the meta -refresh tag information, too!).
On the server side, the "pattern" is just a "controller" that asks the "model" if there are any new messages and then updates the "view" appropriately. The view and controller might need to be re-written in the web-based port. In particular, you couldn't rely on the "inbox" being observable and notifying an observer (the front-end). The relationship will almost be reversed on the web (the observerable event is the page refresh request and the observer will poll the model).
Your model may not need to be touched.
Hope that helps. Scott
Maya menon <maya_java@(protected)> wrote: Our client/server application which work realtime: Currently we have a client/server application. Our users log into the client and the system delivers messages to the users. when a new message arrives the users see a signal flashing and therby gets notified about the new message.
Now this client needs to be transformed into a web based system.
Instead of the clients logging into the client window, now the users log into the web site. The same feature has to be provided. when a new message arrives the users have to see a signal flashing and therby gets notified about the new message. Can you all please suggest a good J2ee design approach for this ?
How do we enable the flashing signal ? I need some suggestions.
Thanks,
-- ---- ---- ---- ---- ---- ----- Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. Learn more. ======== ============================================================ Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints /corej2eepatterns List Archive: http://archives.java.sun.com/archives /j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
-- ---- ---- ---- ---- ---- ----- Do you Yahoo!? Yahoo! Small Business - Try our new resources site!
==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected) <DIV>Depending on the page layout/design, a small frame or iframe that refreshes at a regular interval is an approach to consider.</DIV> <DIV> </DIV> <DIV>Let's say you call the frame "messageFrame". messageFrame uses a meta-refresh to periodically poll the url messageAlerts.jsp which simply returns the correct HTML to indicate there are new messages for the user (or that there aren't any).</DIV> <DIV> </DIV> <DIV>For example, with new messages, something as simple as <img src= "newMessages.gif" /> vs. <img src="noMessages.gif" /> might do (don't forget the meta-refresh tag information, too!).</DIV> <DIV> </DIV> <DIV>On the server side, the "pattern" is just a "controller" that asks the "model" if there are any new messages and then updates the "view" appropriately. The view and controller might need to be re-written in the web-based port . In particular, you couldn't rely on the "inbox" being observable and notifying an observer (the front-end). The relationship will almost be reversed on the web (the observerable event is the page refresh request and the observer will poll the model).</DIV> <DIV> </DIV> <DIV>Your model may not need to be touched.</DIV> <DIV> </DIV> <DIV>Hope that helps.</DIV> <DIV>Scott</DIV> <DIV><BR><B><I>Maya menon <maya_java@(protected)></I></B> wrote:</DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER -LEFT: #1010ff 2px solid"> <DIV>Our client/server application which work realtime: </DIV> <DIV>Currently we have a client/server application. Our users log into the  ;client and the system delivers messages to the users.<BR>when a new message arrives the users see a signal flashing and therby gets notified about the<BR >new message. </DIV> <DIV> </DIV> <DIV>Now this client needs to be transformed into a web based system.</DIV> <DIV><BR>Instead of the clients logging into the client window, now the users log into the web site.<BR>The same feature has to be provided. <BR>when a new message arrives the users have to see a signal flashing and therby gets notified about the<BR>new message.</DIV> <DIV>Can you all please suggest a good J2ee design approach for this ?</DIV> <DIV> </DIV> <DIV>How do we enable the flashing signal ? I need some suggestions.</DIV> <DIV> </DIV> <DIV>Thanks,<BR><BR></DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER -LEFT: #1010ff 2px solid"> </BLOCKQUOTE> <P> <HR SIZE=1> Do you Yahoo!?<BR>Yahoo! Mail - Find what you need with new enhanced search. <A href="http://us.rd.yahoo.com/evt=29917/*http://info.mail.yahoo.com/mail_250" >Learn more.</A> =============================================================== ===== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http:/ /java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun .com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)</BLOCKQUOTE><p> <hr size=1>Do you Yahoo!?<br> Yahoo! Small Business - <a href="http://us.rd.yahoo.com/evt=31637/*http:/ /smallbusiness.yahoo.com/resources/">Try our new resources site!</a> ==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
|
|
 |