![]() Related Questions Latest Answer : Difference 1:Action include allows us to specify an expression that resolves to the file path to include whereas directive include does not allows expression to specify file path.Difference 2:While including a static page using directive include(static ... Latest Answer : Using a Bean in a JSP PageTo use a bean in a JSP page, three attributes must be supplied - an id, which provides a local name for the bean, the bean's class name, which is used to instantiate the bean if it does not exit, and a scope, which specifies ... Latest Answer : scriptelet are used to write the code in any language but that language is mentioned in page language attribute.ex://returns siva kumar expession are used to display the simple values and returning ... Latest Answer : hi, We Can restrict page errors by using the two attributes of page directive i.e. error attribute set to true and then use the errorPage attributes that specifies the url of Error page.Thanks ... Latest Answer : Hi guysthere are 3 ways to do this1) 2) response.sendredirect3) forward methos of requestdispatcher ... How do I have the JSP-generated servlet subclass my own custom servlet class, instead of the default? One should be very careful when having JSP pages extend custom servlet classes as opposed to the default one generated by the JSP engine. In doing so, you may lose out on any advanced optimization that The following code snippet shows how a servlet instantiates a bean and initializes it with FORM data posted by a browser. The bean is then placed into the request, and the call is then forwarded to the Latest Answer : Hi Jose Kutty,Mr. Nanda is wrong. We can create RequestDespatcher object by two ways, either by ServletRequest object request.getRequestDispatcher("/abc.jsp");// here you need to mention relative path(or) ... A cookie, mycookie, can be deleted using the following scriptlet: Latest Answer : In First line, We are creating cookie object of cookie class,after that we are sending response to server.we make object which take null value and it, setting life 0, after that we cookie send token to server, with null value, and max age 0.then cookie ... You can declare methods for use within your JSP page as declarations. The methods can then be invoked within any other methods you declare, or within JSP scriptlets and expressions.Do note that you do We know that session tracking uses cookies by default to associate a session identifier with a unique user. If the browser does not support cookies, or if cookies are disabled, you can still enable session
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||