Java Servlet Code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sreekandank
    New Member
    • Jun 2009
    • 45

    Java Servlet Code

    Hi...
    I am doing one online web application. In this application I want to produce the dynamic alert message for every user registration. I mean to send the alert message to the admin whenever the database value is updated with the new user registration. So I want to know whether it is possible or not?. Kindly help on my project. Thanks in advance.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Are you doing the alerting through an email message?
    You can use the JavaMail API to send out the email.

    Comment

    • neeraj0708
      New Member
      • Feb 2012
      • 21

      #3
      you can check out with the triggers.

      Comment

      • sreekandank
        New Member
        • Jun 2009
        • 45

        #4
        I don't want to send the email alert, instead just I want to provide the database updates on my web page. So kindly anyone help me this.

        Comment

        • r035198x
          MVP
          • Sep 2006
          • 13225

          #5
          How are the database updates done?
          What technologies are you using? If you are using JSF 2 you get observer/observable support built in.

          Comment

          • sreekandank
            New Member
            • Jun 2009
            • 45

            #6
            I am using Java Servlet and MSAccess

            Comment

            • r035198x
              MVP
              • Sep 2006
              • 13225

              #7
              But you are using JSPs for the view right?
              You'll need your view to be autorefreshing for the changes to update on the page.

              Comment

              • sreekandank
                New Member
                • Jun 2009
                • 45

                #8
                Yes. You are right. I want to display the updated values in my web page from the database table. Kindly help me on this.

                Comment

                • r035198x
                  MVP
                  • Sep 2006
                  • 13225

                  #9
                  If you use JSF you can use AJAX to auto update specific components.
                  If you are using plain JSP then you can use the meta tag

                  META HTTP-EQUIV="Refresh" CONTENT="5;

                  to auto refresh the JSP page.
                  You should really consider using JSF 2 or newer for any web applications these days.

                  Comment

                  Working...