Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package grahamsprojclient.servlet;
- import java.io.IOException;
- import javax.servlet.ServletException;
- import javax.servlet.ServletRequest;
- import javax.servlet.ServletResponse;
- import javax.servlet.http.HttpServletRequest;
- import javax.servlet.http.HttpServlet;
- public class GrahamsProjServlet extends HttpServlet {
- public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException {
- HttpServletRequest _req = (HttpServletRequest) req;
- res.setContentType("application/x-java-jnlp-file");
- _req.getRequestDispatcher("/jnlp.jsp").include(req, res);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement