<< < 162 163 164 165 166 167 168 169 170 171 172 > >>   Sort: Rank

init() vs. Constructor
Can we use the constructor, instead of init(), to initialize servlet? Yes , of course you can use the constructor instead of init(). There's nothing to stop you. But you shouldn't. The original reason for init() was that ancient versions of Java couldn't dynamically invoke constructors with argument...
2007-04-03, 6686👍, 0💬

Is JSP Technology Extensible
Is JSP technology extensible? YES. JSP technology is extensible through the development of custom actions, or tags, which are encapsulated in tag libraries.
2007-04-03, 4842👍, 0💬

Using JSP Pages to Create Web-based Applications
Why are JSP pages the preferred API for creating a web-based client program? Because no plug-ins or security policy files are needed on the client systems(applet does). Also, JSP pages enable cleaner and more module application design because they provide a way to separate applications programming f...
2007-04-03, 4829👍, 0💬

JSP Scripting Elements
How many JSP scripting elements and what are they? There are three scripting language elements: declarations scriptlets expressions
2007-04-03, 4896👍, 0💬

Implicit Objects in JSP Pages
What are the implicit objects in JSP pages? Implicit objects are objects that are created by the web container and contain information related to a particular request, page, or application. They are: request response pageContext session application out config page exception
2007-04-03, 4539👍, 0💬

What Is JSP Page
What is JSP page? A JSP page is a text-based document that contains two types of text: static template data, which can be expressed in any text-based format such as HTML, SVG, WML, and XML, and JSP elements, which construct dynamic content.
2007-04-03, 4816👍, 0💬

What Is JSP Technology
What is JSP technology? Java Server Page is a standard Java extension that is defined on top of the servlet Extensions. The goal of JSP is the simplified creation and management of dynamic Web pages. JSPs are secure, platform-independent, and best of all, make use of Java as a server-side scripting ...
2007-04-03, 5143👍, 0💬

Entering Comments in JSP Pages
What are the two kinds of comments in JSP and what's the difference between them? &lt;%-- JSP Comment --%&gt; &lt;!-- HTML Comment --&gt; HTML comments are visible on the client side. But JSP comments are not visible on the client side.
2007-04-03, 7612👍, 0💬

JSP Tags vs. JavaBeans
What is difference between custom JSP tags and JavaBeans? Custom JSP tag is a tag you defined. You define how a tag, its attributes and its body are interpreted, and then group your tags into collections called tag libraries that can be used in any number of JSP files. To use custom JSP tags, you ne...
2007-04-03, 7425👍, 0💬

What is JSP
What is a JSP and what is it used for? Java Server Pages (JSP) is a platform independent presentation layer technology that comes with SUN's J2EE platform. JSPs are normal HTML pages with Java code pieces embedded in them. JSP pages are saved to *.jsp files. A JSP compiler is used in the background ...
2007-04-03, 5249👍, 0💬

Show HTML Source Code without Being Interpreted by Browsers
How can I show HTML examples without them being interpreted as part of my document? Within the HTML example, first replace the "&amp;" character with "&amp;amp;" everywhere it occurs. Then replace the "&amp;lt;" character with "&lt;" and the "&amp;gt;" character with "&gt;" i...
2007-03-03, 7620👍, 0💬

Two Sets of Links with Different Colors
How can I have two sets of links with different colors? You can suggest this presentation in a style sheet. First, specify colors for normal links, like this: a:link {color: blue; background: white} a:visited {color: purple; background: white} a:active {color: red; background: white} Next, identify ...
2007-03-03, 5809👍, 0💬

Creating Links to Send Emails
How do I create a link that sends me email? Use a mailto link, for example: Send me email at: &lt;A HREF="mailto:me@fyicenter.com" >me@fyicenter.com&lt;/A>.
2007-03-03, 5839👍, 0💬

Extra White Spaces before or after Tables
Why is there extra white space before or after tables? This is often caused by invalid HTML syntax. Specifically, it is often caused by loose content within the table (i.e., content that is not inside a TD or TH element). There is no standard way to handle loose content within a table. Some browsers...
2007-03-03, 6288👍, 0💬

Can I use percentage values for the WIDTH attributes of TD tags?
How can I avoid using the whole URL? Yes. It should be noted that Netscape and Microsoft's browsers interpret percentage values for &lt;TD WIDTH=...> differently. However, their interpretations (and those of other table-aware browsers) happen to match when combined with &lt;TABLE WIDTH="100%...
2007-03-03, 5646👍, 0💬

URL with or whithout Domain Names
How can I avoid using the whole URL? The URL structure defines a hierarchy (or relationship) that is similar to the hierarchy of subdirectories (or folders) in the filesystems used by most computer operating systems. The segments of a URL are separated by slash characters ("/"). When navigating the ...
2007-03-03, 5539👍, 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, 5377👍, 0💬

Two or More Actions in the Same Form
Can I have two or more actions in the same form? No. A form must have exactly one action. However, the server-side (e.g., CGI) program that processes your form submissions can perform any number of tasks (e.g., updating a database, sending email, logging a transaction) in response to a single form s...
2007-03-03, 5463👍, 0💬

Eliminating the Extra White Space after Forms
How can I eliminate the extra space after a form? HTML has no mechanism to control this. However, with CSS, you can set the margin-bottom of the form to 0. For example: &lt;form style="margin-bottom:0;" action=...> ... &lt;/form>
2007-03-03, 5637👍, 0💬

Set UI Focus on the First Field of a Form
How do I set the focus to the first form field? You cannot do this with HTML. However, you can include a JavaScript after the form that sets the focus to the appropriate field, like this: &lt;input type="text" id="myinput" name="myinput" ...> &lt;/form> &lt;script type="text/javascript">...
2007-03-03, 5659👍, 0💬

Submitting Forms by Hitting ENTER
How do I make a form so it can be submitted by hitting ENTER? You need add JavaScript code to the input fields. When you hit the Enter key, the JavaScript code will be called to submit the form for you.
2007-03-03, 5710👍, 0💬

Memorizing HTML Tags
Do I have to memorize a bunch of HTML tags? Yes. Most programs that help you write HTML code already know most tags, and create them when you press a button. But you must understand what a tag is, and how it works. That way you can correct errors in your page more easily.
2007-03-03, 5627👍, 0💬

HTML Error Checking
How can I check for HTML errors? HTML validators check HTML documents against a formal definition of HTML syntax and then output a list of errors. Validation is important to give the best chance of correctness on unknown browsers (both existing browsers that you haven't seen and future browsers that...
2007-03-03, 7172👍, 0💬

FORM - How to Use IT
How do I use forms? The basic syntax for a form is: &lt;FORM ACTION="[URL]">...&lt;/FOR M>When the form is submitted, the form data is sent to the URL specified in the ACTION attribute. This URL should refer to a server-side (e.g., CGI) program that will process the form data. The form itsel...
2007-03-03, 6614👍, 0💬

<< < 162 163 164 165 166 167 168 169 170 171 172 > >>   Sort: Rank