Redirect to error page


<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core" xmlns:xc="http://www.ibm.com/xsp/custom" xmlns:xe="http://www.ibm.com/xsp/coreex">
	<xp:this.data>
		<xp:dominoDocument var="document1" formName="Form" ignoreRequestParams="true" action="newDocument">
			<xp:this.queryNewDocument><![CDATA[#{javascript:if(isAuthorized()) {
	return true;
} else {
	context.redirectToPage("errorPage");
}	}]]></xp:this.queryNewDocument>
		</xp:dominoDocument>
	</xp:this.data>

	<xp:panel id="formpanel">
<!-- Some Form Elements -->
	</xp:panel>
</xp:view>
All code submitted to OpenNTF XSnippets, whether submitted as a "Snippet" or in the body of a Comment, is provided under the Apache License Version 2.0. See Terms of Use for full details.
No comments yetLogin first to comment...