Understanding View configuration

Aidan Mark Humphreys <[email protected]> Thu, 5 Feb 2004 21:11:31 +0100
Newsgroups gmane.comp.web.maverick.general
Message-ID <[email protected]>
Another 2 simple questions (in case anyone feels like answering 
:).

This snippet is taken from the domify friend book example.

	<views>
		<view id="loginRequired" path="loginRequired.jsp">
			<transform path="trimOutside.jsp"/>
		</view>
	</views>

	<command name="changePassword">
			<controller class="...ChangePassword"/>

			<view ref="loginRequired"/>

			<view name="success">
				<transform path="changePassword.xsl"/>
				<transform path="inside.xsl"/>
			</view>
	</command>

How should  one interpret the nameless view reference in  the 
command changePassword? Does it act like a "default" tag in a 
switch statement - ie if the controller returns a value not 
assoicated with a view name (anything but "success" in this 
case), use the referenced view?


2nd question - in this example ...

		<command name="loginSubmit">
			<controller class="...LoginSubmit" />

			<view name="success" type="redirect"/>

			<view name="error" path="loginFailed.jsp">
				<transform path="trimOutside.jsp"/>
			</view>
		</command>

What is the target of the "success" redirect view? Redirect to 
where?

Aidan



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
[INVALID FOOTER]