Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JSF-Questions jsf navigation rule

Have Programming Question? Ask it here!
 
 
 


srikala
jsf navigation rule
3 Answer(s)      5 years and 10 months ago
Posted in : Java Server Faces Questions



Advertisement
View Answers

October 21, 2008 at 3:25 PM


Hi friend,


Yes faces-config.xml having more then one navigation rules.

Plz give full details and full source code to solve the problem.


For more information on JSF visit to :

http://www.roseindia.net/jsf/

Thanks


October 21, 2008 at 3:46 PM


here is the code:
admin.jsp:
<%@ page contentType="text/html"%>
<%@ taglib uri="/WEB-INF/html_basic.tld" prefix="h" %>
<%@ taglib uri="/WEB-INF/jsf_core.tld" prefix="f" %>

<f:view>
<html>
<head>
<title>Users</title>
<link rel="stylesheet" type="text/css" href="css/styles.css"/>
</head>
<body>

<!-- MAIN Table-->
<table width="100%" cellpadding="0" cellspacing="0" height="100%">
<tr>
<td>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="mainbgbar" width="80%" valign="baseline">

</td>
<td class="connector" width="">
&nbsp;
</td>
<!-- logo rightside -->
<td align="center" valign="middle" width="13%">

<h:graphicImage id="gi" alt="The image could not be found."value="/images/logo.jpg" width="150" height="150" title="This is demo for 'graphicImage' tag" ></h:graphicImage>
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="bgy">
<table width="100%" height="100%" >
<tr>
<td align="right">
&nbsp;
</td>
</tr>
</table>
</td>
</tr>
<tr></tr><tr></tr>

<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>

<tr>

<td>
<h:form>
<h:commandLink id="link1" value="Add Users." action="addusers" /><br></br>
<h:commandLink id="link2" value="AddField Users." action="addfieldusers" /><br></br>
</h:form>
</td>
</tr>

<tr height="90%">
<td width="100%" valign="middle" align="center">


<!-- MAIN FRAME -->
<table width="100%" height="100%" align="center">
<table class="tbl" height="50%" width="25%" border="0" cellspacing="0" cellpadding="10" >

<tr class="mainbgbar">
<td colspan="2" class="title"><b>&nbsp;Users</b></td>
</tr>

<tr>
<td>&nbsp;<h:outputText value="Name:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="Name" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="EmpId:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="EmpId" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="EmailId:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="EmailId" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="MobileNo:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="MobileNo" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="Username:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="username" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="Password: " styleClass="lable"/></td>
<td>&nbsp;<h:inputSecret id="password" value="" /></td>
</tr>
<tr >
<td align="center" colspan="2">

<h:form >
<h:commandButton value="submitt" action="" styleClass="button" />
</h:form>

</td>
</tr>
</table>

<!-- END OF MAIN FRAME -->
</table>

<tr><td class="mainbgbar" colspan="2" height="20" align="center"></td>
</tr>

</table>
<!-- End of MAIN Table-->

</body>
</html>
</f:view>

addusers.jsp:
<%@ page contentType="text/html"%>
<%@ taglib uri="/WEB-INF/html_basic.tld" prefix="h" %>
<%@ taglib uri="/WEB-INF/jsf_core.tld" prefix="f" %>

<f:view>
<html>
<head>
<title>AddUsers</title>

<link rel="stylesheet" href="<%=request.getContextPath()%>/css/styles.css" type="text/css" />

</head>
<body>

<!-- MAIN Table-->
<table width="100%" cellpadding="0" cellspacing="0" height="100%" >
<tr>
<td>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="mainbgbar" width="80%" valign="baseline">

</td>
<td class="connector" width="">
&nbsp;
</td>
<!-- logo rightside -->
<td align="center" valign="middle" width="13%">

<h:graphicImage id="gi" alt="The image could not be found."value="/images/logo.jpg" width="150" height="150" title="This is demo for 'graphicImage' tag" ></h:graphicImage>
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="bgy">
<table width="100%" height="100%">
<tr>
<td align="right">
&nbsp;
</td>
</tr>
</table>
</td>
</tr>
<tr></tr><tr></tr>

<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>


<tr height="90%">
<td width="100%" valign="middle" align="center">


<!-- MAIN FRAME -->
<table width="100%" height="100%" align="center">
<table class="tbl" height="50%" width="25%" border="0" cellspacing="0" cellpadding="10" >

<tr class="mainbgbar">
<td colspan="2" class="title"><b>&nbsp;AddUsers</b></td>
</tr>






<tr>
<td>&nbsp;<h:outputText value="Name:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="name" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="EmpId:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="empId" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="EmailId:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="emailId" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="MobileNo:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="mobileno" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="Username:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="username" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="Password: " styleClass="lable"/></td>
<td>&nbsp;<h:inputSecret id="password" value="" /></td>
</tr>
<tr>
<td align="center" colspan="2">

<h:form>
<h:commandButton value="submitt" action="sayHello" styleClass="button"/>
</h:form>

</td>
</tr>
</table>

<!-- END OF MAIN FRAME -->
</table>
<tr>
<td class="mainbgbar" height="20" align="center">

</td>
</tr>
</table>
<!-- End of MAIN Table-->

</body>
</html>
</f:view>

addfielduser.jsp:

<%@ page contentType="text/html"%>
<%@ taglib uri="/WEB-INF/html_basic.tld" prefix="h" %>
<%@ taglib uri="/WEB-INF/jsf_core.tld" prefix="f" %>

<f:view>
<html>
<head>
<title>AddFieldUsers</title>

<link rel="stylesheet" href="<%=request.getContextPath()%>/css/styles.css" type="text/css" />


</head>
<body>
<h:form>
<!-- MAIN Table-->
<table width="100%" cellpadding="0" cellspacing="0" height="100%">
<tr>
<td>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="mainbgbar" width="80%" valign="baseline">

</td>
<td class="connector" width="">
&nbsp;
</td>
<!-- logo rightside -->
<td align="center" valign="middle" width="13%">

<h:graphicImage id="gi" alt="The image could not be found."value="/images/logo.jpg" width="150" height="150" title="This is demo for 'graphicImage' tag" ></h:graphicImage>
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="bgy">
<table width="100%" height="100%">
<tr>
<td align="right">
&nbsp;
</td>
</tr>
</table>
</td>
</tr>
<tr></tr><tr></tr>

<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>


<tr height="90%">
<td width="100%" valign="middle" align="center">


<!-- MAIN FRAME -->
<table width="100%" height="100%" align="center">
<table class="tbl" height="50%" width="25%" border="0" cellspacing="0" cellpadding="10" >

<tr class="mainbgbar">
<td colspan="2" class="title"><b>&nbsp;AddFieldUsers</b></td>
</tr>

<tr>
<td>&nbsp;<h:outputLabel for ="name" value="Name:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="name" value="" /></td>
</tr>

<tr>
<td>&nbsp;<h:outputLabel for ="mobileno" value="MobileNo:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="mobileno" value="" /></td>
</tr>

<tr>
<td align="center" colspan="2">

<h:form>
<h:commandButton value="submitt" action="sayHello" styleClass="button"/>
</h:form>

</td>
</tr>
</table>

<!-- END OF MAIN FRAME -->
</table>
<tr>
<td class="mainbgbar" height="20" align="center">

</td>
</tr>
</table>
<!-- End of MAIN Table-->
</h:form>
</body>
</html>
</f:view>
Hello.jsp:

<%@ page contentType="text/html"%>
<%@ taglib uri="/WEB-INF/html_basic.tld" prefix="h" %>
<%@ taglib uri="/WEB-INF/jsf_core.tld" prefix="f" %>


<f:view>
<html>
<head><title>Hello World!</title></head>
<body>
<h:form>
<h3>Hello,<h:outputText value="#{SimpleLogin.name}" /></h3>
<h:commandLink id="Cancel"action="login"immediate="true">
<h:outputText value="Cancel"/>
</h:commandLink>
</h:form>
</body>
</html>
</f:view>


faces-config.xml:

<?xml version="1.0"?>
<faces-config>
<managed-bean>
<managed-bean-name>StoreNameBean</managed-bean-name>
<managed-bean-class>PersonBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/pages/admin.jsp</from-view-id>
<navigation-case>
<from-outcome>addusers</from-outcome>
<to-view-id>/pages/addusers.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>addfieldusers</from-outcome>
<to-view-id>/pages/addfieldusers.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/pages/addusers.jsp</from-view-id>
<navigation-case>
<from-outcome>sayHello</from-outcome>
<to-view-id>/pages/Hello.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/pages/addFieldusers.jsp</from-view-id>
<navigation-case>
<from-outcome>sayHello</from-outcome>
<to-view-id>/pages/Hello.jsp</to-view-id>
</navigation-case>

</navigation-rule>
</faces-config>

PersonBean.java

public class PersonBean {
String name;
String empid;
String emailId;
String mobileno;
String username;
String password;
public String getEmailId() {
return emailId;
}
public void setEmailId(String emailId) {
this.emailId = emailId;
}
public String getEmpid() {
return empid;
}
public void setEmpid(String empid) {
this.empid = empid;
}
public String getMobileno() {
return mobileno;
}
public void setMobileno(String mobileno) {
this.mobileno = mobileno;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}

}
Navigation starts from admin.jsp,then it goes to addusers.jsp(if click addusers link) otherwise it goes to addfieldusers.jsp(if click addfieldusers link).Upto here it is working perfectly but the proble is after submitting the form it is not going to hello.jsp.it displaying the samw page.
give the solution i need urgently.
Thanks in advance.















October 21, 2008 at 3:47 PM


here is the code:
admin.jsp:
<%@ page contentType="text/html"%>
<%@ taglib uri="/WEB-INF/html_basic.tld" prefix="h" %>
<%@ taglib uri="/WEB-INF/jsf_core.tld" prefix="f" %>

<f:view>
<html>
<head>
<title>Users</title>
<link rel="stylesheet" type="text/css" href="css/styles.css"/>
</head>
<body>

<!-- MAIN Table-->
<table width="100%" cellpadding="0" cellspacing="0" height="100%">
<tr>
<td>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="mainbgbar" width="80%" valign="baseline">

</td>
<td class="connector" width="">
&nbsp;
</td>
<!-- logo rightside -->
<td align="center" valign="middle" width="13%">

<h:graphicImage id="gi" alt="The image could not be found."value="/images/logo.jpg" width="150" height="150" title="This is demo for 'graphicImage' tag" ></h:graphicImage>
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="bgy">
<table width="100%" height="100%" >
<tr>
<td align="right">
&nbsp;
</td>
</tr>
</table>
</td>
</tr>
<tr></tr><tr></tr>

<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>

<tr>

<td>
<h:form>
<h:commandLink id="link1" value="Add Users." action="addusers" /><br></br>
<h:commandLink id="link2" value="AddField Users." action="addfieldusers" /><br></br>
</h:form>
</td>
</tr>

<tr height="90%">
<td width="100%" valign="middle" align="center">


<!-- MAIN FRAME -->
<table width="100%" height="100%" align="center">
<table class="tbl" height="50%" width="25%" border="0" cellspacing="0" cellpadding="10" >

<tr class="mainbgbar">
<td colspan="2" class="title"><b>&nbsp;Users</b></td>
</tr>

<tr>
<td>&nbsp;<h:outputText value="Name:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="Name" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="EmpId:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="EmpId" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="EmailId:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="EmailId" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="MobileNo:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="MobileNo" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="Username:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="username" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="Password: " styleClass="lable"/></td>
<td>&nbsp;<h:inputSecret id="password" value="" /></td>
</tr>
<tr >
<td align="center" colspan="2">

<h:form >
<h:commandButton value="submitt" action="" styleClass="button" />
</h:form>

</td>
</tr>
</table>

<!-- END OF MAIN FRAME -->
</table>

<tr><td class="mainbgbar" colspan="2" height="20" align="center"></td>
</tr>

</table>
<!-- End of MAIN Table-->

</body>
</html>
</f:view>

addusers.jsp:
<%@ page contentType="text/html"%>
<%@ taglib uri="/WEB-INF/html_basic.tld" prefix="h" %>
<%@ taglib uri="/WEB-INF/jsf_core.tld" prefix="f" %>

<f:view>
<html>
<head>
<title>AddUsers</title>

<link rel="stylesheet" href="<%=request.getContextPath()%>/css/styles.css" type="text/css" />

</head>
<body>

<!-- MAIN Table-->
<table width="100%" cellpadding="0" cellspacing="0" height="100%" >
<tr>
<td>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="mainbgbar" width="80%" valign="baseline">

</td>
<td class="connector" width="">
&nbsp;
</td>
<!-- logo rightside -->
<td align="center" valign="middle" width="13%">

<h:graphicImage id="gi" alt="The image could not be found."value="/images/logo.jpg" width="150" height="150" title="This is demo for 'graphicImage' tag" ></h:graphicImage>
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="bgy">
<table width="100%" height="100%">
<tr>
<td align="right">
&nbsp;
</td>
</tr>
</table>
</td>
</tr>
<tr></tr><tr></tr>

<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>


<tr height="90%">
<td width="100%" valign="middle" align="center">


<!-- MAIN FRAME -->
<table width="100%" height="100%" align="center">
<table class="tbl" height="50%" width="25%" border="0" cellspacing="0" cellpadding="10" >

<tr class="mainbgbar">
<td colspan="2" class="title"><b>&nbsp;AddUsers</b></td>
</tr>






<tr>
<td>&nbsp;<h:outputText value="Name:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="name" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="EmpId:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="empId" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="EmailId:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="emailId" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="MobileNo:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="mobileno" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="Username:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="username" value="" /></td>
</tr>
<tr>
<td>&nbsp;<h:outputText value="Password: " styleClass="lable"/></td>
<td>&nbsp;<h:inputSecret id="password" value="" /></td>
</tr>
<tr>
<td align="center" colspan="2">

<h:form>
<h:commandButton value="submitt" action="sayHello" styleClass="button"/>
</h:form>

</td>
</tr>
</table>

<!-- END OF MAIN FRAME -->
</table>
<tr>
<td class="mainbgbar" height="20" align="center">

</td>
</tr>
</table>
<!-- End of MAIN Table-->

</body>
</html>
</f:view>

addfielduser.jsp:

<%@ page contentType="text/html"%>
<%@ taglib uri="/WEB-INF/html_basic.tld" prefix="h" %>
<%@ taglib uri="/WEB-INF/jsf_core.tld" prefix="f" %>

<f:view>
<html>
<head>
<title>AddFieldUsers</title>

<link rel="stylesheet" href="<%=request.getContextPath()%>/css/styles.css" type="text/css" />


</head>
<body>
<h:form>
<!-- MAIN Table-->
<table width="100%" cellpadding="0" cellspacing="0" height="100%">
<tr>
<td>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="mainbgbar" width="80%" valign="baseline">

</td>
<td class="connector" width="">
&nbsp;
</td>
<!-- logo rightside -->
<td align="center" valign="middle" width="13%">

<h:graphicImage id="gi" alt="The image could not be found."value="/images/logo.jpg" width="150" height="150" title="This is demo for 'graphicImage' tag" ></h:graphicImage>
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="bgy">
<table width="100%" height="100%">
<tr>
<td align="right">
&nbsp;
</td>
</tr>
</table>
</td>
</tr>
<tr></tr><tr></tr>

<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>


<tr height="90%">
<td width="100%" valign="middle" align="center">


<!-- MAIN FRAME -->
<table width="100%" height="100%" align="center">
<table class="tbl" height="50%" width="25%" border="0" cellspacing="0" cellpadding="10" >

<tr class="mainbgbar">
<td colspan="2" class="title"><b>&nbsp;AddFieldUsers</b></td>
</tr>

<tr>
<td>&nbsp;<h:outputLabel for ="name" value="Name:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="name" value="" /></td>
</tr>

<tr>
<td>&nbsp;<h:outputLabel for ="mobileno" value="MobileNo:" styleClass="lable"/></td>
<td>&nbsp;<h:inputText id="mobileno" value="" /></td>
</tr>

<tr>
<td align="center" colspan="2">

<h:form>
<h:commandButton value="submitt" action="sayHello" styleClass="button"/>
</h:form>

</td>
</tr>
</table>

<!-- END OF MAIN FRAME -->
</table>
<tr>
<td class="mainbgbar" height="20" align="center">

</td>
</tr>
</table>
<!-- End of MAIN Table-->
</h:form>
</body>
</html>
</f:view>
Hello.jsp:

<%@ page contentType="text/html"%>
<%@ taglib uri="/WEB-INF/html_basic.tld" prefix="h" %>
<%@ taglib uri="/WEB-INF/jsf_core.tld" prefix="f" %>


<f:view>
<html>
<head><title>Hello World!</title></head>
<body>
<h:form>
<h3>Hello,<h:outputText value="#{SimpleLogin.name}" /></h3>
<h:commandLink id="Cancel"action="login"immediate="true">
<h:outputText value="Cancel"/>
</h:commandLink>
</h:form>
</body>
</html>
</f:view>


faces-config.xml:

<?xml version="1.0"?>
<faces-config>
<managed-bean>
<managed-bean-name>StoreNameBean</managed-bean-name>
<managed-bean-class>PersonBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/pages/admin.jsp</from-view-id>
<navigation-case>
<from-outcome>addusers</from-outcome>
<to-view-id>/pages/addusers.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>addfieldusers</from-outcome>
<to-view-id>/pages/addfieldusers.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/pages/addusers.jsp</from-view-id>
<navigation-case>
<from-outcome>sayHello</from-outcome>
<to-view-id>/pages/Hello.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/pages/addFieldusers.jsp</from-view-id>
<navigation-case>
<from-outcome>sayHello</from-outcome>
<to-view-id>/pages/Hello.jsp</to-view-id>
</navigation-case>

</navigation-rule>
</faces-config>

PersonBean.java

public class PersonBean {
String name;
String empid;
String emailId;
String mobileno;
String username;
String password;
public String getEmailId() {
return emailId;
}
public void setEmailId(String emailId) {
this.emailId = emailId;
}
public String getEmpid() {
return empid;
}
public void setEmpid(String empid) {
this.empid = empid;
}
public String getMobileno() {
return mobileno;
}
public void setMobileno(String mobileno) {
this.mobileno = mobileno;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}

}
Navigation starts from admin.jsp,then it goes to addusers.jsp(if click addusers link) otherwise it goes to addfieldusers.jsp(if click addfieldusers link).Upto here it is working perfectly but the proble is after submitting the form it is not going to hello.jsp.it displaying the samw page.
give the solution i need urgently.
Thanks in advance.















Related Tutorials/Questions & Answers:
jsf navigation rule - Java Server Faces Questions
jsf navigation rule  Hi sir, here is the code: give me solution...) { this.username = username; } } Navigation starts from admin.jsp,then it goes..." go to "Hello.jsp" For more information on JSF visit to : http
jsf navigation rule - Java Server Faces Questions
jsf navigation rule  hi, i have one jsf page admin.jsp in that 2 commandlinks are there,they are addusers,addfieldusers for this navigation in faces... given.This is my application.Upto addusers i understand the navigation,then how
Advertisements
JSF Navigation By Example
JSF Navigation By Example     .... This section illustrates you about the JSF navigation by providing the example... for the following files these have been used in the JSF Navigation example
JSF Global Navigation Example
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix...;Navigation Page</title></head> <body> <h1>
jsf command link navigation case - Java Server Faces Questions
jsf command link navigation case  Hi, in my jsf page i have 2 commandlink tags,then how to write navigation case in faces config.xml tell me as soon... in JSF : "navigation case in faces-config.xml
Adding Navigation in JSF Application
Adding Navigation in JSF Application   ... navigation in the JSF framework is controlled by the faces-config.xml.... and choose JavaServer Faces > Add Navigation Rule. Type /login.jsp in the Rule from
Declare the Navigation Rules
Declare the Navigation Rules  How to declare the Navigation Rules for JSF
Horizontal Rule Attribute in HTML
Horizontal Rule Attribute in HTML        We already know with Horizontal Rule in HTML page. The Horizontal Rule attribute is same as horizontal rule, but only
ILOG Business Rule Studio
ILOG Business Rule Studio       ILOG JRules Rule Studio is an Eclipse-based development environment for the development of rule applications. It allows integrated co
JSF
JSF  What is JSF
Flex Rule Control
Rule in Flex:- What is Rule in flex?. The answer is that if user want to create a line between two controls by using Rule control in flex. It is two types... HRule by using <mx:HRule>tag. You can also set the property for these Rule
JSF Static Navigation Example
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix...;Navigation Page</title></head> <body> <h1>
JSF SESSION - Java Server Faces Questions
navigation rule and used backing bean.can anybody tell me whats the problem...JSF SESSION  i am facing problem to store and retrive textbox values in session variable in jsf, i want to store textbox value in bean as well
Horizontal Rule in HTML
Horizontal Rule in HTML       A horizontal Rule in HTML is used to separate two lines or two paragraph between any two objects in HTML.To apply horizontal rule, the <hr>
JSF
JSF  In what way JSF makes the difference between Applets?? After reading this article I understood instead of using Request and response, we... and embed that into applets also rite.. Do u mean JSF also does the same internally
pull-down navigation menus
pull-down navigation menus  How can I use forms for pull-down navigation menus
UINavigationController hide navigation bar
UINavigationController hide navigation bar  HI, How to hide the navigation bar of UINavigationController? I have to hide navigation bar... code for hiding UINavigationController's navigation bar
Cramers rule for solving equations using java
Cramers rule for solving equations using java  My code: import java.util.Scanner.*; import java.util.*; public class cramersrule { double A[][]; double m[][]; int N; double B[]; public void input() { Scanner
navigation system in j2me
navigation system in j2me  how to load map image for offline navigation system?plz send the source code in j2me
navigation item back button
navigation item back button  I wants to add a navigationBar on the top of my UIWebView also a navigation item "back button". can anyone please explain how the back and refresh button works
custom navigation bar in iphone
custom navigation bar in iphone  How can i create a custom navigation bar in iPhone application? I wanted to add UIBarButton items as well as Search bar on the UINavigation controller ... please tell me if i need to create
JSF Training
Register managed bean in configuration file Define a navigation rule... JSF Training     JSF... on the client. JSF technology simplifies the programming and offers lots of reusable
JSF Forms - Developing form based application
; </managed-bean>   Writing the navigation rule Open the faces-config.xml and add the following code to define the navigation rule...JSF Forms - Developing form based application   
Action attribute in Jsf framework - Development process
2) navigation-rule...Action attribute in Jsf framework  There will be one welcome.jsp... on to details.jsp for this the outcome of the navigation case should be equal
Navigation of a web document
Navigation of a web document       Navigation of the web and of a web document are two entirely... or more web documents and other elements too. Navigation of Documents
JSF architecture
JSF architecture  What is JSF architecture
Navigation Frame in HTML
Navigation Frame in HTML       The given Tutorial helps you to illustrate Navigation Frame in HTML. In this Tutorial we help you to understand how to make Navigation
Roseindia JSF Tutorial
JSF Navigation Example JSF Static Navigation Example JSF Global...Roseindia provides you an extensive range of tutorials on JSF with complete source code available for the learners at single place. Roseindia JSF Tutorials
jsf attribute
jsf attribute  What is the different between value and binding attribute of jsf
JSF Tutorial
JSF Tutorial  plz provide the jsf complete tutorial  Hi, We have lot's of JSF tutorials. Please read it at [http://roseindia.net/jsf/][1] Thanks [1]: http://roseindia.net/jsf/  The link is http
Advantages of JSF
Advantages of JSF  What are the advantages of JSF
Implementations of JSF
Implementations of JSF  What are the available implementations of JSF
How to make a navigation bar
How to make a navigation bar This is the navigation design... formatting to write text in the navigation shape. Use same steps to make another navigation bar as here
Simple JSF Hello Application
bean Register managed bean in configuration file Define a navigation rule... PersonBean in roseindia package. Defining navigation rule : Now we... button then which page will be displayed is determined by the navigation rule
JSF framework
JSF framework  hi Can I use Jdeveloper to learn JSF framework? thanks Sangeetha
JSF Tutorial
JSF Tutorial  I am novice to JSF Programming. And want to learn the Java Server Faces (JSF) technology online. So, could you please list down few helpful JSF Tutorials. Also, which is the latest version of Java Server Faces (JSF
jsf session
jsf session  How to maintain session in jsf login application?   Please visit the following links: http://www.roseindia.net/jsf/richfaces/creating-managed-bean.shtml http://www.roseindia.net/jsf/RememberMeLogin.shtml
jsf session
jsf session  How to maintain session in jsf login application?   Please visit the following links: http://www.roseindia.net/jsf/richfaces/creating-managed-bean.shtml http://www.roseindia.net/jsf/RememberMeLogin.shtml
JSF Tutorial For Beginners
JSF Tutorial For Beginners In this section you will learn about the JSF framework. This section describes all the aspects of JSF in such a way that a user who wants to start reading JSF and they wants to make their carrier in JSF
JSF code
need jsf code that will populate combo box values from the database  Hi, i'm new on JSf,I need jsf code that will populate combo box values from the database when the form runs
GPS in Air navigation
GPS in Air navigation       Global Positioning System or GPS is now the principal navigation system... as the aviation industry is concerned GPS is used for both visual navigation
JSF Related
JSF Related  In what way JSF makes the difference between Applets?? After reading this article I understood instead of using Request and response, we... and embed that into applets also rite.. Do u mean JSF also does the same
Java Server Faces (JSF) Tutorials
, Navigation, Event handling, Expession language, Messageswork flow of JSF...JSF Tutorials Java Server Faces (JSF) is a web application based on Java... application development through integration of web-based user interfaces. JSF
JSF - Framework
JSF  Can any one please provide me with code to create widget in JSF using - IBM JSF Widget Library (JWL). Thank you for your Help
JSF+Filter
JSF+Filter  What is the meaning of the tags: avoid-urls for filter configurations in web.xml.
How to provide navigation in quiz application using jsp?
How to provide navigation in quiz application using jsp?  hi everyone. i am using jsp with mysql connectivity. i have to retrieve questions from db one at a time. on clicking the next it should go the next question
JSF - Framework
information : http://www.roseindia.net/jsf/SimpleHelloByEnteringName.shtml http://www.roseindia.net/jsf/richfaces/creating-managed-bean.shtml Thanks
jsf question
jsf question  what the jsf really is and how it come up in existence... FACES'.JSF 1.0 was released in March, 2004 & a maintenance release 1.1 in June... oriented and event driven framework for web applications. JSF eases the development
Jsf biggener
Jsf biggener  hi friends, am new to jsf,i got an exception while running my application.am using netbeans ide to run my application,below...: JSF Tutorials JSF-NetBeans Tutorials Thanks
JSF Tutorials: Easy steps to learn JSF
, Converters, Navigation, Event handling, Expession language, Messageswork flow of JSF...JSF Tutorials: Easy steps to learn JSF JavaServer Faces or JSF is a web... interfaces for web applications. Moreover, JSF simplifies the web application
 

 

 

DMCA.com