Is it possible to use JSF file as as error page.

I am using jsf file as an error page.It is working in fine in websphere. But if i am using that only the exception is raised it is not going to error page.
In Web.XML file,
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<error-page>
<error-code>403</error-code>          <location>/faces/unauthorized.jsp</location>
</error-page>
jsf codings are placed under *.jsp files. In the time submitting form data to server a method throws NumberFormatException. This exception information is displayed in console. but blankpage is coming . It is not redirected to error.jsp fle which is under faces/error.jsp.
If i am directly giving /error.jsp then it is giving Faces context is not created error.
So i tried use simple jsp(pure jsp) file wihtin the folder and i set path like /pages/foo.jsp. It is working.
Tell me is it possible to use jsf as error page.

What would you hope to do with the reference?  The Mathscript node doesn't have a file reading capability.  You need to read the file and pass the data into the Mathscript node.
EDIT: I stand corrected.  You need to use the fopen and fclose functions inside of the MathScript node to be able to read a file inside of it.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

Similar Messages

  • Is it possible to use backup files previously copied to an external hard drive to backup an iPhone?

    My sister froze her iPhone by trying to turn it off during a software update (not sure why) and restored it because she thought it would fix it. Unfortunately she unintentionally deleted all of her data and settings. She doesn't use iCloud, so I'm assuming all her files are backed up to her computer when she syncs her iPhone, but using iTunes I can only find two backup points using Edit>Preferences>Devices, both in the past few minutes. I know that each sync overrides the last backup files instead of creating newer ones, so apparently older backup files from her computer can't be used to recover her data. However, we both periodically use an external hard drive to back up our computers by basically dragging and dropping our files onto it, so there is an earlier version of her User folder on the external hard drive. It would definitely be preferable to use the backup files from a few months ago that are on the external hard drive and lose a few photos than to lose years of data, so would it be possible to direct iTunes to those backup files (AppData etc) instead of the ones saved on her computer hard drive? There's not any kind of browse option I can see that could allow me to get iTunes to search for backup files on the external hard drive and I'm not computer savvy enough to manually find the files and connect them to iTunes. Is it even possible to use backup files from an external hard drive? Do I have to replace the ones that exist on her computer now?

    Garageband can't use VST plugins.
    If you're talking about AUs: you could try to put an alias into the HD/Library/Audio/Plug-Ins/Components folder instead of the actual files, and see if GB loads them.

  • Is it possible to use .amr files in Logic Pro 9?

    I have a .amr file. Is it possible to use in Logic Pro and if so how? If not is there a way to convert it?

    "Is it possible to use .amr files in Logic Pro 9"
    Probably, but it's a freakin' travesty!

  • Is it possible to use a file refnum as an input of mathscript node

    Hi everybody,
    I just began to use LV and mathscript recently. One problem confused me a lot.  That is,
    Is it possible to use a file refnum as the input or output of mathscript node? A picture is attached for your reference.
    Thanks a lot!
    Gary
    Solved!
    Go to Solution.
    Attachments:
    Q-001.jpg ‏45 KB

    What would you hope to do with the reference?  The Mathscript node doesn't have a file reading capability.  You need to read the file and pass the data into the Mathscript node.
    EDIT: I stand corrected.  You need to use the fopen and fclose functions inside of the MathScript node to be able to read a file inside of it.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Is it possible to use a file from CS6 in CS5.5

    I'm hoping to buy CS6 but I use CS5.5 at college. Is it possible to bring a file from CS6 into CS5.5. If not, where can I get CS5.5?

    PS files are backward compatible if you save them with maximum compatibility enabled. likewise, AI files can be saved back to older versions. Of course in both cases specific features from CS6 will be lost or rasterized to pixels, so they are not editable in CS5.5. In Design might be a bit more tricky. It supports saving back to CS5.5, but this may completely ruin your documents, if you use the new dynamic layout features, Arabic text etc., so it's less useful to go that route.
    Mylenium

  • Include jsf file in a jsp page

    Hi Everyone,
    I have a plain jsp page with no JSF Components, but it has a jsp:include tag which is another jsp file which contains jsf components.
    When i try to run the plain jsp file ... i get the following error...
    java.lang.IllegalStateException: Cannot forward after response has been committed
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:324)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
         at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:589)
         at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
         at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
         at org.apache.jsp.DynamicWebpart_jsp._jspService(DynamicWebpart_jsp.java:278)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
         at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:589)
         at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
         at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
         at org.apache.jsp.Webpart_jsp._jspService(Webpart_jsp.java:302)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
         at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:589)
         at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
         at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
         .......... so.....on........
    I saw the source code for the plain jsp file and the error is because of including the jsp file with jsf components.
    The contents of both the jsp file is given below
    Plain jsp file
    DWStaticJSP.jsp
    <%@ page import="java.util.*" %>
    <%@ page import="com.mirus.bi.jsp.*" %>
    <%@ page import="com.mirus.bi.util.Log" %>
    <% Log.logDbg("*******before calling the faces file from DWStatic :"+rSetting.getStaticJSPFileName()); %>
    // name of the file name : /faces/report_palm.jsp
    <jsp:include page="<%=rSetting.getStaticJSPFileName()%>" flush="false" >     
                   <jsp:param name="DMode" value="DBoard" />
    </jsp:include>
    Jsp file with JSF component
    it is stored in faces folder
    /faces/report_palm.jsp
    <%@ page contentType="text/html" %>
    <%@ page import="com.mirus.bi.util.Log" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://mirus.com/jsftaglib" prefix="my" %>
    <f:view>
              <h:outputText value="Store Name:" />
              <h:outputText value="#{palmReportUIHandler.currentStoreDisplay}" />
              <h:outputText value="Year:" />
              <h:outputText value="#{palmReportUIHandler.currentYear}" />
              <h:outputText value="Month:" />
              <h:outputText value="#{palmReportUIHandler.currentMonth}" />
    </f:view>
    The Configuration in the web.xml for faces Servlet is given below
    <servlet>
    <servlet-name>FacesServlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <!-- Faces Servlet Mapping -->
    <servlet-mapping>
    <servlet-name>FacesServlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    Does anybody know the solution to this problem
    Any kind of help will be highly appreciated.
    Pinkesh

    Hi Adam Winer,
    I want to try your solution.
    just wanted some more clarification .....
    So, let's say you have:
    DWStaticJSP.jsp: plain JSP
    report_palm.jsp: JSF JSP included by DWStaticJSP.jsp
    What you should do is use an URL of:
    /faces/DWStatic.jsp
    to access the outer plain JSP (yes, even though it's not really a faces page), and then have
    /faces/DWStatic.jsp include just plain /report_palm.jsp.
    In essence, the critical thing is that the FacesServlet wraps the entire request - FacesServlet cannot run
    for just a piece of the request.My question is where should i store the DWStatic.jsp file ... As u said i should acces it using /faces/DWStatic.jsp do i need to save it in the faces folder or just in the web app root.
    I cant save the DWStatic.jsp in the faces folder as this file is used for lot of different purpose in my company application.
    So can u give me a solution where in i can keep the DWStatic.jsp in the web-root folder and still try your solution
    Also is this the right setting for facesServlet in the web.xml.
    <servlet>
    <servlet-name>FacesServlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <!-- Faces Servlet Mapping -->
    <servlet-mapping>
    <servlet-name>FacesServlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    Whatever follows below this line is the describtion of the web appp structure which i have in my company.
    We have an application where in all the jsp files are stored in the web-app root folder.....
    I will be using alphabets like a.jsp ... b.jsp .... to keep the explanation small...
    I have an a.jsp file which includes a b.jsp file which in turn includes a c.jsp......
    Now we have started using JSF.....
    Now as a developer .... i want the c.jsp to include a d.jsp file which contains JSF components...
    The thing is i cant change the location of a.jsp, b.jsp and c.jsp......
    Can u tell me how i should call " a.jsp" ... imean the url so that the "d.jsp" file gets processed properly.
    Also where should i save all the jsp files and what config is requiered in the web.xml for your solution
    I thank you for your help
    Pinkesh

  • Is it possible to use several RootAppModules in one UIX Page?

    Hello,
    I want to use two RootAppModules in one uix page. The reason is, that application modules look at different database connections.
    I get this NullpointerException:
    java.lang.NullPointerException
         void oracle.cabo.data.jbo.ui.data.ViewObjectDataProvider.init(oracle.cabo.ui.RenderingContext)
         void oracle.cabo.ui.data.provider.TableDataProvider.init(oracle.cabo.ui.RenderingContext)
         void oracle.cabo.ui.data.provider.CachingDataProvider.init(oracle.cabo.ui.RenderingContext)
         void oracle.cabo.ui.data.provider.DataProviderStack.addDataProvider(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.data.DataProvider)
         void oracle.cabo.ui.LogicalNodeRenderingContext.addDataProvider(oracle.cabo.ui.data.DataProvider)
         void oracle.cabo.ui.composite.CompositeRenderingContext.addDataProvider(oracle.cabo.ui.data.DataProvider)
         void oracle.cabo.ui.laf.base.DataScopeRenderer.prerender(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.UINode)
         void oracle.cabo.ui.BaseRenderer.render(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.UINode)
    In my page I have two Registry entries and in my page content I open the second AppModuleScope after closing the first AppModuleScope.
    I am using JDeveloper 9.0.3.2. The documentation says it should be possible???
    Thanks,
    Christian

    I explored my problem yesterday and this are my results.
    Everything works fine, so using different root application modules, if I come from a simply navigation event handler.
    But when I use my own event handler which itself is enclosed in an root application module scope, the next page is not able to render data coming from different root application modules.
    The event handler of my source page looks like this:
    <event name="selectionEvent">
    <bc4j:findRootAppModule name="MyRootAppModule">
    <bc4j:findViewObject name="MySelectionVo">
    <instance class="test.MySelectionEventHandler"/>
    </bc4j:findViewObject>
    </bc4j:findRootAppModule>
    </event>
    Regards,
    Christian

  • FTP using GUI_UPLOAD file.Its showing error like 'FILE NOT AVAIABLE''.

    Hi Friends,
    I am calling a file by FTP using GUI_UPLOAD file.
    Its showing error like 'FILE NOT AVAIABLE''
    Below is my sample code.
    I_FILE = 'FTP://10.121.6.61/IPSM/FILE1.TXT'.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = I_FILE
        FILETYPE                      = 'ASC'
      TABLES
        DATA_TAB                      = IT_TABLE.
    Pls suggest.

    Hi ,
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = '
    172.19.125.2\flat\G1\meeting.txt'
      FILETYPE                      = 'ASC'
       HAS_FIELD_SEPARATOR           = '#'
    TABLES
        DATA_TAB                      = itab
    Try this .
    With Regards ,
    M.Sreeram .
    Edited by: sreeram manoharan on Feb 11, 2010 12:47 PM

  • Is it possible to use 3D files in layers?

    I have few 3D files that I convered from STL to PDF. I would like to create a 1 page PDF where I have the 3D files in layer, and the customer should be able to disable layers, and in that way see the progress. Is it possible to do with Acrobat Professional? If yes, how can I do it exactly? I'm attaching 2 files (originally I would like to put 4 3D models in each PDF).
    http://www.mediafire.com/?q2bi4fnz1i63p3f,iucaq8rh6cv4zra
    Thank you

    Either put all the meshes into the same U3D file, or load them as Resource objects using JavaScript. You can show/hide the parts and define a new view from the 3D toolbar, or use scripting to set the visibility of each node in the model (by searching for its name).
    Doing it without scripting is the easier option, but assumes you can assemble your models into a single U3D file. Scripting the entire thing is more complex but allows you to work with whatever U3D files you already have - we'll have a tutorial on how to do it later this month, but if you're a total newcomer to Acrobat JS you'll probably need to hire an expert.

  • Is it possible to use psd files as the title files in Premiere(convert or other)?

    I designed all of my credits in Photoshop, not thinking of course! I have roughly 50 credits and want to use the roll features inside of the titler in Premiere.

    And, if you want to add different Styles, just create say the actor's names on one Text Layer, and the role on another Text Layer. You can easily Align Layers to each other, so there is no problem there.
    You can also do several things at the character Level, but Layer Styles are not one of those. It will not be available, if on has Selected a character, or characters in a line of Text.
    Good luck,
    Hunt

  • How to use PSD files as a flash page

    I have read that I can use a psd file in Flash as a "page".
    At what version does this become possible. Can I take a multi-layer
    PSD file that was exported from a Flash program and make changes to
    it in Illustrator and then import it back in as a page? Where can I
    find information on what product versions I need for both me
    (developer) and my designer to use to facilitate this and how to do
    it, any limitations, etc.

    Here is a sample code to set a jpg image in a frame:
    import java.awt.*;
    import java.awt.event.*;
    public class ImageFrame extends Frame{   
    private ImageCanvas c;
    private Image i;
    ImageFrame()
         Toolkit tk = Toolkit.getDefaultToolkit();
         // This assumes you have an image named
         // "somePic.jpg" in the current directory.
         i = tk.getImage( "somePic.jpg" );
         c = new ImageCanvas( i );
         add( c );
         public static void main( String[] args ) {       
         ImageFrame f = new ImageFrame();
         f.addWindowListener( new WindowAdapter()
    public void windowClosing( WindowEvent e ) {                
         System.exit( 0 );
         f.setSize( 400, 400 );
         f.show();
    private class ImageCanvas extends Canvas {       
         Image i;
         public ImageCanvas( Image i ) {           
         this.i = i;
    public void paint( Graphics g ) {           
         g.drawImage( i, 0, 0, 400, 400, this );
    I hope I can have my dukes now :-)

  • Why this site used php files in all the pages?

    Hola
    I download my friend's site and ALL the pages are in a folder with the file name index.php ... WHY?
    Example;
    Name of folder; gallery
    Inside this folder, a file with the name index.php
    Name of folder; contact
    Inside this folder, a file with the name index.php
    It has an "includes" folder with files for ;
    header.php, footer.php, content.php and functions.php
    and so on.
    Now, this site has ONLY 7 pages, it's not like it's a monster site, so
    what is the purpose of using php in every single page?
    I have to tell you that my friend has a program call CKeditor and CKfinder to
    edited her website.
    Not sure if this is the reason why this site has been coded all of it with php files.
    I'm waiting impatiently for your responce

    >Now, this site has ONLY 7 pages, it's not like it's a monster site, so
    >what is the purpose of using php in every single page?
    The reason for using php extension or not has absolutely nothing to do with the size of the site. If the site uses dynamic pages, then the page need a dynamic page extension. Even sites without dynamic pages often use .php in anticipation of using them so the file names won't need to be changed down the road.
    Now, if your question is more about why they created separate directories for each page, it's probably so the url's can be accessed without including the file extension, Ex
    example.com/contact
    instead of
    example.com/contact.php

  • Is it possible to use two buttons on a master page to link to consecutive pages i.e. previous or next

    The easiest way to explain what I am attempting to achieve is to create a navigation template on the master page, with two identical arrows, one pinned to the left side, and one to the right, along with a basic 3 button navigation for; home - table of contents - end for example.
    The idea behind the arrows is that if on my "Plan" tab in Muse, I have all pages within the site in consecutive order from left to right and everytime I change the image that represents the previous or next, I have to go through every page, delete the source image, add the source image to every page (50+ pages) and then link each page individually to the next page in the order.
    Any help would be greatly appreciated.
    Jeff

    I produce a 300-page magazine twice a year that uses next/previous links. Unfortunately master items can't be edited on individual pages. My solution is to edit the HTML after the export. Too bad overrides don't work as they do in InDesign.
    In Muse you could create the arrows on an editable page, then copy/paste-in-place on the rest of the pages and edit the links on each page. Isolate them on a separate locked layer above the regular page content so they don't get moved accidentally.
    Julie

  • Is it possible to use Panasonic MTS file in premier pro cc?

    I am looking to buy a Mac but not sure if it is possible to use the files from my Panasonic HC-X900M AVCHD in Premier Pro cc

    Thank you, is that without converting? sorry should have said in my original question

  • Using JSF and Struts

    I am a bit of a newbie in terms of UI applications on the JEE platform, so I apologize up front if this question seems silly. I was wondering if someone could comment on the approach below. Is this something that's possible or am I barking up the wrong tree?
    We have a vendor application that is written using Struts. We want to add a section of our own pages to this application, but we would rather use a more strategic approach in our pages, so we would like to use JSF for those.
    The original web.xml file in the vendor app uses a dtd of version 2.3 as shown below:
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    When I use JSF, I use a DTD version of 2.5 as shown here:
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    The problem is that when I use version 2.3, the elements needed to support JSF are invalid. When I use 2.5, the elements needed to support struts are invalid.
    Could someone comment in that, if you had this vendor app and you needed to add your own pages, is it not possible to use JSF in this scenario or if you can, what is the best approach to resolving this issue?
    Thank you in advance

    First make sure that your application server supports Servlet API 2.5. Whether the desired Servlet API version is supported or not solely depends on the application server implementation and version used. For example Tomcat 5.5 is a Servlet API 2.4 implementation which only supports the API versions up to with 2.4. If you want to use Servlet API 2.5, then you obviously need a Servlet API 2.5 implementation, for example Tomcat 6.0.
    Consult the website and/or documentation of the application server in question.

Maybe you are looking for