Jai Sund

Greenhorn
+ Follow
since May 31, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jai Sund

Anurag,
What Bear is suggesting is to use
response.sendRedirect("http://www.xxx.com?var1=val1");
inside your servlet's service or doXXX() method.
-Jai
SCJP
20 years ago
Hi folks,
I'm building a
java interface (class) for my web appln. Basically, I want this
interface to be an email interface (internally I will use JavaMail
API)
to send messages. The email contents and recipient lists are all
to be dynamicallly generated. I want some ideas on the design.
For the FROM, TO, CC, BCC lists, I plan to have setter methods.
However, the subject and BODY are in the form of standard text
files with PLACEHOLDERS for dynamic text inclusion.
I am thinking of using xml files for the different email templates. However, I'm a little unsure of how to use PLACEHOLDERS (eg. would they be EMPTY elements?).
Do you think, it is worthwhile including an xml parser into my
app for this purpose. There is likely to be additional templates, in future.
The email interface that I build, should be generic enough to read
from
these templates and include the dynamic content at placeholder
spaces
and generate emails to recipient list.
If you have the time, do send me your thoughts on how you would
approach this. I'm trying to think of the simplest way to implement
this.
Shd. I go text file and do parsing on my own or go XML way....?
Thanks,
-JS
=====
mock template eg:-
subject: project [PROJ_NAME] has been approved
body:
Hi [USER_NAME],
This email is to let you know that the project [PROJ_NAME] has
been approved with the foll. info
Project Start date : [START_DATE]
project end date : [END_DATE]
budget : [$AMOUNT]
This is for your informational purpose only.
Thanks,
[APPROVER]
21 years ago
Hi folks,
I'm building a
java interface (class) for my web appln. Basically, I want this
interface to be an email interface (internally I will use JavaMail
API)
to send messages. The email contents and recipient lists are all
to be dynamicallly generated. I want some ideas on the design.
For the FROM, TO, CC, BCC lists, I plan to have setter methods.
However, the subject and BODY are in the form of standard text
files with PLACEHOLDERS for dynamic text inclusion.
I am thinking of using xml files for the different email templates. However, I'm a little unsure of how to use PLACEHOLDERS (eg. would they be EMPTY elements?).
Do you think, it is worthwhile including an xml parser into my
app for this purpose. There is likely to be additional templates, in future.
The email interface that I build, should be generic enough to read
from
these templates and include the dynamic content at placeholder
spaces
and generate emails to recipient list.
If you have the time, do send me your thoughts on how you would
approach this. I'm trying to think of the simplest way to implement
this.
Shd. I go text file and do parsing on my own or go XML way....?
Thanks,
-JS
=====
mock template eg:-
subject: project [PROJ_NAME] has been approved
body:
Hi [USER_NAME],
This email is to let you know that the project [PROJ_NAME] has
been approved with the foll. info
Project Start date : [START_DATE]
project end date : [END_DATE]
budget : [$AMOUNT]
This is for your informational purpose only.
Thanks,
[APPROVER]
Hi folks,
I'm building a
java interface (class) for my web appln. Basically, I want this
interface to be an email interface (internally I will use JavaMail
API)
to send messages. The email contents and recipient lists are all
to be dynamicallly generated. I want some ideas on the design.
For the FROM, TO, CC, BCC lists, I plan to have setter methods.
However, the subject and BODY are in the form of standard text
files with PLACEHOLDERS for dynamic text inclusion.
I am thinking of using xml files for the different email templates. However, I'm a little unsure of how to use PLACEHOLDERS (eg. would they be EMPTY elements?).
Do you think, it is worthwhile including an xml parser into my
app for this purpose. There is likely to be additional templates, in future.
The email interface that I build, should be generic enough to read
from
these templates and include the dynamic content at placeholder
spaces
and generate emails to recipient list.
If you have the time, do send me your thoughts on how you would
approach this. I'm trying to think of the simplest way to implement
this.
Shd. I go text file and do parsing on my own or go XML way....?
Thanks,
-JS
=====
mock template eg:-
subject: project [PROJ_NAME] has been approved
body:
Hi [USER_NAME],
This email is to let you know that the project [PROJ_NAME] has
been approved with the foll. info
Project Start date : [START_DATE]
project end date : [END_DATE]
budget : [$AMOUNT]
This is for your informational purpose only.
Thanks,
[APPROVER]
21 years ago
Priya,
One idea is to have some sort of link in your JSP page and on clicking that you can execute your servlet class. For example,
<a href="<%=ctxPath%>/yourServlet">
<img src="<%=imgPath%>\btn_your_servlet.gif">
</a>
Inside your servlet you can then do the trick to access your EJB. Hope this helps.
cheers,
-Jai
21 years ago
JSP
Hello,
We're creating an appication using JSP.
Making tag library calls (from a packaged application) is significantly degrading the performance of my application. I tried storing all the data I need (which is about 2 HashMaps worth) in a session scope variable.
However, performance still seems be very unacceptable. I want to store my variables in 'application' scope. How do I use WebLogic6.1 to run my JSP page to do my initialization?
Thanks,
-Jai
21 years ago
JSP
Dear Harmut,
Thank you so much. This is going to be very useful for me. Appreciate the time you've taken to help answer this.
-Jai
21 years ago
JSP
Hello,
Is there a way to query active sessions (count) of my web application. I want to ensure that when I'm logging out I invalidate the sessions.
I am using weblogic6.1. Would the weblogic console provide this functionality?
Thanks,
-Jai
21 years ago
JSP
Hi folks,
I recently took and passed the programmers exam 310-025. However, I barely passed (67%). I used to score 80s and 90s in the mock exams from this site. One of the things I didn't have time in the exam was to 'uncheck' the marked answers. Would this cause my answers to be unaccounted for in the final tally. I had about a dozen left marked.
I would imagine this wouldn't be true and that I just screwed up in the answering. However, I just want to make sure that is indeed the case.
thanks,
-Jai
SCJP