# Index.jsp Sample

This topic inludes the source code for the Index.jsp Sample.

## Sample Location

This sample is located in the following directory in your WebLogic Workshop installation:

BEA_HOME/weblogic81/samples/workshop/SamplesApp/WebApp/tagSamples/netui_databinding/message/

## Sample Source Code

`01 <%@ page language="java" contentType="text/html;charset=UTF-8"%> 02 <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%> 03 <%@ taglib uri="netui-tags-html.tld" prefix="netui"%> 04 <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%> 05 <netui:html> 06 <head> 07 <title> 08 index.jsp 09 </title> 10 <link href="../../../resources/css/style.css" type="text/css" rel="stylesheet"/> 11 </head> 12 <body> 13 <jsp:include page="/resources/jsp/header.jsp"/> 14 <h3>Message Tag Sample</h3> 15 <blockquote> 16 <% 17 pageContext.setAttribute("msgSkeleton", new String("Hello {0}. {1} {2}, the current date and time are {3}.")); 18 %> 19 <netui-data:message value="{pageContext.msgSkeleton}" resultId="message"> 20 <netui-data:messageArg value="Mr"/> 21 <netui-data:messageArg value="John"/> 22 <netui-data:messageArg value="Smith"/> 23 <netui-data:messageArg value="{pageFlow.currTime}"/> 24 </netui-data:message> 25 26 <p>The following message was produced out of a message schema: 27 28 <ul><li>"Hello _____. _____ _____, the time and date are _____."</li></ul> 29 30 <p>and four parameters: 31 32 <ul> 33 <li>Mr</li> 34 <li>John</li> 35 <li>Smith</li> 36 <li>[the current date and time]</li> 37 </ul> 38 39 <p>&nbsp; 40 <p><netui:label style="font-size:s;" value="{pageContext.message}"/> 41 </blockquote> 42 <hr> 43 <netui:anchor href="/WebApp/tagSamples/tagSamplesController.jpf">Return to Tag Samples</netui:anchor> 44 </body> 45 </netui:html>`