|
•10 Tips for Killer Website Design
•7 Sure shots ways to improve your website
•Attracting Visitors and Improving Your Search Results
•Chasing the Search Engines Algorithms
•Crash Course in Getting a 1 Google Ranking
•Design Basics
•Design Your Site for Traffic in 2005
•Designing A Website That Sells
•Googles Good Writing Content Filter
•How to Write Effective Web Copy
•How to Write Title Tags for Your Web Pages
•JSP
•JSP Actions
•JSP Directives
•JSP Scripting Elements and Variables
•JavaBeans
•Java Brewing A Tutorial
•Java How to Send Email in Java
•Java Intro to JSP
•Java JSP Browser Detection
•Java JSP Syntax
•Java JSP versus ASP
•Java MySQL Database Connection
•Java Programming Language
•Java Virtual Machine
•Java myths
•Linux Commands
•Make Money Fast With Google Adwords
•Make Money On The Internet What Is Your Niche
•Make Money Quick With Google Adsense
•PHP Redirects
•Ranked 1 at Google for Invisible Entrepreneurs But No Traffic
•Ruby Basic Input Output
•Ruby Classes Objects and Variables
•Ruby Containers Blocks and Iterators
•Ruby and the Web
•SEO One Way Web Links 5 Strategies
•SEO Success Step Two - Attracting Search Engine Attention
•The 10 Best Resources for CSS
•The 3 Best Website Traffic Sources
•The 5 Biggest Mistakes Almost All Web Designers Make
•The Click Fraud Problem
•The Five Ways You Should Be Using Keywords
•The Three Principles Of Image Optimization
•Top 5 Secrets to Making Money with Adsense
•True Paid Inclusion Programs are a Thing of the Past
•Understanding Web Logs And Why it Matters
•Index
•Temp
|
Web Hosting Tips for Webmasters -
Java Server Pages (JSP) Directives"
JSP directives
JSP directives control how the JSP compiler generates the servlet. The following directives are available:
- include – The include directive informs the JSP compiler to include a complete file into the current file. It is as if the contents of the included file were pasted directly into the original file. This functionality is similar to the one provided by the C preprocessor.
<%@ include file="somefile.ext" %>
- page – There are several options to the page directive.
- import results in a java import statement being inserted into the resulting file
- contentType specifies the content that is generated. This should be used if HTML is not used or if the character set is not the default character set.
- errorPage indicates the page that will be shown if an exception occurs while processing the HTTP request.
- isErrorPage if set to true, it indicates that this is the error page.
- isThreadSafe indicates if the resulting servlet is thread safe.
- <%@ page import="java.util.*" %> //example import
- <%@ page contentType="text/html" %> //example contentType
- <%@ page isErrorPage=false %> //example for non error page
- <%@ page isThreadSafe=true %> //example for a thread safe JSP
-
Note: Only the "import" page directive can be used multiple times in the same JSP.
- taglib – The taglib directive indicates that a JSP tag library is to be used. The directive requires that a prefix be specified (much like a namespace in C++) and the URI for the tag library description.
- <%@ taglib prefix="myprefix" uri="taglib/mytag.tld" %>
|