Advertisement
Guest User

Untitled

a guest
Oct 8th, 2012
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.64 KB | None | 0 0
  1. package grahamsprojclient.servlet;
  2.  
  3. import java.io.IOException;
  4. import javax.servlet.ServletException;
  5. import javax.servlet.ServletRequest;
  6. import javax.servlet.ServletResponse;
  7. import javax.servlet.http.HttpServletRequest;
  8. import javax.servlet.http.HttpServlet;
  9.  
  10. public class GrahamsProjServlet extends HttpServlet {  
  11.  
  12.     public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException {  
  13.         HttpServletRequest _req = (HttpServletRequest) req;  
  14.         res.setContentType("application/x-java-jnlp-file");
  15.         _req.getRequestDispatcher("/jnlp.jsp").include(req, res);  
  16.     }  
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement