Dynamically retrieving email contents


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 9 of 9

Thread: Dynamically retrieving email contents

  1. #1
    Join Date
    Jul 2005
    Posts
    54

    Dynamically retrieving email contents

    hi,
    I am doing one web application in JSP.In that project,i want to download the email contents and attachment came to a particular email.
    I did this retreiving from emails whenever i clicks on a link.
    it is working fine.and i am able to retrieve the email content perfectly.
    Now i want to do thie retrieving without clicking any link or button,it has dynamically retreive the content from the mail.
    Is it possible to make the retrieving code running in the background whenever i logs into the application?and also the foreground function.
    If so can anyone tell me how to make a background process using jsp?

    Thanks a lot

  2. #2
    Join Date
    Sep 2006
    Posts
    68
    Of course it is possible
    Insert jsp:include command where you need to download email content.

    Syntax:
    <jsp:include page="{relativeURL | <%= expression %>}" flush="true" />

    Example:
    <jsp:include page="docs/email.jsp" />

  3. #3
    Join Date
    Jul 2005
    Posts
    54
    hi
    Thanks a lot for ur valuable reply.

  4. #4
    Join Date
    Jul 2005
    Posts
    54
    hi,
    I used <jsp:include page="docs/email.jsp" /> like this to dynamically retrieving the email contents.
    in my project first page is the login page and i added the jsp include tag in the next page after checking the username and password.
    the pbm is to display the mainpage of my project it is taking so long time because it is retrieving the attachments.
    is it possiblity to do background processing?

    Thanks a lot

  5. #5
    Join Date
    Sep 2006
    Posts
    68
    I don't know any background processes in the JSP but you can start loading your email content after the page is fully loaded. (load content by means of the JavaScript in the onLoad() method) or use a HTML iFrame.

  6. #6
    Join Date
    Jul 2005
    Posts
    54
    hi uladzimir
    i tried using iframe also.Using that also taking so much of time.cause i am retrieving the attachments from the email.
    Do u have any idea of retrieving automatically?
    Actually what im trying to do in my project is,user can sent mails with attachments like photos to a particular mail-id.whenever he logs in to my project,those mails attachment photos are to store in a folder by his name and to display a message that those photos are received.
    Any idea to do this in different way?

    Thanks a lot

  7. #7
    Join Date
    Sep 2006
    Posts
    68
    Oddly... with usage of the iFrame you can load your page and an user able to work with it while content still loading.

    OK. Maybe AJAX framework suits you?

  8. #8
    Join Date
    Jul 2005
    Posts
    54
    hi uladzimir,
    Thanks a lot for ur reply.
    the iframe idea is working fine.
    i want to display an information to the user.
    in my project my first page is login.jsp and in the second page main.jsp i added the iframe tag like <iframe class="mail.jsp"> and it is possible to come to the main.jsp page any of the page in my project.
    so the information added in the iframe is getting displayed each every time.
    but i want to display one after the user logs in.
    can u tell me any idea to display an information like this?

    Thanks a lot

  9. #9
    Join Date
    Sep 2006
    Posts
    68
    If you want to show the main.jsp when an user is logged only you have to save some attribute in the session which indicates is user logged or not. Also check at the main.jsp if the attribute is set. If yes then show a content. Otherwise - nothing to do or redirect to the login page.

Similar Threads

  1. Replies: 3
    Last Post: 07-13-2006, 11:43 PM
  2. Replies: 4
    Last Post: 08-01-2003, 02:06 PM
  3. Replies: 1
    Last Post: 07-23-2003, 06:26 AM
  4. email form contents
    By Ian W in forum ASP.NET
    Replies: 1
    Last Post: 10-26-2001, 05:35 PM
  5. Replies: 1
    Last Post: 06-28-2000, 03:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center