You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shale.apache.org by Torsten Krah <tk...@fachschaft.imn.htwk-leipzig.de> on 2006/10/18 11:12:03 UTC

Clay - HTML/XML/JSP Mix View Navigation Problem

Example:

	<navigation-rule>
		<from-view-id>/jsf/login.html</from-view-id>
		<navigation-case>
			<from-outcome>loginPass</from-outcome>
			<to-view-id>/jsf/admin_user.jsp</to-view-id>
			<redirect />
		</navigation-case>
		<navigation-case>
			<from-outcome>loginFail</from-outcome>
			<to-view-id>/jsf/login.html</to-view-id>
		</navigation-case>
	</navigation-rule>

When loginPass is the outcome the URL doubles "/jsf" and so the view
cannot be found.
Have i have to use html views only? I also got this effect using full
xml views.

URL before:

<host>/context/jsf/login.html

after loginPass outcome:

<host>/context/jsf/jsf/admin_user.jsp

which cannot be found because "one jsf" is added which should not be
there.

If i change the "jsp" to the "html" ( and changing the code in the view
file, because its not jsp ) - it works like exspected.
It seems i cannot mix html, xml and jsp Views - am i right - or should
this be possible?

Hints would be nice, thx.

Torsten