Custom Tags Sample

The JSP page CustomTags.jsp demonstrates the use of three custom tags.

Concepts Demonstrated by this Sample

Use of a custom tag with no attributes or body text.

Use of a custom tag with an attribute but body text.

Use of a custom tag with an attribute and body text.

Location of Sample Files

In the SamplesApp, the sample is located at:

SamplesApp/WebApp/tagSamples/custom_tags/CustomTags.jsp

On the local file system, the sample is located at:

BEA_HOME\weblogic81\samples\workshop\SamplesApp\WebApp\tagSamples\custom_tags\CustomTags.jsp

 

To Run the Sample

  1. Start WebLogic Server in the Workshop domain.
    • On Microsoft Windows systems, run:

      BEA_HOME/weblogic81/samples/domains/workshop/startWebLogic.cmd
    • On Linux or Solaris systems, run:

      BEA_HOME/weblogic81/samples/domains/workshop/startWebLogic.sh

  2. Launch the JSP page either by opening it in WebLogic Workshop and selecting the Start operation or by entering http://localhost:7001/WebApp/tagSamples/custom_tags/CustomTags.jsp in the address bar of your browser. If WebLogic Server is running in the Workshop domain on this machine, you may click here to run the sample.

 

Related Topics

Getting Started with Page Flows

Tutorial: Page Flow