What is the Difference Between Following

Both the tags include information from one JSP page in another. The differences are: < jsp : include page = … > This is like a function call from one jsp to another jsp. It is executed ( the included page is executed and the generated html content is included in the content of calling … Read more

What do you Understand by JSP Actions

JSP actions are XML tags that direct the server to use existing components or control the behavior of the JSP engine. JSP Actions consist of a typical (XML-based) prefix of “jsp” followed by a colon, followed by the action name followed by one or more attribute parameters. There are six JSP Actions: < jsp : … Read more

Difference Between Servlets And JSP

Servlets and Java Server Pages are complementary APIs, both providing a means for generating dynamic Web content. A servlet is a Java class implementing the javax.servlet.Servlet interface that runs within a Web or application server’s servlet engine, servicing client requests forwarded to it through the server. A Java Server Page is a slightly more complicated … Read more

Difference Between the Request Attribute and Request Parameter

Request parameters are the result of submitting an HTTP request with a query string that specifies the name/value pairs, or of submitting an HTML form that specifies the name/value pairs. The name and the values are always strings. For example, when you do a post from html, data can be automatically retrieved by using getParameter(). Parameters … Read more

Difference Between Forward and response.sendRedirect

Forward : when forward is used server forwards the request to the new url and the control stays on the same page. in other words it just forward the request to new url and come back fomr where forward is called. sendRedirect : sendRedirect forward the request to url as new request and the cotrol goes to the destination page and never … Read more