How to add signature in JSP page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bindhu80
    New Member
    • Jul 2008
    • 8

    How to add signature in JSP page

    Hi,

    I need to add a persons signature in my JSP page. If in that part if a pesrons scrolls the mouse a person can put his signature and on clicking submit it gets saved in DB . Is there any way to do so. How to add a part where we can add signature o mouse drag. Thanks in advance.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Explain the mouse drag part. Do you mean the person would write the signature using the mouse?

    Comment

    • bindhu80
      New Member
      • Jul 2008
      • 8

      #3
      yes the person will write his signature using mouse drag.

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by bindhu80
        yes the person will write his signature using mouse drag.
        Two questions for now

        1.) What will the user be wrting on? Obviously just writing on a blank page won't work because the user can't see what they are writing.
        2.) What datatype are you going to use in the database to store the .. eh signature?

        Comment

        • bindhu80
          New Member
          • Jul 2008
          • 8

          #5
          Originally posted by r035198x
          Two questions for now

          1.) What will the user be wrting on? Obviously just writing on a blank page won't work because the user can't see what they are writing.
          2.) What datatype are you going to use in the database to store the .. eh signature?

          we will be using clob datatype to store in the DB.
          i dont understand your first question. if my understanding is correct.
          when the user drags the mouse it will be show in the area which is meant for signature. the user can see it in our screen.

          Comment

          • r035198x
            MVP
            • Sep 2006
            • 13225

            #6
            Will the signature be text or an image?

            Comment

            • bindhu80
              New Member
              • Jul 2008
              • 8

              #7
              The signature will be an image

              Comment

              • r035198x
                MVP
                • Sep 2006
                • 13225

                #8
                You therefore can't store it using Clob then can you?
                And you can't use the page for it either. You'd need some image creation software. The user would create the image by doing the drawing ...
                Do you really need to have all those complications?

                Comment

                • bindhu80
                  New Member
                  • Jul 2008
                  • 8

                  #9
                  We dont want all those complications but the client requirement is so.

                  Comment

                  • r035198x
                    MVP
                    • Sep 2006
                    • 13225

                    #10
                    Originally posted by bindhu80
                    We dont want all those complications but the client requirement is so.
                    What would be the use for that signature? If I draw something on some paint program using the mouse, chances are that I'll never be able to draw the exact same thing again anyway. How would you check that the signature entered matches one in the database?

                    Comment

                    • bindhu80
                      New Member
                      • Jul 2008
                      • 8

                      #11
                      Its not used for verfication. we store it in DB and where ever that person information comes we will retrive that signature from DB.

                      Comment

                      • bindhu80
                        New Member
                        • Jul 2008
                        • 8

                        #12
                        Pls can some one help me.....

                        Comment

                        • r035198x
                          MVP
                          • Sep 2006
                          • 13225

                          #13
                          Originally posted by bindhu80
                          Its not used for verfication. we store it in DB and where ever that person information comes we will retrive that signature from DB.
                          So it's just a picture created by the user that you store and display without making any checks for it?

                          Comment

                          • bindhu80
                            New Member
                            • Jul 2008
                            • 8

                            #14
                            yes you are correct....

                            Comment

                            • JosAH
                              Recognized Expert MVP
                              • Mar 2007
                              • 11453

                              #15
                              I'd use an Applet (or JApplet) for the actual drawing and the communication back
                              to the host where the Applet came from. The Applet should send the data of the
                              Image over to the host that saves it in its database ready to be send back again
                              to a client machine for a particular user. The last part can be done using a JSP
                              page. Read Sun's tutorial on (J)Applets.

                              kind regards,

                              Jos

                              Comment

                              Working...