Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7025445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:58:34+00:00 2026-05-27T23:58:34+00:00

I am working on a restaurant web portal which will send periodic emails to

  • 0

I am working on a restaurant web portal which will send periodic emails to the registered users such as changes in menu, discounts and offers, birthday wishes etc.

Here is how I am doing it-

  1. I create a JSP page with the HTML formatting. This page accepts certain parameters that will customize the page.
  2. The MailDaemon scans the db and upon a certain trigger will make a GET request to the JSP.
  3. The returned JSP represents the final mail content which is then sent using the JavaMail API.

My questions are these –

  1. Do I really need to make a GET request? Or can I obtain the JSP result directly in my Daemon class?
  2. Does my approach have any drawbacks? Any better solutions (architecturally speaking)
  3. Any other templating solutions for the job?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:58:34+00:00Added an answer on May 27, 2026 at 11:58 pm
    1. It’s possible to buffer a response from your JSP using javax.servlet.RequestDispatcher#include by wrapping original response in javax.servlet.ServletResponseWrapper (in case your MailDaemon is a servlet)
    2. Your approach is OK. Though it’ll be easier to leverage another templating engine.
    3. Apache Velocity or FreeMarker. These two are not tied to web, so you can easily use them without servlet container.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a Web site for a restaurant, and as the menu
I currently have a working menu test for my restaurant that reads input received
I am working on a project which uses a table for storing all restaurant
I am working on a website on which i show restaurants according to either
Working in an app where a page_title method was defined in application_helper.rb as such:
I'm working on a restaurant CMS app. I have a many-to-many relationship between 2
I am working on ASP.NET MVC3. I have a partial view RestaurantAdminNavigation.ascx which i
Working with an API where I need to send a value over in an
I am working on an app that posts restaurant information to the user's Facebook
I am working on a restaurant app using Hibernate. I have several entities like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.