<< < 1 2 3 4 5   Sort: Date

What information is needed to create a TCP Socket?
What information is needed to create a TCP Socket? The Local Systems IP Address and Port Number. And the Remote System’s IPAddress and Port Number.
2013-07-12, 1587👍, 0💬

Can a JSP page process HTML FORM data?
Can a JSP page process HTML FORM data? Yes. However, unlike servlets, you are not required to implement HTTP-protocol specific methods like doGet() or doPost() within your JSP page. You can obtain the data for the FORM input elements via the request implicit object within a scriptlet or expression a...
2013-07-30, 1578👍, 0💬

How many messaging models do JMS provide for and what are they?
How many messaging models do JMS provide for and what are they? JMS provide for two messaging models, publish-and-subscribe and point-to-point queuing.
2013-07-12, 1576👍, 0💬

How can I enable session tracking for JSP pages if the browser has disabled cookies?
How can I enable session tracking for JSP pages if the browser has disabled cookies? 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 tracking ...
2013-07-20, 1569👍, 0💬

How does a servlet communicate with a JSP page?
How does a servlet communicate with a JSP page? 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 JSP page, Bean1.jsp, by means of a request dispatc...
2013-08-01, 1560👍, 0💬

How to Retrieve Warnings?
How to Retrieve Warnings? SQLWarning objects are a subclass of SQLException that deal with database access warnings. Warnings do not stop the execution of an application, as exceptions do; they simply alert the user that something did not happen as planned. A warning can be reported on a Connection ...
2013-07-15, 1557👍, 0💬

How do I use comments within a JSP page?
How do I use comments within a JSP page? You can use "JSP-style" comments to selectively block out code while debugging or simply to comment your scriptlets. JSP comments are not visible at the client. For example: --%&gt; You can also use HTML-style comments anywhere within your JSP page. These...
2013-07-25, 1555👍, 0💬

How does JSP handle run-time exceptions?
How does JSP handle run-time exceptions? You can use the errorPage attribute of the page directive to have uncaught runtime exceptions automatically forwarded to an error processing page. For example: redirects the browser to the JSP page error.jsp if an uncaught exception is encountered during requ...
2013-07-25, 1552👍, 0💬

Is there a way to reference the "this" variable within a JSP page?
Is there a way to reference the "this" variable within a JSP page? Yes, there is. Under JSP 1.0, the page implicit object is equivalent to "this", and returns a reference to the servlet generated by the JSP page.
2013-07-30, 1551👍, 0💬

How do I prevent the output of my JSP or Servlet pages from being cached by the browser?
How do I prevent the output of my JSP or Servlet pages from being cached by the browser? You will need to set the appropriate HTTP header attributes to prevent the dynamic content output by the JSP page from being cached by the browser. Just execute the following scriptlet at the beginning of your J...
2013-07-23, 1541👍, 0💬

Is it possible to share an HttpSession between a JSP and EJB? What happens when I change a value in the HttpSession from inside
Is it possible to share an HttpSession between a JSP and EJB? What happens when I change a value in the HttpSession from inside an EJB? You can pass the HttpSession as parameter to an EJB method, only if all objects in session are serializable. This has to be consider as "passed-by-value", that mean...
2013-07-27, 1537👍, 0💬

What is JSP?
What is JSP? Let's consider the answer to that from two different perspectives: that of an HTML designer and that of a Java programmer. If you are an HTML designer, you can look at JSP technology as extending HTML to provide you with the ability to seamlessly embed snippets of Java code within your ...
2013-08-05, 1528👍, 0💬

How can I declare methods within my JSP page?
How can I declare methods within my JSP page? 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 not have direct access to any of the JSP implicit ob...
2013-07-29, 1526👍, 0💬

<< < 1 2 3 4 5   Sort: Date