Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

notifier module

 
sabu ekm
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hellow all,
my company is developing web based products using java,jsp, ejb, struts.......
presently im working on a module named Event Nofier. the purpose of
this module is to check the database frequently and notify the end
user with an alert thru the browser. the alert should be like outlook express.

but outlook is a completly client side program. so i cant use that idea.
for my idea is to send request to
a servlet after login my application thru an applet which is included
in my home page.
the servlet will check the database and retrives all event
details corresponding to that login user and send or pump that data as
an arraylist or something in that client applet. the applet will run
as a client thread and notifies the user about the events from time to
time. when any changes occured in the table which is storing the
events. then the servlet will b invoked again and the data will send
to the applet again.

if you have any experiance regarding this domain, pls tell me
ur advices.
i have not that much experiance in working with applet. i have written 1
applet. but i failed to include that applet in my home page.so the
<applet
NAME="CRMNotifier"
code="com.crm24x7.workspace.support.actions.NotifierApplet.class"
width="650" height="240">
</applet>

This is the applet tag i used and name of the applet is
com.crm24x7.workspace.support.actions.NotifierApplet.class

C:\OnlineCRM\CRM24X7Web\Web
Content\WEB-INF\classes\com\crm24x7\workspace\support\actions\NotifierApplet.class

This is the path of the class file

and

C:\OnlineCRM\CRM24X7Web\Web Content\jsp\welcome.jsp is the name of the
jsp where i want to include the applet

i will be greatful for your reply.
thanks in advance.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by sabu ekm:

C:\OnlineCRM\CRM24X7Web\Web
Content\WEB-INF\classes\com\crm24x7\workspace\support\actions\NotifierApplet.class
This is the path of the class file


A browser is not going to be able to access your class files if they are under the WEB-INF dirctory.

You might want to read: JSP.5.7 in the JSP Specification.
http://jcp.org/aboutJava/communityprocess/final/jsr152/index.html

It describes the <jsp:plugin> tag which will build the HTML tags necessary for accessing your applet.

If you're going to code it by hand, the people in the Applets forum could probably help you better than we could.

-Ben
[ January 19, 2005: Message edited by: Ben Souther ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic