Home Answers Viewqa JSF-Questions How to navigate from one jsf to another in eclipse

 
 


Durgesh
How to navigate from one jsf to another in eclipse
1 Answer(s)      a year and 2 months ago
Posted in : Java Server Faces Questions

Hi there is my jsf code...

<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h"  uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<f:view>
<b>
<h:outputText value="USER DETAILS FORM"> </h:outputText>
</b>
<p>
         <h:messages style="color: blue"/>

</p>
 <h:form id="UserDetail">
 <h:panelGrid  columns="2">
 <h:outputText value="Name :"></h:outputText>
 <h:inputText id="name"  value="#{userBean.name}"
     required="true"
  requiredMessage="Please enter your Name"
  validatorMessage="Please enter more than 3 characters for name">
  <f:validateLength minimum="3"/>
  </h:inputText>


  </h:panelGrid>
  <h:commandButton value="Submit" action="success"></h:commandButton>
  </h:form>

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

Hello guys i have been using the above code for my welcome page which ask for user name and after submitting the form it navigate to the following page :-

<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h"  uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<f:view>
<h3>
<h:outputText value="Welcome"/>
<h:outputText value="#{userBean.name}"></h:outputText> To Our database.
</h3>


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

The above code is working fine in NETBEANS.. but when i run this in eclipse it stays on the first page only even after submitting the form...

I have checked it many time the navigation rules are also defined properly as folows :-

<navigation-rule>
      <from-view-id>/JSF/UserDetail.jsp</from-view-id>
      <navigation-case>
      <from-outcome>success</from-outcome>
      <to-view-id>/JSF/Welcome.jsp</to-view-id> 
      </navigation-case>
    </navigation-rule>

Pls help me finding the solution for this problem.. Thank You

View Answers









Related Pages:
How to navigate from one jsf to another in eclipse
How to navigate from one jsf to another in eclipse  Hi there is my jsf code... <%@ page language="java" contentType="text/html; charset...; <from-view-id>/JSF/UserDetail.jsp</from-view-id> <
Adding Navigation in JSF Application
explains how to navigate from one jsp page to another jsp in JSF application. The page... This file contains one or more navigation cases. You can map action from... Adding Navigation in JSF Application   
JavaScript navigate to page
; In this section, you will learn how to navigate from one page to another... and page.html. Here we are going to navigate from navigatePage.html... JavaScript navigate to page
Navigate database values using up and down key of keyboard
Navigate database values using up and down key of keyboard In this section, you will learn how to navigate database values using up and down keys and displayed the fetched values into another frame. For this purpose,we have created a form
How to forward the control from one jsp to another?
How to forward the control from one jsp to another?  Hi! This is Prasad Jandrajupalli. I have the 3 JSP's, but I want communicate with each... is not communicate with the Third JSP. I want forward the control from first jsp to second
how to pass a string from one class to another
how to pass a string from one class to another  hi all, Good morning... string from one class to another. import java.util.*; class A{ static String... string from one class to another. import java.io.*; class Class1 { public
swings:how to link from one form to another form
swings:how to link from one form to another form  how to link from one form to another form
File copy from one directory to another in java
File copy from one directory to another in java  I am trying to find very good code example for copying a file from one directory to another... from a directory to another directory. How to achieve this? Is there any API
how to copy file from one directory to another in java with examples
how to copy file from one directory to another in java with examples  how to copy file from one directory to another in java with examples? I want... copy from one directory to another in java. Thanks
passing data from one jframe to another
passing data from one jframe to another  I have two JFrame,built by using the GUI Editor netbeans 6.9.i have to pass a data from a Jtextfield in the first Jframe to another JLabel in the other JFrame.Can you please help me,how
how to pass an array from one jsp to another jsp - JSP-Servlet
how to pass an array from one jsp to another jsp  hi friedns, can any One tell me how to send an array from one jsp to another jsp,pls any one send the code for this.also porvid the code how to retrive the arry in another jsp
How to pass variable from one class to another in java
How to pass variable from one class to another in java  How to pass variable from one class to another in java?   Example: public class...; } } //Another class Class2. public class Class2 { public static void main(String
Copy one file into another
Copy one file into another In this section, you will learn how to copy content of one file into another file. We will perform this operation by using...;This string is copied from one file to another\n"); bf.close(); InputStream
how to go from one frame to another frame in swings - Java Beginners
how to go from one frame to another frame in swings  Hi, My task is to go from one frame to another.......... let us think that iam having two... this task in swings or applet......... i have gone through one example of login
how to write function of copy from one to another location in this code
how to write function of copy from one to another location in this code  I need to write a code to copy a file from one location to another using browse button in it. i have written code for the browse button. please help me
JavaScript Navigate Back
; In this section, you will learn how to navigate back to the main page using JavaScript. In this tutorial, we will learn how to navigate back to the page where... JavaScript Navigate Back
how to change password into one jsp to another jsp
how to change password into one jsp to another jsp  i have two jsps in one jsp i give one password and confirm password, in another jsp i want change my password compare with 1st jsp how to write code please give me answer?  
How To Pass data from one GUI to another in java swing
How To Pass data from one GUI to another in java swing  I'm new to java and part of our assignment is to build a GUI and display a result set from data input. I'm stuck at how to get the user's input from JTextFields and combobox
JSF Examples
will find the examples like, how to get JSF, how to install JSF, how to create simple... the versions of JSF, and their releases in detail.   How JSF Fits For Web Applications : This page describes you why one should choose JSF framework
JavaScript navigate method
JavaScript navigate method       In the JavaScript we have navigate() method which can help users to navigate to the various locations. We can make beautiful applications
how to use one form out of multiple form from one jsp to another jsp
how to use one form out of multiple form from one jsp to another jsp  Hi All. please give me your valuable advise for below requirement.. I have... one form from abc.jsp as it is to another .jsp(say def.jsp).Your advise
Moving file or directory from one directory to another
Moving file or directory from one directory to another... directory is moved from one directory to another directory. This program... from one directory to another. In this section an example is given
File copy from one drive to another. - Java Beginners
File copy from one drive to another.  I want to copy a .mp3 file from one drive(let d: drive)to another drive(let e: drive) in my Windows XP. How can I do
problem in sending data from one ip to another ip in JAVA
problem in sending data from one ip to another ip in JAVA  Hi guys . this is naveen kumar...i need a help. i want to connect one ip to another ip... device in JAVA. i know how to ping but don't how to send the msg's to another IP
Copy data from one JTextField to another JTextField
, you will learn how to copy the data from one JTextField into another... Copy data from one JTextField to another JTextField... and then paste into another JTextField. JTextField is used in the swing
Java - Copying one file to another
;    This example illustrates how to copy contents from one... the contents from one specified file to another specified file. copyfile(String... to another specified file from the first one specified file. // For creating a byte
calling one jsp from another jsp - JSP-Servlet
calling one jsp from another jsp  Hi All, In my web application... in two.jsp by using jsp declarative tag. Now from one.jsp file I want to call... start from where we call this two.jsp files method. i.e. in one.jsp file at line
Java - Copying one file to another
how to copy contents from one file to another file. This topic is related... called copyfile which copies the contents from one specified file to another... of one file and write to another specified file from the first one specified
navigating the value of JTextField from one JFrame to another - Swing AWT
navigating the value of JTextField from one JFrame to another  hello I m doing one project where I m retriving the data from databse in JTextField... first record is comming... how can I fetch all the records from database using up
How to copy files from one folder to another based on lastmodified date - Java Beginners
Copy files from one folder to another  How to copy files from one folder to another based on lastmodified date
navigating the value of JTextField from one JFrame to another - Swing AWT
navigating the value of JTextField from one JFrame to another  Hello... is working also.. but only first record is comming... how can I fetch all the records from database using up and down keys of keyboard? And also I wanted
how to move curosr from one text field to another automatically when the first textfield reaches its maximum length
how to move curosr from one text field to another automatically when the first textfield reaches its maximum length  how to move curosr from one text field to another automatically when the first textfield reaches its maximum
calling one jsp from another jsp page
calling one jsp from another jsp page  need coding for calling one jsp from another jsp including the xml file.Its urgent
how to scrape the data from one website another website using html dom parsing in php
how to scrape the data from one website another website using html dom parsing in php  " how to scrape the data from one website another website using html dom parsing in php" i'm trying this one .please provide code for me
how to pass arraylist data from one jsp to another jsp - JSP-Servlet
how to pass arraylist data from one jsp to another jsp  hi to all iam... the following >XXX/ ? is required to send a value from one jsp to another... to receive all employee id's that are retrived from the database in the first jsp
How to write content of one file to another file.
the use of CheckedOutputStream class. The CheckedOutputStream class is from... the associated stream. void write(int b) Method writes one... is : 1836825431 Content of one file successfully written in other file
How to copy files from one folder to another based on lastmodified date - Java Beginners
How to copy files from one folder to another based on lastmodified date  I have to make a simple utility to copy files from a folder to another folder in the same hierarchy, without overwriting the existing.  hiimport
one frame update another frame
one frame update another frame  How do I make a link or form in one frame update another frame
copying data from one table to another
copying data from one table to another  i need to copy data from one table to another table.. i.e the 1st eid of employee table must be copied to the 1st eid in appusers table, 2nd eid of employee to the 2nd eid of appusers
JSF Books
heard about JavaServer? Faces (JSF) at the 2002 Java One conference, we... the purchase. To get an idea of how JSF simplifies development...; Pro JSF and Ajax: Books Description Pro JSF and Ajax shows you how
to bring checked data from one page to another
to bring checked data from one page to another  thanks for your help... there is one jsp page , on it there is a link, on click of which it is opening second... fetching data from the database on second jsp page with checkbox corresponding each
Copying an array to another
Copying an array to another       Java Copy Array Example:In this tutorial, you will learn how to copy data from one array to another. Here, providing you an example with code
Drag and Drop components from one frame to another frame
Drag and Drop components from one frame to another frame... button etc.) from one frame to another frame. In this code we have used...;One frame has five component, user can drag and drop component from one
JSF Navigation By Example
a value from the controller to navigate to an another page. For this you have to make...JSF Navigation By Example      Navigation means connected component and it's events each-another
Eclipse Plunging-Graphics
plugin provides an eclipse-editor for viewing images. You can browse images one by one, or as thumbnails. Use the toolbar to navigate or by single- or double... Eclipse Plunging-Graphics   
JSF Application
is one of the important concepts in JSF. This section provides a simple JSF application, which explains how to implement ?immediate? event handling in JSF. Immediate...JSF Application        
How to write content of one file to another file and calculate checksum for accuracy.
. void read(byte b) Method read one byte of data from...; compute checksum value as data read from associated stream... to another file. And calculate the value of checksum at writing time with the help
JSF Select one menu - Framework
JSF Select one menu  Hi, I am new in Jsf, I use one this is based... of JSF is not showing it show (canā??t display the mainlayer component in the visual Design Editor, Error messages from the component:java.lang.NullPointerException
converting one file format to another
converting one file format to another  Hi ser I need a code to export data from data grid to PDF and XL format plz help me out
how to set the tables one is left and another one is right - JSP-Servlet
how to set the tables one is left and another one is right  Here two tables are combined.i need to set the one table is left another one is right and ineed to gap between the two tables Document document=new Document