)..CONSTRAINT fk_1_apme_dc_reference FOREIGN KEY (apme_dc_tag_unit_refno)
REFERENCES apmc_dc_reference_category (apmc_dc_reference_sno) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE NO ACTION)
<form action="<%=request.getContextPath()%>/NewFile2.jsp?name=roopam" method="post" >
enter text here<input type="text" name="text"/><br>
<center><input type="submit" value="submit"></center><br>
</form>
<form name="myform" action="<%=request.getContextPath()%>/test/reqServlet" method="post">
<input type="text" value=<%=request.getParameter("text")%>></input>
<input type="submit" value="submit"/>
</form>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type></HEAD>
<BODY></BODY></HTML>
<servlet>
<description></description>
<display-name>reqServlet</display-name>
<servlet-name>reqServlet</servlet-name>
<servlet-class>servlet.reqServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>reqServlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
Sure, a servlet can emit anything it wants to as the response, including HTML.
But that's not considered the best practice. The servlet should performa any processing
that needs to get done in order to prepare the page for display, and then forward to a JSP
to actually render the HTML.
Well servlet does not render HTML page, it is actually meant for control, but lets say for now it can produce some sort of response.
when a web server receives the request for dynamic web page the server passes the request to web application
then application receives the request and generates a response usually a html page and web server wraps this response
html document in an http response and sends it back to the browser
whenever client clicks on URL a HTTP request is made to web server like Apache and if the request is for dynamic
web page then request is passed to Tomcat(Servlet and jsp engine/web container) and that checks the deployment descriptor mapping
and passes the request to concerned Servletfor processing the request (instantiates the concerned servlet and invokes doGet() or doPost() based on HTTP request)
and this servlet will render a HTML page to web server and
that HTML page will be wrapped to HTTP response and will be returned to client browser
when a web server receives the request for dynamic web page the server passes the request to web application
then application receives the request and generates a response usually a html page and web server wraps this response
html page in http an response and sends it back to the browser