Pit: JSF pages Jump

<H: CommandLink>: page jump can be achieved, such as this:

<h:body>
	<h:outputLabel value="注册成功,请登陆"></h:outputLabel>
	<h:form>
	<h:commandLink value="点击此处" action="login"></h:commandLink>
	</h:form>
	
</h:body>

This form because there is no real information, and in fact can not tell the difference between a direct jump.

However, if in the presence of a form, even if the action is not in a real way, just a xhtml file, it will be submitted for the form (in fact, think carefully and very reasonable, but just before the indiscriminate use of stretch), will fill in the data converter and validator of calls.

Less direct links to jump what time?

	<h:outputLink value="../User/UserLogin.xhtml">
				<h:outputText value="login"></h:outputText>
	</h:outputLink>

This uses a similar href way to reach the page with the layer folder (User) jump, of course, the different layers of the page certainly can.

Keywords: JSF achieve unconditional jump, JSF page jump to achieve the same name / folder under different name

Published 32 original articles · won praise 5 · Views 4654

Guess you like

Origin blog.csdn.net/qq_38941327/article/details/100547725
jsf