ITQuestionBank.com
 
Search for  
 
Advanced Search
  Home | Add a Link | Modify a Link | Login | Register | New Listings | Most Popular | Top Ranked | Link to Us | Search | Site Map | Privacy Policy

 Categories

 Editors Picks
  • Download CX-310-015 Free Exam Simulator
  • Download CX-310-014 Free Exam Simulator
  • Download SCEA Free Exam Simulator : 310-051
  • VB NET 2005 Training The NET Framework Architecture Part 1
  • Oracle Applications 11i Technical Training
  • MSAS Step by Step Tutorials
  • Oracle 9i Step by Step Tutorials
  • ASP.NET with C# Training
  • Live DataStage Interview Questions
  • SCJP for Java 2 Platform 1.4 CX-310-035 Free Exam Simulator
  • IT Interview Questions
  • IT Experts Online Journal

  • Home : Java : JSP
    Click "Subscribe" if you want to be notified of new or updated links in this category.Subscribe
    JSP Listings
    Total:  62Displaying: 51 - 60Pages: << 1 2 3 4 5 6 7 >>

    Show Sort By

    Sending e-mail from JSP
    To be able to send e-mail, you need access to an "SMTP server". SMTP stands for "Simple Mail Transfer Protocol". Most of the email on the internet is sent using SMTP servers. If your email address is "you@yourhost.com", then there is a good chance your SMTP server is either "yourhost.com" or something like "mail.yourhost.com" or "smtp.yourhost.com". You need to find out exactly what it is. Your email program should have a "Settings" page which shows you the name of your SMTP server (perhaps shown as "mail server" or "outgoing mail server".)

    Updated: 03/24/2005

    Database access in JSPs
    Database access is very common in JSPs. Most database access these days is done using SQL. Therefore, if you do not know SQL, the first step is to learn SQL. Teaching SQL is outside the scope of this tutorial, but there are many excellent references available on the web.

    Updated: 03/24/2005

    Protecting your website with a login page
    Some sites require that all users log-in using a username and password, before being able to visit any page. This can be done using JSP sessions or servlets, and in fact this was a common technique for a while. But starting with a new release of Servlets specifications (2.2) from Sun, this feature is now very simple to implement.

    Updated: 03/24/2005

    Techniques for form editing
    A tag library such as the one that comes with the Blazix server, may not be available in your environment. How can you allow similar features without using a tag library? It is a little tedious, but it can be done. Basically, you must edit each HTML tag yourself, and put in a default value. The following examples shows how we modify GetName.jsp to provide features similar to blx:getProperty but with manual HTML tag editing:

    Updated: 03/24/2005

    Tag libraries
    JSP 1.1 introduces a method of extending JSP tags, called "tag libraries". These libraries allow addition of tags similar to jsp:include or jsp:forward, but with different prefixes other than jsp: and with additional features. To introduce you to tag libraries, in this tutorial we use the Blazix tag library as an example. This tag library comes bundled with the Blazix server, which you can download free for learning and evaluation. (The material you learn about using tag libraries will work with any other tag libraries also.)

    Updated: 03/24/2005

    Beans and Form processing
    The standard way of handling forms in JSP is to define a "bean". This is not a full Java bean. You just need to define a class that has a field corresponding to each field in the form. The class fields must have "setters" that match the names of the form fields. For instance, let us modify our GetName.html to also collect email address and age

    Updated: 03/24/2005

    JSP Sessions
    On a typical web site, a visitor might visit several pages and perform several interactions. If you are programming the site, it is very helpful to be able to associate some data with each visitor. For this purpose, "session"s can be used in JSP. A session is an object associated with a visitor. Data can be put in the session and retrieved from it, much like a Hashtable. A different set of data is kept for each visitor to the site

    Updated: 03/24/2005

    JSP Tags
    Another important syntax element of JSP are tags. JSP tags do not use characters. The end starts with a / character after the < character. The tag names have an embedded colon character : in them, the part before the colon describes the type of the tag. For instance

    Updated: 03/24/2005

    JSP Declarations
    The JSP you write turns into a class definition. All the scriptlets you write are placed inside a single method of this class. You can also add variable and method declarations to this class. You can then use these variables and methods from your scriptlets and expressions. To add a declaration, you must use the sequences to enclose your declarations, as shown below.

    Updated: 03/24/2005

    JSP Directives
    We have been fully qualifying the java.util.Date in the examples in the previous sections. Perhaps you wondered why we don't just import java.util.*; It is possible to use "import" statements in JSPs, but the syntax is a little different from normal Java. Try the following example

    Updated: 03/24/2005

    JSP Listings
    Total:  62Displaying: 51 - 60Pages: << 1 2 3 4 5 6 7 >>



    Privacy Policy
    14288 Resources Listed in 604 Categories  ~  IT QuestionBank © 2005 -2007