Category: J2EE Category

Session tracking methods in Servlet? 0

Session tracking methods in Servlet?

What is Session? What is Session Management? Why Use Session Management? Different ways to maintain Session. Hidden form field URL rewriting Cookies Servlet session API [ HttpSession ] Session Management Examples What is Session?...

Difference between forward and Redirect 0

Difference between forward and Redirect

forward Control can be forward to resources available within the server from where the call is made. This transfer of control is done by the container internally and browser / client is not involved....

What is the difference between variable declared inside a declaration part and variable declared in scriplet part? 0

What is the difference between variable declared inside a declaration part and variable declared in scriplet part?

Variable declared inside declaration part is treated as a global variable.that means after convertion jsp file into servlet that variable will be in outside of service method or it will be declared as instance...

Is there a way to execute a JSP from the comandline or from my own application? 0

Is there a way to execute a JSP from the comandline or from my own application?

There is a little tool called JSPExecutor that allows you to do just that. The developers ( Hendrik Schreiber <hs@webapp.de> & Peter Rossbach <pr@webapp.de>) aim was not to write a full blown servlet engine,...

Explain the life-cycle methods in JSP? 0

Explain the life-cycle methods in JSP?

The generated servlet class for a JSP page implements the HttpJspPage interface of the javax.servlet.jsp package. The HttpJspPage interface extends the JspPage interface which inturn extends the Servlet interface of the javax.servlet package. the...

Difference between forward and sendRedirect? 0

Difference between forward and sendRedirect?

When you invoke a forward request, the request is sent to another resource on the server, without the client being informed that a different resource is going to process the request. This process occurs...

What are implicit objects? List them? 0

What are implicit objects? List them?

Certain objects that are available for the use in JSP documents without being declared first. These objects are parsed by the JSP engine and inserted into the generated servlet. The implicit objects re listed...

What is a Scriptlet? 0

What is a Scriptlet?

A scriptlet can contain any number of language statements, variable or method declarations, or expressions that are valid in the page scripting language.Within scriptlet tags, you can 1.Declare variables or methods to use later...

What is a Declaration ? 0

What is a Declaration ?

A declaration declares one or more variables or methods for use later in the JSP source file. A declaration must contain at least one complete declarative statement. You can declare any number of variables...