<< < 8 9 10 11 12 13 14 15 16 17 18 > >>   Sort: Date

Deleting Cookies in JSP Pages
How do you delete a Cookie within a JSP? Cookie mycook = new Cookie("name","value"); response.addCookie(mycook); Cookie killmycook = new Cookie("mycook","value"); killmycook.setMaxAge(0); killmycook.setPath("/"); killmycook.addCookie(killmycoo k);
2007-04-03, 5692👍, 0💬

Relation between HTML and XML
What Is the Relation between HTML and XML? XML (Extensible Markup Language) is a generic markup language to organize generic information into a structured document with embedded tags. HTML is not related to XML other than the factor that both languages uses embedded tags in with similar syntaxes. Fo...
2007-03-03, 5683👍, 0💬

Modifiers on Inner Classes
What modifiers may be used with an inner class that is a member of an outer class? A inner class may be declared as public, protected, private, static, final, or abstract.
2007-03-03, 5681👍, 0💬

JComponent and Component
Why does JComponent have add() and remove() methods but Component does not? Because JComponent is a subclass of Container, and can contain other components and jcomponents.
2007-04-03, 5679👍, 0💬

What is Jakarta Struts Framework
What is Jakarta Struts Framework? Jakarta Struts is open source implementation of MVC (Model-View-Controller) pattern for the development of web based applications. Jakarta Struts is robust architecture and can be used for the development of application of any size. Struts framework makes it much ea...
2007-12-10, 5677👍, 0💬

Who Should Use JUnit, Developers or Testers
Who Should Use JUnit, Developers or Testers? I should say that JUnit is mostly used by developers. JUnit is designed for unit testing, which is really a coding process, not a testing process. But many testers or QA engineers, are also required to use JUnit for unit testing. For example, I found this...
2008-01-02, 5674👍, 0💬

How do you submit a form using Javascript?
How do you submit a form using Javascript? Use document.forms[0].submit(); (0 refers to the index of the form – if you have more than one form in a page, then the first one has the index 0, second has index 1 and so on).
2008-03-18, 5666👍, 0💬

SingleThreadModel Deprecated
In the Servlet 2.4 specification SingleThreadModel has been deprecated, why? Because it is not practical to have such model. Whether you set isThreadSafe to true or false, you should take care of concurrent client requests to the JSP page by synchronizing access to any shared objects defined at the ...
2007-04-03, 5663👍, 0💬

Missing JSP and SSI Includes
How do I mix JSP and SSI #include? If you're just including raw HTML, use the #include directive as usual inside your .jsp file. &lt;!--#include file="data.inc"--&gt;
2007-04-03, 5661👍, 0💬

Uploading Files with File Input Fields in a Form
How To Write the FORM Tag Correctly for Uploading Files? When users clicks the submit button, files specified in the &lt;INPUT TYPE=FILE...> will be transferred from the browser to the Web server. This transferring (uploading) process is controlled by a properly written &lt;FORM...> tag as: ...
2007-02-27, 5659👍, 0💬

How To List All User Accounts
How To List All User Accounts? - Oracle DBA FAQ - Managing Oracle User Accounts, Schema and Privileges User accounts can be accessed through a system view called ALL_USERS. A simple SELECT statement can be used to get a list of all user accounts. Try the following script: >.\bin\sqlplus /nolog SQL> ...
2007-05-02, 5649👍, 0💬

Preventing JSP Pages Being Cached by Browsers
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...
2007-04-03, 5648👍, 0💬

Setting Session Timeout Period
Is there a way I can set the inactivity lease period on a per-session basis? Typically, a default inactivity lease period for all sessions is set within your JSPengine admin screen or associated properties file. However, if your JSP engine supports the Servlet 2.1 API, you can manage the inactivity ...
2007-04-03, 5641👍, 0💬

What Is Transport Network Substrate (TNS)
What Is Transport Network Substrate (TNS)? - Oracle DBA FAQ - Oracle Basic Concepts TNS, Transport Network Substrate, is a foundation technology, built into the Oracle Net foundation layer that works with any standard network transport protocol.
2007-04-22, 5640👍, 0💬

What Is Synchronization
What do you understand by Synchronization? Synchronization is a process of controlling the access of shared resources by the multiple threads in such a manner that only one thread can access one resource at a time. In non synchronized multithreaded application, it is possible for one thread to modif...
2007-03-03, 5637👍, 0💬

Calling unmanaged function from within managed code
Calling unmanaged function from within managed code When we use windows API in Dot Net?Is it managed or un managed code? Have you ever tried to called an unmanaged function (eg: MessageBox function inside the User32.dll ) with in a managed code? Let's try to do that. Open up your Visual studio 2005 ...
2009-03-06, 5636👍, 0💬

Servlet Communicates with JSP Pages
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...
2007-04-03, 5635👍, 0💬

What does the "Access is Denied" IE error mean?
What does the "Access is Denied" IE error mean? The "Access Denied" error in any browser is due to the following reason. A JavaScript in one window or frame is tries to access another window or frame whose document's domain is different from the document containing the script.
2008-07-08, 5634👍, 0💬

Is Struts efficient
Is Struts efficient? Yes. The Struts is not only thread-safe but thread-dependent (instantiates each Action once and allows other requests to be threaded through the original object. ActionForm beans minimize subclass code and shorten subclass hierarchies. The Struts tag libraries provide general-pu...
2007-12-07, 5634👍, 0💬

Preventing the Creation of Sessions in JSP Pages
How do you prevent the Creation of a Session in a JSP Page and why? By default, a JSP page will automatically create a session for the request if one does not exist. However, sessions consume resources and if it is not necessary to maintain a session, one should not be created. For example, a market...
2007-04-03, 5633👍, 0💬

How to write a script manage a list using JavaScript?
How to write a script manage a list using JavaScript? 1. To remove an item from a list: set it to null: myList[3] = null; 2. To truncate a list: reset the length property: myList.length = 2; 3. To delete all items in a list, set the length to 0: myList.length = 0;
2008-07-01, 5632👍, 0💬

What is negative infinity?
What is negative infinity? It’s a number in JavaScript, derived by dividing negative number by zero.
2008-06-17, 5629👍, 0💬

CLASSPATH Environment Variable
If a class is located in a package, what do you need to change in the OS environment to be able to use it? You need to add the directory or the jar file that contains the package to the CLASSPATH environment variable. Let's say a class Employee belongs to a package com.xyz.hr; and is located in the ...
2007-03-03, 5625👍, 0💬

What are benefits and limitations of using Viewstate for state management?
.NET INTERVIEW QUESTIONS - What are benefits and limitations of using Viewstate for state management? Following are the benefits of using Viewstate :- * No server resources are required because state is in a structure in the page code. * Simplicity. * States are retained automatically. * The values ...
2009-07-07, 5618👍, 0💬

<< < 8 9 10 11 12 13 14 15 16 17 18 > >>   Sort: Date