Created
August 21, 2017 09:53
-
-
Save ramesh-lingappan/5d808d576d05256872825ca7f24a44a2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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