0 Replies Latest reply on May 1, 2011 6:09 AM by satyakatti

    Get image path in non-servlet

    satyakatti

      Hi All,

       

      I have a scheduled task running in JBoss 5.1 on a daily basis for sending birthday wishes.

       

      The mail content is HTML and I embed images in the mail.

       

      Now I would like to get the path of that image for embedding, how would it be possible to get path of image in a non-servelt environment.

       

      Ofcourse I could have placed the images at a static location and accessed them, for which I don't want to hardcode the path.

       

      The image is at "WebContent/images/birthday.jpg" location.

       

      Regards,

      Satya