How to get another jsp by clicking a h:commandLink in jsf page

Hi,
I am new to JSF. pls send sample code me how to get another jsp by clicking a commandLink in jsf.
SUB: TO go to the page "report7.jsp"
-->By getting help from samples i wrote for above in 2 ways.
1)
<td><h:commandLink id="RO0007" action="r7" >Sharing of Information from Foreign FIU</h:commandLink></td>
and in <reports-config>
<navigation-case>
<from-outcome>r7</from-outcome>
<to-view-id>report7.jsp</to-view-id>
</navigation-case>
2) Sending request through bean method
<td><h:commandLink id="RO0007" action="#{RBean.report7()}" >Sharing of Information from Foreign FIU</h:commandLink></td>
in RBean the method form is
public String report7(){          
     return "r7";
and in <reports-config>
<navigation-case>
<from-outcome>r7</from-outcome>
<to-view-id>report7.jsp</to-view-id>
</navigation-case>
Some problem in both i think as it is not going to next page. i need to go to th next page by calling Bean Method.
please get me out of this problem. It is very urgent. Thank you.
**************************************************************

What error is it throwing? If it is throwing a Page not found, then maybe you should try mapping to "report7.faces" instead of "report7.jsp"
Can you post your faces-config please

Similar Messages

  • How to get the jsp page name in jsp?

    how to get the jsp page name in jsp? how the jsp get the jsp page name dynamic.
    thanks in advance.

    Try request.getServletPath()

  • I deleted my uninstaller by accident how do get another one so that I can uninstall After Effects from my hard drive

    I deleted my uninstaller by accident how do get another one so that I can uninstall After Effects from my hard drive

    Why did you do that? Certainly not standard procedure. Fortunately, there is a fix: Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6

  • When recording voiceovers, I click the stop recording button at the end, but I can't figure out how to get rid of the "click" sound before I send off the recording!

    When recording voiceovers, I click the stop recording button at the end, but I can't figure out how to get rid of the "click" sound before I send off the recording!

    njordan wrote:
    I can't figure out how to get rid of the "click" sound before I send off the recording!
    drag the BottomRight edge of the region to the left, past the unwanted sound

  • How to get fresh jsp 'page' rather than from cache?

    Hello
    I am using about 5 jsp pages. some of the jsp call other JSPs. When a jsp calls another jsp (by button clicking), the target jsp opens but it does not shown the fresh contents. I have to make it fresh by clicking the fresh botton of IE explorer. How can I get fresh jsp when it is called from another jsp? Will be grateful for any help.
    I am using IE5 and tomcat4.0

    You need to tell IE not to cache your pages. For IE 5 something like this should work:
    <HTML>
    <HEAD>
    <TITLE>---</TITLE>
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Expires" CONTENT="-1">
    </HEAD>
    <BODY>
    </BODY>
    <HEAD>
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Expires" CONTENT="-1">
    </HEAD>
    </HTML>

  • How to Link another JSP Page in the same portal component

    Hi Guys,
      I am a new guy to SAP, currently, I want to add href link to another JSP in the same component, so I used <a href="<%=webpath%>/jsp/AboutPage.jsp">, but obviously, the link can not display target page due to privilege restriction, does anyone know how to resolve this problem? thanks very much!
      Best Regards
      James

    Thanks srinivas,
       Sorry for late response, too busy yesterday.
       Currently, I want to create a URL link in the page which links another JSP page in the same portal component, but the problem is this JSP page is under PORTAL-INF folder, so due to privilege problem, I can not create the link like the following:
    <a href="jsp/test.jsp">Link</a>
       I konw if I move test.jsp out of folder PORTAL-INF, the above way should work, but then, I found the JSP page can not access componentRequest and get resource bundle object.
      Am I clear, please let me know, thanks!
    Regards.
    James

  • How to get current rowindex of clicked object in cr2008 preview control

    hi
    i want to get selected raw data when user click on crystal report 2008 preview control.
    i can achieve using following code for particular row no.
    Dim repReport as new ReportDocument
    repReport.Rows(RowIndex).Item(ColumnIndex)
    how to get current rowindex ? 
    Thanks
    Sanjiv Sharma

    Only way I can think of is to use the rowset controller from the InProc RAS SDK. Here is a snippet of a sample code on how to:
    //Load the report
    if (clientDoc != null) {
    //create metadata structure
    RowsetMetaData rowSetMetaData = new RowsetMetaData();  rowSetMetaData.setDataFields
    (clientDoc.getDataDefinition().getResultFields());
           Fields fields = rowSetMetaData.getDataFields();
           String colName,colTypeName;
           int colType, len;
           Field field;
           HashMap colNames = new HashMap();
           HashMap colTypes = new HashMap();
           for (int i = 0; i < fields.size(); i++) {
                   field = (Field) fields.get(i);
                   colName =field.getDisplayName(FieldDisplayNameType.description, Locale
    .ENGLISH);
                   colNames.put("COL"+i,colName);
           colType = getColTypeFromVariant(field.getType().toVariantTypeString());
           len=field.getLength();
                  //Placeholder
            //add column metadata to data structure or XML
            Object colValue;
            int rowCount=0;
            if (getMaxRows() != 0) {
                   RowsetCursor rowsetCursor = clientDoc.getRowsetController(). createCursor
    (null, rowSetMetaData);
                  //Setting the batch size to make sure that you get back all the
                  //rows by setting the batch size.
                        clientDoc.getRowsetController().setRowsetBatchSize (rowsetCursor
    .getRowset().getTotalRecordCount());
               //Getting the Results back starting from the first row
               RowsetCursor resultCursor = clientDoc.getRowsetController(). createCursor(null,
    rowSetMetaData);
               resultCursor.moveTo(0);
                  while (!resultCursor.isEOF()) {
                      for (int i = 0; i < fields.size(); i++) {
                               colName=(String)colNames.get("COL"+i);
                               colTypeName=(String)colTypes.get("COL"+i);
    colValue=record.getValue(i);
                                //Placeholder
    //add row data to data structure or XML
    resultCursor.moveNext();
    For more details, consult the Report Application Server .NET SDK Developer Guide
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • How to get rid of right click menu?

    I like to mouse over a hyperlink in a web page and select "open in a new tab". The right click menu jumps in the way. I don't like or use the right click menu. How do I stop it from stopping me? As a side note, the reason I like "open in a new tab" is that some websites will open on the same page and in some events the back button will not return you to that page. I find the new tab very helpful and the right click menu a pain in the ---.
    Win 8.1
    Firefox - newest
    Alternatively, is there a way to add "open in a new tab" to the menu that gets in the way?
    I was trying to open "Sign Up/Sign In" in a new tab.
    Completely irrelevant to my question, but since you see my tabs, I was watching Jon Stewart on Hulu. He was raving about the Katy Perry Superbowl show. I wanted to see what he was talking about. I don't give a flying crap in the rain about the Stupor Bowl.

    The right-click menu is context-sensitive. When you right-click a link, you should have the option to open in a new tab, new window, or new private window. (In a private window, "new window" is not displayed.) The menu in your screen shot would normally appear if you clicked a blank area of the page without a link directly under the mouse pointer.
    I can't think of any built-in way to get the Open in New Tab command just mousing over a hyperlink. Do you have an add-on that does that automatically for you? If so, I wonder whether it might need an update?

  • How to Open another jsp page from jsp page

    Hi,
    I am new to JSP. I need help to handle issue given below:
    I have created one JSP Page for Login which contains Username and Password with a Submit Button. Once user inputs UserName and Password and Press Submit Button, It calls another JSP Page "Validate_login"
    Validate_Login JSP does a JDBC call to Databse and validate User Name and Password. Now i want to open a "Employee.jsp" page if Username and Password matches with the one in database.
    Pls advice what function or tag should i use to open this page in If (condition) true section.. I tried Window.open but it return back with error.

    I tried with the function suggested by Doly. But nothing is happening. It doesn't redirect to any page. only a blank page comes.
    here is complete code . pls correct me if i am wrong somewhere.
    this is code of Validate_Login.jsp page which is invoked when user press login button on login.jsp.
    my purpose is to validate username and password from database and redirect to employee.jsp if it is ok else back to login.jsp
    here is source of Validate_login.jsp
    =============================================================
    <%@ page language="java" import="java.sql.*" pageEncoding="ISO-8859-1"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Validate Login</title>
    </head>
    <body>
    <%
    String username = request.getParameter("username");
    String password = request.getParameter("password");
    String viewPATH = "c:/MyData.mdb";
    String dsnPATH = "jdbc:odbc:DRIVER=Microsoft Access Driver (*.mdb); " +
    "DBQ="+viewPATH+"; " +
    "UserCommitSync=Yes; " +
    "Threads=3; " +
    "SafeTransactions=0; " +
    "PageTimeout=5; " +
    "MaxScanRows=8; " +
    "MaxBufferSize=2048; " +
    "DriverId=281; " +
    "DefaultDir=C:/ProgramFiles/CommonFiles/ODBC/DataSources";
    Connection conn = null;
    Statement stmt = null;
    ResultSet rs = null;
    try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         conn = DriverManager.getConnection(dsnPATH, "", "");
         stmt = conn.createStatement();
    rs= stmt.executeQuery("SELECT * FROM Employee where emp_id='"+username+"'");
    while(rs.next())
    String pass = rs.getString("password");
    if (pass.equals(password))
    { response.sendRedirect("Employee.jsp");}
    else
    { response.sendRedirect("login.jsp");}
    catch(Exception e)
    e.printStackTrace();
    finally
         if(stmt!=null) stmt.close();
         if(conn!=null) conn.close();
    %>
    </body>
    </html>

  • How to get calling jsp name?

    We are implementing iStore 12.1.3
    We have a jsp which can be called from multiple jsps. When the jsp is processed, navigation should go back to the calling jsp.
    Is there any in-built API which provides calling jsp name?
    Please advise urgently.
    Thanks in advance

    Is it a custom jsp or seeded jsp?
    you can go back to previous page programmatically, only if previous page reference is passed thru request object
    if it is seeded jsp, you will need to check if calling jsp is passing the name of page to destination page through request object.
    if it is custom jsp, introduce code like below on all the source/calling JSPs.
    <input type=hidden name="fromRef" value="<%=IBEUtil.htmlEncode("<name of page>")%>">
    and on processing page, write code to forward to fromRef.
    e.g. <jsp:forward page="<%=request.getParameter("fromRef")%>"/>
    thanks,
    Hrishikesh

  • I suddenly started getting redirected when I click on my Firefox icon. Page says "Paypal and Firefox Simple promotion!" Paypal says it isn't theirs. I can't seem to get past this. I am afraid this a Trojan redirect or keystroke copier.

    I'm not sure how or when it happened but whenever I click on any Firefox icon on my desktop, I get redirected to what appears to be a Mozilla Firefox page but there is a window on the screen that says "Paypal and Firefox Simple promotion!, Did you know that Mozilla Firefox is the most safe browser? Paypal trusts Firefox! Login to your paypal account using Firefox today and get 25$ promotion on your balance by next month!
    * This promotion valid only for VERIFIED account holders
    * You can register a new paypal account and get verified now.
    * Always proceed to Paypal by securely typing www.paypal.com in your browser.
    then a button to click that says "contnue with xxx.xxxxxx.com"
    this is where the button is for the url I was originally trying to get too.

    Do a malware check with some malware scanning programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    * "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • How to get file input stream from the client machine by JSF Fileupload API?

    Dear Friends,
    How to get the file input stream from the client machine by JSF HtmlFileupload or fileupload API. At present, if i execute the file upload code in the client machine, it is able to get the local path of the file and looking for the file in server machine. So i am getting FileNotFoundException.
    E.g., If a file is located at client machine at following location means "C:\Test\Test.txt",
    uploadClass.getFileuploadComponent().getFilename().toString() returns "C:\Test\Test.txt". But it is looking for that file in server and throwing FileNotFoundException.
    Please post your replies soon.
    Thanks,
    JP

    Depends on which version of JSF you're using. If JSF 1.2, I wouldn't even bother trying to hack this into JSF itself unless you can use something like Seam 2 or richfaces.
    http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/rich_fileUpload.html
    http://docs.jboss.org/seam/2.2.1.CR3/reference/en-US/html/controls.html#d0e29259 (look for s:fileUpload)
    But if I were you, a simple non-jsf form with a servlet works best for taking file uploads.
    As for JSF 2.0, there are other ways of getting it done.
    http://balusc.blogspot.com/2009/12/uploading-files-with-jsf-20-and-servlet.html

  • How to clear the Managed Bean Values prior to load a JSF page

    Hello.
    I have a jsf page that contains fields that need to be cleared BEFORE the page is loaded.
    My managed bean where the fields are linked (I�m using the value attribute) is in the SESSION scope because I need to control they values across a popup window and if I use request scope, my vectors that load objects like dataTable are cleared when I post the form.
    My question is :
    How I CLEAR all the values in the managed bean BEFORE the page is loaded ???
    In the WebForms (Microsoft .NET) I have an method on the codebehind called Page_Load where I put my initialization code for my page.
    Thanks in advance.
    Rog�rio

    Rog�rio,
    You can do this with a PhaseListener. Just regiser a new listener for the RESTORE_VIEW phase, and implement the beforePhase method; you can do this in the backing bean's constructor, or somewhere elase. This is pretty much the same as the Page_Load event handler in .NET.
    Kito D. Mann
    Author, JSF in Action
    http://www.jsfcentral.com - JSF news, info, and FAQ
    Hello.
    I have a jsf page that contains fields that need to be
    cleared BEFORE the page is loaded.
    My managed bean where the fields are linked (I�m using
    the value attribute) is in the SESSION scope because I
    need to control they values across a popup window and
    if I use request scope, my vectors that load objects
    like dataTable are cleared when I post the form.
    My question is :
    How I CLEAR all the values in the managed bean BEFORE
    the page is loaded ???
    In the WebForms (Microsoft .NET) I have an method on
    the codebehind called Page_Load where I put my
    initialization code for my page.
    Thanks in advance.
    Rog�rio

  • Getting style missing errors while rendering ADF trees in JSF page

    I am getting the following message while rendering a JSF page with af:tree. Based on other posts on this forum, I verified servlet-mapping in web.xml and it is already set to /faces/*.
    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    Here is my JSF code snippet.
    <f:view><af:document title="DeviceTree2.jsf" id="d1">
    <af:messages id="m1"/>
    <af:form id="f1">
    <af:tree value="#{bindings.Device1.treeModel}" var="node" selectionListener="#{bindings.Device1.treeModel.makeCurrent}" rowSelection="single" id="t1">
    <f:facet name="nodeStamp"><af:outputText value="#{node}" id="ot1"/>
    </f:facet>
    </af:tree>
    </af:form>
    </af:document>
    </f:view>
    Surely I am missing something here but not sure on the real issue.
    Would appreciate if someone can help on this.

    I am getting the following error. Browser shows the JSF XML code listed in my original issue statement followed by this error.
    "This XML file does not appear to have any style information associated with it. The document tree is shown below."

  • How to Get the value when clicking on the link

    I had a problem with when clicking on the link.
    I need get the link value to the controller when clicking on the link.
    I am displaying the database columns in jsp using repeater in links.
    I am displaying the data like this:
    RED
    BLUE
    GREEN
    these are three links.when clicking on the link RED. RED should go to the controller.
    After getting RED to the controller i will get the RED value from the database.

    my requirement is like that only
    I have just given the example of emp and dept
    emp(empno,zone_group_id,zone_id,deptno,ename,emp_p_ind,last_update_datetime);
    dept_emp(empno,dept_no,loc,dname,sal_emp,grade,last_update_datetime);
    CREATE OR REPLACE VIEW emp_zone AS
    SELECT e.empno,
          (select zone_group_id from price_zone_group where rownum = 1) zone_group_id,
           d.loc zone_id,    
           d.grade,  
           d.last_update_datetime,
      FROM dept_emp d
          emp e
    WHERE d.empno=e.empno
       AND e.emp_p_ind = 'Y'
      WITH READ ONLY;
    Now
    my requirement is to get the data of emp_zone view and needs to store those data into some other temp table
    if any of the above base table got updated deleted or inserted then the view last_updatetime also will get updated but problem is why im not using base table
    direct because it is having huge data and it performance issue .i have to get the value on the basis of view only and using some logic

Maybe you are looking for

  • Web.Show_Document does not work with long running reports

    I am using Web.Show_Document() to call reports from Forms. Everything works fine for smaller reports. However for long running reports I do not get the output instead get the page "This page cannot be displayed.". On checking the job status on the re

  • How do I read the metadata of an object in abap?

    I need to find a way to read the metadata of an object (say an internal table) in abap.  An example of what I am looking to do is that I want to get a list of all the column names of an internal table.  Any help would be greatly appreciated! Dustin

  • Text problem in SAPScript

    Hello, i have a problem i need to print one recepit with sapscript. I have to made a changes in displaying the text in o/p but it is in different language i.e PT text to display is IVA NÃO REGULARIZADO – ARTº 71 CIVA Now if you see above in sentence

  • Iphone5 Contacts

    I lost all my contacts on my iphone5 and found them on my ipad. Please help me how to return them to my iphone5.

  • GL Account Offset

    Dear All. I have a requirement to show the GL Account offsets for the GL in question i.e. User enter on variable screen. 1. GL number 2. Posting Date 3. Company code. The report should show all the offset entries which is happen against this GL in al