Dashboard > WebWork > ... > Reference > JSP
  WebWork Log In View a printable version of the current page.  
  JSP
Added by Patrick Lightbody, last edited by Philip Luppens on Sep 18, 2006  (view change) show comment
Labels: 
(None)

JSP support in WebWork is very easy: by default webwork-default.xml configures the Dispatcher Result as the default result (see Result Types). This means any JSP 1.2+ container can work with WebWork immediately.

Getting Started

Because JSP support occurs through the Dispatcher Result, which is the default result type, you don't need to specify the type attribute when configuration xwork.xml:

<action name="test" class="com.acme.TestAction">
    <result name="success">test-success.jsp</result>
</action>

Then in test-success.jsp:

<%@ taglib prefix="ww" uri="/webwork" %>

<html>
<head>
    <title>Hello</title>
</head>
<body>

Hello, <ww:property value="name"/>

</body>
</html>

Where name is a property on your action. That's it!

Tag Support

See the JSP Tags documentation for information on how to use the generic Tags provided by WebWork.

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request - Contact Administrators