How-to navigate to a JSF JSP that is nested in a sub-directory???

Here is the navigation rule from faces-config.xml
<navigation-rule>
<from-view-id>/index.jsp</from-view-id>
<navigation-case>
<from-outcome>next</from-outcome>
<to-view-id>/upload/uploadImage.jsp</to-view-id>
</navigation-case>
</navigation-rule>
Here is the web content directory structure
/upload/upLoadImage.jsp
index.jsp
The result is:
404 not found
jsp error
Request URI:/fileupload-ViewController-context-root/upload/uploadImage.jsp
Exception:
OracleJSP:java.io.FileNotFoundException: /upload/uploadImage.jsp
How do I fix the navigation or does everything have to be at the same directory level?
Regards,
Al Malin

Does everything have to be at the same directory level?
The <to-view-id/> JSP/html is not required to be at the same directory level as <from-view-id/>
Is the JSP /upload/upLoadImage.jsp and not /upload/uploadImage.jsp?

Similar Messages

  • How to check the files ...that are present in an oracle directory

    hi all
    is there any data dictionary view or table that will list all the files that exist a oracle directory?
    regards
    raj
    we can see all the directories using dba_directories i would like to see what all files it contains
    regards
    raj

    hi justin
    this is me who posted here ..but here i was asking about... the directory that we create in oracle.....
    about dba_directories.....
    in the other post in pl/sql forum i was asking about the directory that exist on the ftp server....... and using unix from with in plsql to loop through the list of all the files
    regards
    raj

  • Error when compiling JSF JSP

    I'm getting the following error when I try to compile an application containing a JSF JSP in JDeveloper 10.1.3. The error is:
    Error: java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
    I've checked the files in the classpath and the TagAttributeInfo class is located in <install>/j2ee/home/lib/servlet.jar. I decompiled the class and it does have a constructor that takes (String, boolean, String, boolean, boolean).
    The only change I made between when things worked and now is that I tried to add a JSF JSP that used the ADF classes. But once I started getting this compilation error, I removed the ADF classes from the project, so they shouldn't be causing any problems anymore.
    Any ideas what's wrong?
    Thanks

    Hello,
    May be that your classpath doesn't include that location ?
    Have you tried to put the TagAttributeInfo.class file into your current folder
    (or may be in ..\<your_project>\Classes\.. path ) ?
    To check if your classpath does actually include your path, you could run:
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Dummy JSP-CLASSPATH</title>
    </head>
    <body>
    <%
    out.println("<h1><em>JSP Showing your CLASSPATH</h1></em>");
    out.println("<hr></hr><p>");
    out.println(System.getProperty("java.class.path"));
    %>
    </body>
    </html>
    Hope this will help you.
    Stephan

  • How I detect in a dynamic website either PHP or CFM or JSP that cookies & javascript are enabled ?

    How I detect in a dynamic website either PHP or CFM or JSP that cookies & javascript are enabled ?

    You do that on the browser end using JavaScript. For cookies, simply establish session variables in PHP or whatever you use. if the browser refuses them, they wil lreturn a respective value in the referrers...
    Mylenium

  • Hi ya'll! I'm still learning how to navigate my way with Lightroom. (Last time I wrote, I did get some responses that work. Thanks so much!) Now, I have another question. When I try to copy pics from my external drive to a CD/DVD, no matter if do it from

    Hi ya'll! I'm still learning how to navigate my way with Lightroom. (Last time I wrote, I did get some responses that work. Thanks so much!) Now, I have another question. When I try to copy pics from my external drive to a CD/DVD, no matter if do it from LR or my drive, I keep getting the message; "Disk burning is not supported by LR on this computer." I've tried everything I can think of, so, I thought I'd see if anyone may know if there's anything I can do. Or could it be that my computer just can't handle it? Help!!! So frustrating!!  I have a PC Lenovo computer, I don't know if this makes any difference. Any ideas? Thanks so much for your help!!!

    Have you burned Discs with other programs using this computer? Are you certain that you have a drive that will burn discs?

  • How to show a PDF with a JSF jsp.

    Hello,
    I want to show a PDF in a JSF jsp.
    I'm a newbie with this, and don't know where to look for information about that.
    Any example on the web ?
    Thanks in advance

    I think you will need to eventually get it to the HTML <object> tag anyway.
    <OBJECT data="yourPDFhere.pdf" type="????""/>
    and to get the byte[] to the client you may need to make a Servlet to respond to *.pdf requests and feed the correct session 'in memory' pdf out the stream.
    Here is an example from some svg 'in memory' per session I was testing:
    * SessionServlet.java
    * Created on June 3, 2004, 12:09 AM
    package com.hypernex.xml.svg;
    import java.io.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    * @author  Roger I Martin, PhD
    * @version
    public class SessionServlet extends HttpServlet
        /** Initializes the servlet.
        public void init(ServletConfig config) throws ServletException
            super.init(config);
        /** Destroys the servlet.
        public void destroy()
        /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
         * @param request servlet request
         * @param response servlet response
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
            ServletContext context=getServletContext();
            java.util.Enumeration e=context.getServlets();
            while(e.hasMoreElements())
                System.out.println("servlets \t"+e.nextElement());
            /*e=context.getAttributeNames();
            while(e.hasMoreElements())
                System.out.println("AttributeNames \t"+e.nextElement());
            e=request.getParameterNames();
            while(e.hasMoreElements())
                System.out.println("ParameterNames \t"+e.nextElement());
            System.out.println("getContextPath "+request.getContextPath());
            System.out.println("getRequestURI"+request.getRequestURI());
            response.setContentType("text/xml+svg");
            PrintWriter out = response.getWriter();
            HttpSession httpSession=request.getSession();
            System.out.println("getQueryString"+httpSession);
            if(httpSession!=null && request.getRequestURI().endsWith("wafermap.svg"))
                /*e=httpSession.getAttributeNames();
                while(e.hasMoreElements())
                    System.out.println("httpSession AttributeNames \t"+e.nextElement());
                SVGProducer svgProducer=(SVGProducer)httpSession.getAttribute("waferMap");
                out.print(svgProducer.getSVGView());
            else if(httpSession!=null && request.getRequestURI().endsWith("hardware.svg"))
                SVGProducer svgProducer=(SVGProducer)httpSession.getAttribute("hardwareBean");
                out.print(svgProducer.getSVGView());
            else if(httpSession!=null && request.getRequestURI().endsWith("geometry.svg"))
                SVGProducer svgProducer=(SVGProducer)httpSession.getAttribute("geometryBean");
                out.print(svgProducer.getSVGView());
            else
                try
                    java.io.BufferedReader br=new java.io.BufferedReader(new java.io.FileReader("./webapps"+request.getRequestURI()));
                    String line=null;
                    while((line=br.readLine())!=null)
                        out.println(line);
                    br.close();
                catch(java.io.IOException ioe)
                    System.out.println("ioe:"+ioe.getMessage());
            out.close();
        /** Handles the HTTP <code>GET</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
            processRequest(request, response);
        /** Handles the HTTP <code>POST</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
            processRequest(request, response);
        /** Returns a short description of the servlet.
        public String getServletInfo()
            return "SVG graphics handler";
    }

  • Session in JSF JSP page

    Hi All,
    I am using JSF JSP pages. One such page is login.jsp I have backing object backing_login
    On successful login, listUser.jsp page is displayed. In this page, I have a HTML --- Commons Hyperlink component as follows.
      <tr>
                  <td height="17">
                    <a href="http://129.212.139.36:8991/GeminiLogin-ViewController-context-root/faces/listUsers.jsp">
                      Manage Users
                    </a>
                    <afh:script binding="#{backing_createModify.script1}"
                                id="script1"/>
                  </td>
                </tr>
    Now the question:---
    I do get to know the UserType in the backing_login object (either 'cma' or 'ea').
    Now, if it is cma I want the above link tobe dispalyed in listUser.jsp else DO NOT display the link.
    How can I do that ? I dont know, how to pass UserType information available in baking_login to the listUser.jsp and
    second, how can conditionally use that info to either hide or display that hyperlink ?
    Your help appreaciated.
    thanks in advance
    pp

    You can use an ADF Faces link component and condition the display attribute for it on the value of your backing bean
    There are some samples of conditional display in the posts from Grant here:
    http://groundside.com/blog/GrantRonald.php?m=200512

  • JSF & JSP

    DEAR SIR/MADAM,
    can u tell me what is major difference between jsf & jsp?
    because i need to planning develop web application.
    which is a best for design/deploy/performance.
    i don't know how to choose which one ?
    best regards
    boris

    DEAR SIR/MADAM,
    can u tell me what is major difference between jsf &
    jsp?
    because i need to planning develop web application.
    which is a best for design/deploy/performance.
    i don't know how to choose which one ?JSP is a page description language that enables you to hook up server side java code to the request/response lifecycle of a web page. JSP has an extension facility, called "custom tag libraries", that allows one to write java classes that get exposed to the page author as HTML tags.
    JSF uses the JSP custom tag libraries feature to provide HTML tags that represent UI components which page authors can include in their pages. In addition, JSF many features that go far beyond JSP, such as page navigation and better back end integration.
    Ed

  • How to Navigate from af:internalFrame to another page in the parent frame?

    Hi!
    I'm using an ADF IFrame Component <af:internalFrame>..
    we have a requirement where we needed to navigate from a page in the Internal frame to another page in the browser, i.e., on clicking a ceratain button in IFrame , the browser window should load an another page in the main window/frame(not in IFrame). I know this can be done with javascript by setting the
    window.location='newurl'
    But that would take me away from the normal JSF lifecycle, that is I have to perform certain processing of the inputs from the Iframe, and then navigate in the normal JSF way to another page in the main browser window,according to the navigation configured in the faces-config.xml; or if possible, programmatically ,in the backing bean.
    Can someone give me any hint of how to do this?
    Thanking you in advance,
    Samba

    Correct. To achieve this functionality JavaScript is required.
    --Ric                                                                                                                                                                                           

  • How to print new line in jsp page

    hi
    how to print new line in jsp page
    thanks

    \n - new line character is in java specific not HTML
    specific.Well, if the correct line separator sequence (by far not always \n) would be used, it does add a new line to the HTML output. Too bad that you don't want to see HTML but formatted text. The BR tag is a formatting element for the displayed text, not a line break in HTML. ;)

  • How do you invoke a simple jsp

    hi,
    i have a very simple jsp that displays the current time. it works on my tomcat server (installed on my computer). i purchased a domain from yahoo, say, www.beginer.com and uploaded the jsp file to the yahoo server. but when i referenced it with the url www.beginer.com/MyJSP.jsp, a download dialog popped up.
    so, how do you get the browser to display the dynamic contents of the jsp file?
    thanks.

    Did you ask Yahoo whether their server supports servlets and JSPs? Or did you just assume that? I would expect that it doesn't.

  • Urgent....How can i redirect to my jsp page from servlet in init() method..

    How can i redirect to my jsp page from servlet in init() method..Becoz that servlet is calling while server startsup..so im writing some piece of code in init() method..after that i want to redirect to some jsp page ...is it possible?
    using RequestDispatcher..its not possible..becoz
    RequestDispatcher rd = sc.getRequestDispatcher("goto.jsp");
    rd.foward(req,res);
    Here the request and response are null objects..
    So mi question can frame as how can i get request/response in servlet's init method()..

    Hi guys
    did any one get a solution for this issue. calling a jsp in the startup of the servlet, i mean in the startup servlet. I do have a same req like i need to call a JSP which does some data reterival and calculations and i am putting the results in the cache. so in the jsp there in no output of HTML. when i use the URLConnection i am getting a error as below.
    java.net.SocketException: Unexpected end of file from server
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:707)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:612)
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:705)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:612)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
    nection.java:519)
    at com.toysrus.fns.alphablox.Startup.callJSP(Unknown Source)
    at com.toysrus.fns.alphablox.Startup.init(Unknown Source)
    at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
    so plz do let me know how to call a jsp in the start up of a servlet.
    Thanks
    Vidya

  • How to store data in hashmap so that it can be used by different methods.

    Hello,
    I have an ADF/JSF application and the database is DRM. The program gets data from DRM into this hashmap. Program needs this data frequently. Getting this HashMap is very resource intensive due to a lot of data it has.
    I want to get the data in HashMap once ( I can do this - no problem).  But where/how do I keep it so that different methods can just use this and not make individual trips to DRM? It may be a very basic java question but I seem to be stuck :)
    I am not very concerned about the HashMap part, it can be any collection - the question is of storing it so that it can be used over and over.
    Thanks,

    User,
    If I understand you correctly, you have a JSF application that needs to store data in a HashMap such that it can be accessed over and over? You could put the hashmap into an appropriately-scoped managed bean and access it from there. I'm not sure what a "DRM" is (a digital rights management database, perhaps, in which case it's a "database"), so there is something special about a "DRM" that we need to know, please share.
    John

  • How to retrieve resource name in JSP page

    Hello,
    I have the following scenario:
    User wants a new resource to be provisioned to himself, he makes standard steps; chooses one resource from the list of available resources and sends a request. After that a summary page is displayed - my goal is to create an url to external application on that summary page (i.e. tjspRequestSubmitTiles.jsp) that should be displayed depending on the name of the resource, e.g. if user requests for a ResourceA - link appears, but when he requests for a ResourceB - link does not appear.
    So far I have created a link with a sample if statement - it works.
    My problem is how to make a real condition - retrieve the resource name that request deals with. Anybody know how to do that, which API to use etc.?
    Regards,
    Maciej.

    After adding the code to tjspProvideDataShowInfoTiles.jsp file, nothing has been improved, I am still facing the same result (on the console):
    RO: null
    It seems that file (tjspProvideDataShowInfoTiles.jsp) does not take part in the process.
    I have tried to pass some sample session attribute in tjspRequestVerificationTiles.jsp and this works, but I do not know how to retrieve resourceName in this file.
    I was trying to make some code retrieving resourceName in tjspRequestSubmitTiles.jsp, e.g.
    tcRequestWizardForm tcReqWizForm = (tcRequestWizardForm)session.getAttribute(requestWizardForm);
    String requestID = tcreqWizForm.getRequestID();
    ...and what to do now to retrieve resourceName?

  • How to use HtmlDataTable in JSF

    Hi,
    I am going to use HtmlDataTable in a bean. The scenario like this: User submit a symbol (a String) then get stock history information corresponding to this symbol. I put the stock history information in an Arraylist, every element of this Arraylist is a java bean, which contains historical information for this stock according to the time.
    The java bean:
    public class StockHistory {
         private String symbol;
         private String date;
         private long dayVolume;
         private double openPrice;
         private double closePrice;
         private double dayHighPrice;
         private double dayLowPrice;
         public String getSymbol()
              return symbol;
         public void setSymbol(String Symbol)
              this.symbol = Symbol;
         public String getDate()
              return date;
         public void setDate(String date)
              this.date = date;
         public long getDayVolume()
              return dayVolume;
         public void setDayVolume(long dayVolume)
              this.dayVolume = dayVolume;
         public double getOpenPrice()
              return openPrice;
         public void setOpenPrice(double openPrice)
              this.openPrice = openPrice;
         public double getClosePrice()
              return closePrice;
         public void setClosePrice(double closePrice)
              this.closePrice = closePrice;
         public double getDayHighPrice()
              return dayHighPrice;
         public void setDayHighPrice(double dayHighPrice)
              this.dayHighPrice = dayHighPrice;
         public double getDayLowPrice()
              return dayLowPrice;
         public void setDayLowPrice(double dayLowPrice)
              this.dayLowPrice = dayLowPrice;
    }The Arraylist:
    ArrayList data = new ArrayList( 100 );
    Collection threadSafeList = Collections.synchronizedCollection( data );
    StockHistory stock = new StockHistory();
    stock.setSymbol("IBM");
    stock.setDate("01/01/2000");
    stock.setDayVolume(100000);
    stock.setOpenPrice(76.08);
    stock.setClosePrice(78.08);
    stock.setDayLowPrice(75.05);
    stock.setDayHighPrice(79.93);
    data.add(stock);
    stock.setSymbol("IBM");
    stock.setDate("01/01/2002");
    stock.setDayVolume(100300);
    stock.setOpenPrice(86.08);
    stock.setClosePrice(88.08);
    stock.setDayLowPrice(85.05);
    stock.setDayHighPrice(89.93);
    data.add(stock););
    I set HTMLDataTable lke:
    // DataTable
    historyDataTable = new HtmlDataTable();
    // Column1
    UIColumn columnComponent  = new UIColumn();
    List childrenList = historyDataTable.getChildren();
    childrenList.add(columnComponent);
    // Header information 1
    HtmlOutputText headerComponent = new HtmlOutputText();
    headerComponent.setValue("symbol");
    columnComponent.setHeader(headerComponent);
    // Column 2
    columnComponent  = new UIColumn();
    childrenList.add(columnComponent);
    // Header information 2
    headerComponent = new HtmlOutputText();
    headerComponent.setValue("date");
    columnComponent.setHeader(headerComponent);
    // Column3
    columnComponent  = new UIColumn();
    childrenList.add(columnComponent);
    // Header information 3
    headerComponent = new HtmlOutputText();
    headerComponent.setValue("dayVolume");
    columnComponent.setHeader(headerComponent);
    // Column 4
    columnComponent  = new UIColumn();
    childrenList.add(columnComponent);
    // Header information 4
    headerComponent = new HtmlOutputText();
    headerComponent.setValue("openPrice");
    columnComponent.setHeader(headerComponent);        
    // Column5
    columnComponent  = new UIColumn();
    childrenList.add(columnComponent);
    // Header information 5
    headerComponent = new HtmlOutputText();
    headerComponent.setValue("closePrice");
    columnComponent.setHeader(headerComponent);
    // Column 6
    columnComponent  = new UIColumn();
    childrenList.add(columnComponent);
    // Header information 6
    headerComponent = new HtmlOutputText();
    headerComponent.setValue("dayHighPrice");
    columnComponent.setHeader(headerComponent);
    // Column 7
    columnComponent  = new UIColumn();
    childrenList.add(columnComponent);
    // Header information 7
    headerComponent = new HtmlOutputText();
    headerComponent.setValue("dayLowPrice");
    columnComponent.setHeader(headerComponent);
    //get data
    ArrayList list=history(symbol);
    list=(ArrayList) columnComponent.getChildren();
    for(int i=1; i<=list.size(); i++)
         HtmlOutputText rowComponent = new HtmlOutputText();
         rowComponent.setValue("Row"+i);
         rowComponent.setId("Row"+i);
         list.add(rowComponent);
    // DataModel
    ListDataModel listDataModel = new ListDataModel();
    listDataModel.setWrappedData(list);The JSP code to display this table
    <h:dataTable id="Historytable" value="#{stockHistoryBean.historyDataTable}" var="varstockHistory" styleClass="dataTable" headerClass="headerClass" footerClass="footerClass" rowClasses="rowClass1" columnClasses="columnClass1" border="0" cellpadding="2" cellspacing="0" binding="#{stockHistoryBean.historyDataTable}">
    <h:column id="column1" >
    <f:facet name="header">
    <h:outputText styleClass="outputText" value="DATE" id="col1text1"></h:outputText>
    </f:facet>
    <h:outputText id="col1text2" value="#{varstockHistory.symbol}" styleClass="outputText" >
    <f:convertDateTime/>
    </h:outputText>
    </h:column>
                   <h:column id="column2" >
                        <f:facet name="header">
                        <h:outputText styleClass="outputText" value="DATE" id="col2text1"></h:outputText>
                        </f:facet>
                        <h:outputText id="col2text2" value="#{varstockHistory.date}" styleClass="outputText" >
                        <f:convertDateTime/>
                        </h:outputText>
                   </h:column>
                   <h:column id="column3" >
                        <f:facet name="header">
                        <h:outputText styleClass="outputText" value="Dayvolume" id="col3text1"></h:outputText>
                        </f:facet>
                        <h:outputText id="col3text2" value="#{varstockHistory.dayVolume}" styleClass="outputText" >
                        <f:convertNumber/>
                        </h:outputText></h:column>
                        <h:column id="column4" >
                        <f:facet name="header">
                        <h:outputText styleClass="outputText" value="Openprice" id="col4text1"></h:outputText>
                        </f:facet>
                        <h:outputText id="col4text2" value="#{varstockHistory.openPrice}" styleClass="outputText" >
                        <f:convertNumber/>
                        </h:outputText>
                   </h:column>
                   <h:column id="column5" >
                        <f:facet name="header">
                        <h:outputText styleClass="outputText" value="Closeprice" id="col5text1"></h:outputText>
                        </f:facet>
                        <h:outputText id="col5text2" value="#{varstockHistory.closePrice}" styleClass="outputText" >
                        <f:convertNumber/>
                        </h:outputText>
                   </h:column>
                   <h:column id="column6" >
                        <f:facet name="header">
                        <h:outputText styleClass="outputText" value="Dayhighprice" id="col6text1"></h:outputText>
                        </f:facet>
                        <h:outputText id="col6text2" value="#{varstockHistory.dayHighPrice}" styleClass="outputText" >
                        <f:convertNumber/>
                        </h:outputText>
                   </h:column>
                   <h:column id="column7" >
                        <f:facet name="header">
                        <h:outputText styleClass="outputText" value="Daylowprice" id="col7text1"></h:outputText>
                        </f:facet>
                        <h:outputText id="col7text2" value="#{varstockHistory.dayLowPrice}" styleClass="outputText" >
                        <f:convertNumber/>
                        </h:outputText>
                   </h:column>
         </h:dataTable>The problem is when I tried to run, there is this page is not display. But if I remove the HTMLDataTable part from both bean class and JSP, then it works correctly. So much be something wrong with using HTMLDataTable.
    Really appreciate your help

    You should write your own JSF component that generates html frame as you need or
    download already written custom component that generates html frame.

Maybe you are looking for

  • Itunes wont update ipod

    when i plug my ipod in and try to update it with my new music a box pops up that says my ipod cant be synched because an unknown error occured (-48). i have no idea what that means or how to fix it, help? =/

  • Order of Attributes in InfoWindow and Dynamic Pies

    I use the following SQL select in a JDBC Query: SELECT o.geom, k.kundennummer, a.NAME Name, a.STRASSE Straße, a.LAND || '-' || a.PLZ || ' ' || a.ORT Ort, '', d.SALDO || ' EUR' Umsatz I'm trying to use this sql select for two things: 1. Showing a Info

  • WHAT now with OSX search function?

    Okay, i just searched one of my hard drives for pdf files, and search returns 0 files. HOW can this be!? I would use profanity here because it's plainly warranted, but Apple doesn't like that. I think from now on, i'll use the term "OS X" as a substi

  • WebI Server goes in Restart mode

    I have successfully installed BOE XI 3.0  and SAP Inegration for SAP 3.0 But after every 2 to 3 days, when I try to open a webi doc, i get an error " An error has occurred Could not initialize Report Engine server" Have checked in the CMC and found o

  • Video file size

    I have recently bought an ipod touch, having downgraded (in memory size) from an 80 Gb 5th gen ipod video. I am having trouble getting my videos to be of a reasonable size, and most importantly of a reasonable quality. A friend of mine gave me a copy