<< < 5 6 7 8 9 10 11 12 13 14 15 > >>   Sort: Date

What is the design role played by Struts
What is the design role played by Struts? The role played by Structs is controller in Model/View/Controller(MVC) style. The View is played by JSP and Model is played by JDBC or generic data source classes. The Struts controller is a set of programmable components that allow developers to define exac...
2007-11-30, 6291👍, 0💬

require(), include() and include_once() Functions
What are the differences between require(), include() and include_once() functions in PHP? All three functions are used to include and evaluate a file into the current script execution. The include_once() statement includes and evaluates the specified file during the execution of the script. This is...
2007-02-27, 6290👍, 0💬

How do you convert numbers between different bases in JavaScript?
How do you convert numbers between different bases in JavaScript? Use the parseInt() function, that takes a string as the first parameter, and the base as a second parameter. So to convert hexadecimal 3F to decimal, use parseInt ("3F", 16);
2008-04-29, 6288👍, 0💬

How Struts control data flow
How Struts control data flow? Struts implements the MVC/Layers pattern through the use of ActionForwards and ActionMappings to keep control-flow decisions out of presentation layer.
2007-11-30, 6269👍, 0💬

What does "1"+2+4 evaluate to?
What does "1"+2+4 evaluate to? Since "1" is a string, everything is a string, so the result is a string of "124".
2008-07-29, 6246👍, 0💬

Using ServletOutputStream Object in JSP Pages
Can you make use of a ServletOutputStream object from within a JSP page? No. You are supposed to make use of only a JSPWriter object (given to you in the form of the implicit object out) for replying to clients. A JSPWriter can be viewed as a buffered version of the stream object returned by respons...
2007-04-03, 6246👍, 0💬

Defining an Interface
How to define an Interface? Java Interface defines methods but does not implement them. Interface can include constants. A class that implements an interface is required to implement all the methods defined in the interface. Here is an example of interface definition: public interface MyInterface { ...
2007-03-03, 6242👍, 0💬

Do we need to pay the Struts if being used in commercial purpose
Do we need to pay the Struts if being used in commercial purpose? No. Struts is available for commercial use at no charge under the Apache Software License. You can also integrate the Struts components into your own framework just as if they were writtern in house without any red tape, fees, or othe...
2007-11-29, 6230👍, 0💬

How to add Buttons in JavaScript?
How to add Buttons in JavaScript? The most basic and ancient use of buttons are the "submit" and "clear", which appear slightly before the Pleistocene period. Notice when the "GO!" button is pressed it submits itself to itself and appends the name in the URL. &lt;form action="" name="buttonsGalo...
2008-05-20, 6224👍, 0💬

Wrapped Classes
What are wrapped classes? Wrapped classes are classes that allow primitive types to be accessed as objects.
2007-03-03, 6221👍, 0💬

What are benefits and limitations of using Cookies?
.NET INTERVIEW QUESTIONS - What are benefits and limitations of using Cookies? Following are benefits of using cookies for state management :- * No server resources are required as they are stored in client. * They are light weight and simple to use Following are limitation of using cookies :- * Mos...
2009-07-21, 6215👍, 0💬

Component Subclasses in Swing Package
Name Component subclasses that support painting? The Canvas, Frame, Panel, and Applet classes support painting.
2007-03-03, 6211👍, 0💬

Forms and Pull-Down Navigatin Menus
How can I use forms for pull-down navigation menus? There is no way to do this in HTML only; something else must process the form. JavaScript processing will work only for readers with JavaScript-enabled browsers. CGI and other server-side processing is reliable for human readers, but search engines...
2007-03-03, 6209👍, 0💬

What helpers in the form of JSP pages are provided in Struts framework
What helpers in the form of JSP pages are provided in Struts framework? There are 4 major JSTLs (JSP Standard Tag Libraries) provided in Struts as JSP helpers. Those tag libraries are described in TLD (Tag Library Descriptor) files: struts-html.tld - Tags to help generating HTML elements. struts-for...
2007-12-05, 6203👍, 0💬

Under What Conditions Should You Not Test Get() and Set() Methods?
Under What Conditions Should You Not Test Get() and Set() Methods? The JUnit FAQ provides a good answer to this question: Most of the time, get/set methods just can't break, and if they can't break, then why test them? While it is usually better to test more, there is a definite curve of diminishing...
2008-02-19, 6200👍, 0💬

How To Group Multiple Test Classes into a Suite in JUnit 4.4?
How To Group Multiple Test Classes into a Suite in JUnit 4.4? JUnit 4.4 stops using the "public static Test suite()" method to build a test suite class. It is now provides the org.junit.runners.Suite class and two annotations to help you to build test suite. org.junit.runners.Suite - JUnit 4.4 runne...
2008-01-29, 6199👍, 0💬

What Is a HTML Tag
What is a HTML tag? In HTML, a tag tells the browser what to do. When you write an HTML page, you enter tags for many reasons -- to change the appearance of text, to show a graphic, or to make a link to another page.
2007-03-03, 6198👍, 0💬

What are wait handles ?
.NET INTERVIEW QUESTIONS - What are wait handles ?(What is a mutex object ?) Wait handles sends signals of a thread status from one thread to other thread. There are three kind of wait modes :- * WaitOne. * WaitAny. * WaitAll. When a thread wants to release a Wait handle it can call Set method. You ...
2009-12-22, 6196👍, 0💬

Differences between Simple Variables and Variable Variables
What is the difference between $message and $$message in PHP? $message is a simple variable with a fixed name which is called "message". $$message is a variable variable with a variable name which is stored in another variable called $message. If $message contains "user", $$message is the same as $u...
2007-02-27, 6191👍, 0💬

Differences between Interfaces and Abstract Classes
What's the difference between an interface and an abstract class? An abstract class may contain code in method bodies, which is not allowed in an interface. With abstract classes, you have to inherit your class from it and Java does not allow multiple inheritance. On the other hand, you can implemen...
2007-03-03, 6186👍, 0💬

How to turn on Perl warnings? Why is that important
How to turn on Perl warnings? Why is that important? Perl is very forgiving of strange and sometimes wrong code, which can mean hours spent searching for bugs and weird results. Turning on warnings helps uncover common mistakes and strange places and save a lot of debugging time in the long run. The...
2007-11-19, 6171👍, 0💬

Do You Need to Write a Test Class for Every Class That Need to Be Tested?
Do You Need to Write a Test Class for Every Class That Need to Be Tested? This is a simple question. But the answer shows your organization skills. The technical answer is no. There is no need to write one test class for each every class that need to be tested. One test class can contain many tests ...
2008-02-26, 6157👍, 0💬

Synchronized Methods and Synchronized Statements
What are synchronized methods and synchronized statements? Synchronized methods are methods that are used to control access to a method or an object. A thread only executes a synchronized method after it has acquired the lock for the method's object or class. Synchronized statements are similar to s...
2007-03-03, 6150👍, 0💬

What Is PEAR
What Is PEAR? PEAR is the next revolution in PHP. This repository is bringing higher level programming to PHP. PEAR is a framework and distribution system for reusable PHP components. It eases installation by bringing an automated wizard, and packing the strength and experience of PHP users into a n...
2007-02-27, 6150👍, 0💬

<< < 5 6 7 8 9 10 11 12 13 14 15 > >>   Sort: Date