A method and system are provided for defining a Web application including
a graphical user interface and a functional component. A custom tag
library is accessed, wherein the custom tag library includes one or more
tags facilitating the use of XPath in JavaServer Pages (JSPs). A JSP
representing the graphical user interface is defined. One or more tags is
included in the JSP definition to enable interaction between the user
interface and the functional component.