-
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
-
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" />
-
hi
Thanks a lot for ur valuable reply.
-
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
-
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.
-
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
-
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?
-
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
-
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
-
By edburdo in forum ASP.NET
Replies: 3
Last Post: 07-13-2006, 10:43 PM
-
Replies: 4
Last Post: 08-01-2003, 01:06 PM
-
By Sanjeev in forum ASP.NET
Replies: 1
Last Post: 07-23-2003, 05:26 AM
-
By Ian W in forum ASP.NET
Replies: 1
Last Post: 10-26-2001, 04:35 PM
-
By Larry in forum ASP.NET
Replies: 1
Last Post: 06-28-2000, 02: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
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|