Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ramesh-lingappan/5d808d576d05256872825ca7f24a44a2 to your computer and use it in GitHub Desktop.
Save ramesh-lingappan/5d808d576d05256872825ca7f24a44a2 to your computer and use it in GitHub Desktop.
package com.rameshl.demo.servlets;
import com.rameshl.demos.service.GreetingService;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* MultiModules
* Created by Ramesh on 8/21/17.
*/
public class GreetingServlet extends HttpServlet {
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
// service from common module
GreetingService greetingService = new GreetingService();
resp.getWriter().println(greetingService.getGreetings("Module"));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment