How do you communicate in between applets and servlets?
We can use the java.net.URLConnection and java.net.URL classes to open a standard HTTP connection and "tunnel" to the web server. The server then passes this information to the servlet in the normal way. Basically, the applet pretends to be a web browser, and the servlet doesn't know the difference. As far as the servlet is concerned, the applet is just another HTTP client.
Most Recent servlet Faqs
- How to get the client information in a Servlet?
- Can I control Session timeout?
- What is the difference between RequestDispatcher's forward method and HttpServletResponse's sendRedirect method?
- When do I use HttpSessionListener?
- What is the difference between the request attribute and request parameter?
- What is the defferent between getNamedDispatcher() and getRequestDispatcher()?
- How do you communicate in between applets and servlets?
Most Viewed servlet Faqs
- What is the difference between the request attribute and request parameter?(12100)
- When do I use HttpSessionListener?(11630)
- How to use ServletContext.getResourceAsStream(java.lang.String path)?(8249)
- What is the difference between RequestDispatcher's forward method and HttpServletResponse's sendRedirect method?(6880)
- Can I control Session timeout?(5294)
- What is the defferent between getNamedDispatcher() and getRequestDispatcher()?(4916)
- How to get the client information in a Servlet?(4477)