Re: having a bean go from page to page

I have a bean that I put information into on the first page, it retrieves data from a database when the user clicks submit, and then the next page should pull the information from the bean, to set the text fields.
<jsp:useBean id=".." class=".." /> doesn't work, I get an error:
If I do this:
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page">
<jsp:useBean id="PersonServer" class="edu.usf.acomp.epic.server.persons.NamsPersonServer" scope="session"/>
I get Exception Details: org.apache.jasper.JasperException
/Page1.jsp(2,144) Could not add one or more tag libraries.
If I try placing the <jsp:useBean .../> before the <jsp:root ...
then I get
Exception Details: org.apache.jasper.JasperException
/Page1.jsp(3,5) Invalid standard action
How can I make this work, where beans will persist through the session.
Thank you.

It won't work on the first page, when I try to set the session initially. All of the jsp pages are created from within Studio Creator.
There should be some way to state that this bean is going to be maintaining state from page to page, within this session, but I don't see how to do that using Studio Creator.
I shouldn't have to edit the faces.config file by hand though, if that is the case then there is a bug with Studio Creator, but I will try it.
Thanx for the idea.

Similar Messages

  • My Apple Macbook hard drive crashed and I had to replace. Now trying to reload CS5 and having issues. When I click download from Adobe download page, a screen pops up saying "Access Denied". I have serial number, but don't even get to a page to enter. Ple

    My Apple Macbook hard drive crashed and I had to replace. Now trying to reload CS5 and having issues. When I click download from Adobe download page, a screen pops up saying "Access Denied". I have serial number, but don't even get to a page to enter. Please help…Thanks!!

    Make sure you have cookies enabled and clear your cache.  If it continues to fail try using a different browser.
    You can also download the trial version of the software thru the page linked below and then use your current serial number to activate it.
    Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site and have cookies enabled in your browser or else the download will not work properly.
    CS5: http://prodesigntools.com/all-adobe-cs5-direct-download-links.html

  • Having a problem calling and displaying a page,from outside the class?? :-(

    Hi,
    I seem to be having a problem displaying a class from a different page, it is called but all i get is a blank page, even though when i compile and run it by itself it works fine?? I call it like:
    if(source == animateVMS)
                   {ImageSequence i = new ImageSequence();
                    i.setSize(Toolkit.getDefaultToolkit().getScreenSize());
                    i.show();
                    this.dispose();
                   }but it only displays a blank screen?? I think it is sumthing to do with the contructor of the following class?
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class ImageSequence extends JFrame implements ActionListener
       {    static ImageSequence controller = new ImageSequence();
                 ImageSQPanel imageSQPanel;   
            static int frameNumber = -1;   
            int delay;   
            Thread animatorThread;   
            static boolean frozen = false;   
            Timer timer;    
            //Invoked only when this is run as an application.   
        public static void main(String[] args) {
              Image[] waving = new Image[10];        
              for (int i = 1; i <= 10; i++) {
                    waving[i-1] = Toolkit.getDefaultToolkit().getImage("images/T" + i + ".gif");
              JFrame f = new JFrame("ImageSequenceTimer");
              f.addWindowListener(new WindowAdapter() {
                 public void windowClosing(WindowEvent e) {               
                                System.exit(0);           
             //ImageSequence controller = new ImageSequence();
             controller.buildUI(f.getContentPane(), waving);
             controller.startAnimation();
             f.setSize(Toolkit.getDefaultToolkit().getScreenSize());       
             f.setVisible(true);    }    
             //Note: Container must use BorderLayout, which is the    
             //default layout manager for content panes.   
             void buildUI(Container container, Image[] dukes) {
                          int fps = 10;        
             //How many milliseconds between frames?       
             delay = (fps > 0) ? (1000 / fps) : 100;        
             //Set up a timer that calls this object's action handler       
             timer = new Timer(delay, new TimerListener());       
             timer.setInitialDelay(0);       
             timer.setCoalesce(true);        
             JPanel buttonPanel = new JPanel();        
             JButton play = new JButton("PLAY");       
             play.addActionListener(this);
             JButton stop = new JButton("STOP");       
             stop.addActionListener(this);
             JButton back = new JButton("Back");        
             back.addActionListener(this);
             imageSQPanel = new ImageSQPanel(dukes);       
             container.add(imageSQPanel, BorderLayout.CENTER);        
             container.add(buttonPanel, BorderLayout.SOUTH);       
             buttonPanel.add(play);       
             buttonPanel.add(stop);               
             buttonPanel.add(back);   
          public void start() {       
             startAnimation();   
          public void stop() {       
             stopAnimation();   
          public synchronized void startAnimation() {
                       if (frozen) {            
          //Do nothing. The user has requested that we            
          //stop changing the image.       
                         else {           
          //Start animating!           
          if (!timer.isRunning()) {               
          timer.start();           
          public synchronized void stopAnimation() {       
          //Stop the animating thread.       
          if (timer.isRunning()) {           
          timer.stop();       
       /**     * Listener for the play, stop, restart, and back buttons.     */   
       public void actionPerformed(ActionEvent e) {       
       JButton button = (JButton)e.getSource();       
       String label = button.getActionCommand();       
       if("PLAY".equals(label))           
       start();       
       if("STOP".equals(label))           
       stop();
       if("BACK".equals(label))
       {varsity v = new varsity();
        v.setSize(Toolkit.getDefaultToolkit().getScreenSize());
        v.show();
        this.dispose();
       /**     *  Listener for the animation timer.     */   
       private class TimerListener implements ActionListener {       
         public void actionPerformed(ActionEvent e)        {            
       //Advance the animation frame.           
       frameNumber++;             
       //Display it.           
       imageSQPanel.repaint();       
        class ImageSQPanel extends JPanel {       
        Image dukesWave[];        
        public ImageSQPanel(Image[] dukesWave) {           
        this.dukesWave = dukesWave;         }        
        //Draw the current frame of animation.       
        public void paintComponent(Graphics g) {           
        super.paintComponent(g);
        //paint background            
        //Paint the frame into the image.           
        try {               
        g.drawImage(dukesWave[ImageSequenceTimer.frameNumber%10],0, 0, this);            
        catch (ArrayIndexOutOfBoundsException e) {               
        //On rare occasions, this method can be called                
        //when frameNumber is still -1. Do nothing.               
        return;           
    }Could someone please try to help me fix my problem!
    Kind Regards
    RSH

    cheers that did the trick!! : - )
    I was wondeing if you could help me with one more thing, its about getting rid of an old page after you press a button to go to a new page! this.dispose doesnt wrk below:
            JButton back = new JButton("BACK");
            back.addActionListener(new ActionListener()       
                  public void actionPerformed(ActionEvent e)           
                       VowelmSound s = new VowelmSound();
                        s.setSize(Toolkit.getDefaultToolkit().getScreenSize());
                        s.show();
                        //this.dispose();           
             });        and this is main
    public static void main(String[] args)
    JFrame draw = new punjabidraw();   
    draw.setVisible(true);   
    }I was wondering what I could use to get rid of the old page??
    Kind Regards
    Raj

  • Having trouble with the syntax when trying to only print some random pages from a multi page documen

    Having trouble with the syntax when trying to only print some random pages from a multi page document.  So far in the Print Selection Area, I have chosen "pages" and then typed 1,3-4 so as NOT to print page 2 but this does not seem to work. - Help Please

    In my updated firefox, the print button does NOT open print preview first.
    How can I access print preview function?

  • Keeping the values in Request bean across more than 2 pages

    Hi...,
    I have created a Bean with request scope & want to access it across 3 different pages.
    From the 1st page once I submit the values , I do a forward (redirect=no) to the second page where I can print the values . From the 2nd page I then do a forward to the 3rd page (redirect=no) & I loose the values.
    How do I keep the request bean active across multiple pages. But I don't want to make it session as this is a form to enter values & our users might open multiple forms as the same time.
    Regards,
    Praveen

    Hi....Balu,
    We are having a issue when using ajax on top of JSF . Setting the variable hidden is somehow not working.
    Secondly, what is requestMap & where can I find the information.
    Regards,
    Praveen

  • I am having trouble removing songs from my iPhone.  i have unchecked songs in the library on my mac, but they still show up on phone after syncing.  how do I remove them?

    I am having trouble removing songs from my iPhone.  i have unchecked songs in the library on my mac, but they still show up on phone after syncing.  how do I remove them?

    Hi asims01,
    Welcome to the Support Communities!
    The information below may be able to answer your questions about how to delete songs from your iPhone:
    Deleting songs downloaded to your device
    Tap the Music app.
    Tap More > Songs at the bottom.
    Scroll or search for the song you would like to delete from your device.
    Swipe right to left on the song, and then tap Delete.
    Note: You must be in Artists, Songs, or Albums view to delete songs from your device. Deleting from a playlist won't remove a song from your iOS device.
    Also, this information can be found on page 64 of the iPhone User Guide for iOS 7
    http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf
    Remove a song from iPhone. Tap Songs, swipe the song, then tap Delete. The song is deleted from iPhone, but not from your iTunes library on your Mac or PC, or from iCloud.
    If you have iOS 7, this will delete the song from local storage, but the song will still appear with a cloud symbol in the Music app, as you've noticed. To hide the iTunes in the Cloud purchases, navigate to Settings > iTunes & App Store, and disable "Show All: Music”
    There may be a few orphaned songs on your iPhone that were partially downloaded or corrupted in some way. If that is the case, you can erase all of the music from your phone.  Follow the instructions below and select the Music app under Usage:
    iPhone, iPad, and iPod: Understanding capacity
    http://support.apple.com/kb/ht1867
    I hope this information helps ....
    - Judy

  • How do I pass input values from a html page to a jsf page

    hi,
    In my project,for front view we have used html pages.how can I get input values from that html page into my jsf page.for back end purpose we have used EJB3.0
    how can I write jsf managed bean for accessing these entities.we have used session facade design pattern and the IDE is netbeans5.5.
    pls,help me,very urgent
    thanx in advance

    Simplest way is to rewrite html page into jsf page.
    You can use session bean in your managed bean like this:
    import javax.naming.Context;
    import javax.naming.InitialContext;
    public class ManagedBean {
    private Context  ctx;
    private Object res;
    // session bean interface
    private Service service;
              public ManagedBean() {
                try{
                     ctx = new InitialContext();
                     res = ctx.lookup("Service");
                     service = (Service) res;
               catch(Exeption e){
    }Message was edited by:
    m00dy

  • How do I call a 10g report from a jsp page securly?

    How can I call a report from a jsp page securly? We are migrating from 10g forms to J2EE, and we want to keep using our reports. In forms we were able to do this using a cookie. How can I pass a users credentials to reports without the user having to connect to the database? Single Sign-on isn't an option either.
    Thanks,
    Jim

    Hi Jim,
    If you want to pass the user credentials to the report dynamically, then SSO (Single Sign-On) is the only option I can think of.
    If the user credentials can be hard-coded, then the following 2 solutions are possible:
    1. Use cgicmd.dat file, and write the user credentials in the file.
    2. In your report JSP itself, you could write the following:
    <rw:report id="report" parameters="userid=scott/tiger@mydb">
    Navneet.

  • OAF : Could not open PDF from Self Service Page or Jdeveloper.

    Hi Friends,
    We are on R12 Applications.
    Appreciate any help.
    Requirement :
    1. Open the PDF from Self Service Page.
    Error :
    Adobe Reader Could Not Open the PDF because it is either not a supported file type or the file is damaged.
    Below is my Controller and AM code
    ======================
    Controller Code
    ==========
    /*===========================================================================+
    | Copyright (c) 2001, 2005 Oracle Corporation, Redwood Shores, CA, USA |
    | All rights reserved. |
    +===========================================================================+
    | HISTORY |
    +===========================================================================*/
    package XXX.oracle.apps.ak.xml.webui;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
    import oracle.xml.parser.v2.XMLNode;
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import javax.servlet.ServletOutputStream;
    import javax.servlet.http.HttpServletResponse;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.server.OADBTransactionImpl;
    import oracle.apps.xdo.XDOException;
    import oracle.apps.xdo.oa.schema.server.TemplateHelper;
    import oracle.cabo.ui.data.DataObject;
    import oracle.jbo.XMLInterface;
    * Controller for ...
    public class XMLIntegrationCO extends OAControllerImpl
    public static final String RCS_ID="$Header$";
    public static final boolean RCS_ID_RECORDED =
    VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
    public static final int DEPTH = 4;
    public static final int APP_ID = 20003;
    public static final String APP_NAME = "XBOL";
    public static final String TEMPLATE_CODE ="Emp_Template";
    public static final int BUFFER_SIZE = 32000;
    * Layout and page setup logic for a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModuleImpl am= (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
    am.invokeMethod("initEmpVO");
    am.invokeMethod("getEmpDataXML");
    * Procedure to handle form submissions for form elements in
    * a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModuleImpl am= (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
    String event = pageContext.getParameter("event");
    System.out.println("XXX : Event "+event);
    if("GenerateReport".equals(event))
    // Get the HttpServletResponse object from the PageContext. The report output is written to HttpServletResponse.
    DataObject sessionDictionary = (DataObject)pageContext.getNamedDataObject("_SessionParameters");
    HttpServletResponse response = (HttpServletResponse)sessionDictionary.selectValue(null,"HttpServletResponse");
    try {
    ServletOutputStream os = response.getOutputStream();
    // Set the Output Report File Name and Content Type
    String contentDisposition = "attachment;filename=EmpReport.pdf";
    response.setHeader("Content-Disposition",contentDisposition);
    response.setContentType("application/PDF");
    // Get the Data XML File as the XMLNode
    XMLNode xmlNode = (XMLNode) am.invokeMethod("getEmpDataXML");
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    xmlNode.print(outputStream);
    ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray());
    ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();
    //Generate the PDF Report.
    TemplateHelper.processTemplate(
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
    APP_NAME,
    TEMPLATE_CODE,
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
    inputStream,
    TemplateHelper.OUTPUT_TYPE_PDF,
    null,
    pdfFile);
    // Write the PDF Report to the HttpServletResponse object and flush.
    byte[] b = pdfFile.toByteArray();
    response.setContentLength(b.length);
    os.write(b, 0, b.length);
    os.flush();
    os.close();
    catch(Exception e)
    response.setContentType("text/html");
    throw new OAException(e.getMessage(), OAException.ERROR);
    pageContext.setDocumentRendered(true);
    AM CODE
    ======
    package subba.oracle.apps.ak.xml.server;
    import java.io.ByteArrayOutputStream;
    import oracle.apps.fnd.common.MessageToken;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.OAViewObject;
    import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
    import oracle.apps.fnd.framework.test.inputscanner.server.EmpVOImpl;
    import oracle.help.common.xml.*;
    import oracle.jbo.XMLInterface;
    import oracle.xml.parser.v2.XMLDocument;
    import oracle.xml.parser.v2.XMLElement;
    import oracle.xml.parser.v2.XMLNode;
    // --- File generated by Oracle ADF Business Components Design Time.
    // --- Custom code may be added to this class.
    // --- Warning: Do not modify method signatures of generated methods.
    public class testXMLAMImpl extends OAApplicationModuleImpl {
    /**This is the default constructor (do not remove)
    public testXMLAMImpl() {
    /**Sample main for debugging Business Components code using the tester.
    public static void main(String[] args) {
    launchTester("XXX.oracle.apps.ak.xml.server", /* package name */
    "testXMLAMLocal" /* Configuration Name */);
    public void initEmpVO()
    EmployeeVOImpl vo = getEmployeeVO1();
    if(vo == null)
    MessageToken errTokens[] = {
    new MessageToken("OBJECT_NAME", "EmployeeVO1")
    throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", errTokens);
    } else
    vo.executeQuery();
    public void getEmpDataXML()
    try {
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    OAViewObject vo = (OAViewObject)findViewObject("EmployeeVO1");
    ((XMLNode) vo.writeXML(4, XMLInterface.XML_OPT_ALL_ROWS)).print(outputStream);
    System.out.println(outputStream.toString());
    catch(Exception e)
    throw new OAException (e.getMessage());
    /**Container's getter for EmployeeVO1
    public EmployeeVOImpl getEmployeeVO1() {
    return (EmployeeVOImpl)findViewObject("EmployeeVO1");
    }

    Try the OA Framework Forum

  • Why does Acrobat suddenly not work on my Mac (won't open pdf files from a web page), yet I can open them from my iPhone? Everything worked fine yesteray.

    Hello:
    I have a Mac running OS 10.8.5 and I use Acrobat Pro and Acrobat Reader. Today for some reason, any time I try and access a pdf file from a web page, it won't open. I get a blank window. PDF files already on my computer open fine and I can create PDF files from Word docs, but I can't download or view any pdf file from any web page. Strangely, PDF files on web pages open just fine on my iPhone.
    I checked that both my copy of Acrobat Pro and Acrobat Reader are up-to-date. They are.
    I checked that my copy of Firefox is up-to-date. It is. And nothing changed with Firefox within the last 24 hours.
    I am a humble computer end-user. I am baffled as to why this would suddenly not work. I have not changed any settings, etc. Any help or suggestions would be greatly appreciated.

    Thank you.
    I checked your instructions you sent and as far as I can tell all of my settings, etc for Firefox (plugin updates and preferences) are correct but I am having the same problem.
    However, everything works in Safari. I don't have time to attempt to diagnose why Firefox no longer works. I will just switch to Safari.
    Many thanks.
    Charles
    Charles Deister
    (503) 949-5762
    [email protected]<applewebdata://81CB4171-226F-49DF-BD59-A38A7360B3FB/[email protected]>
            PO Box 5032
         Salem, OR 97304
    http://www.pilotstrat.com<http://www.pilotstrat.com/>
    This transmission (including any attachments) may contain confidential information, privileged material, or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

  • How to call a struts action from a JSF page

    I am working on a small POC that has to do with struts-faces. I need to know how to call a struts ".do" action from a JSF page..
    Sameer Jaffer

    is it not possible to call a action from the faces submit button and/or the navigation?
    This a simple POC using struts-faces exmaples.
    Here is my struts-config and faces-config file.
    <struts-config>
    <data-sources/>
    <form-beans>
      <form-bean name="GetNameForm" type="demo.GetNameForm"/>
    </form-beans>
    <global-exceptions/>
    <global-forwards>
      <forward name="getName" path="/pages/inputname.jsp"/>
    </global-forwards>
    <action-mappings>
      <action name="GetNameForm" path="/greeting" scope="request" type="demo.GreetingAction">
       <forward name="sayhello" path="/pages/greeting.jsp"/>
      </action>
    </action-mappings>
    <controller>
        <set-property property="inputForward" value="true"/>
        <set-property property="processorClass"
                value="org.apache.struts.faces.application.FacesRequestProcessor"/>
    </controller>
    </struts-config>faces-config
    <faces-config>
    <managed-bean>
      <managed-bean-name>calculate</managed-bean-name>
      <managed-bean-class>com.jsftest.Calculate</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <managed-bean>
      <managed-bean-name>GetNameForm</managed-bean-name>
      <managed-bean-class>demo.GetNameForm</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
      <from-view-id>/calculate.jsp</from-view-id>
      <navigation-case>
       <from-outcome>success</from-outcome>
       <to-view-id>/success.jsp</to-view-id>
      </navigation-case>
      <navigation-case>
       <from-outcome>failure</from-outcome>
       <to-view-id>/failure.jsp</to-view-id>
      </navigation-case>
    </navigation-rule>
    <navigation-rule>
      <from-view-id>/inputNameJSF.jsp</from-view-id>
      <navigation-case>
       <to-view-id>/pages/greeting.jsp</to-view-id>
      </navigation-case>
    </navigation-rule>
    </faces-config>in my inputNameJSF.jsp (faces page)
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <%@ taglib prefix="s" uri="http://struts.apache.org/tags-faces" %>
    <!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>Say Hello!!</title>
    </head>
    <body>
    Input Name
    <f:view>
         <h:form >
              <h:inputText value="#{GetNameForm.name}" id = "name" />
              <br>
              <h:commandButton id="submit"  action="/greeting.do" value="   Say Hello!   " />
         </h:form>
    </f:view>
    </body>
    </html>I want to be able to call the struts action invoking the Action method in the that returns the name
    package demo;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    public class GreetingAction extends org.apache.struts.action.Action {
        // Global Forwards
        public static final String GLOBAL_FORWARD_getName = "getName";
        // Local Forwards
        private static final String FORWARD_sayhello = "sayhello";
        public GreetingAction() {
        public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
            String name = ((demo.GetNameForm)form).getName();
            String greeting = "Hello, "+name+"!";
            request.setAttribute("greeting", greeting);
            return mapping.findForward(FORWARD_sayhello);
    }Edited by: sijaffer on Aug 11, 2009 12:03 PM

  • How to call a bean method from javascript event

    Hi,
    I could not find material on how to call a bean method from javascript, any help would be appreciated.
    Ralph

    Hi,
    Basically, I would like to call a method that I have written in the page java bean, or in the session bean, or application bean, or an external bean, from the javascript events (mouseover, on click, etc...) of a ui jsf component. I.e., I would like to take an action when a user clicks in a column in a datatable.
    Cheers,
    Ralph

  • Invoking BPEL Process from a JSP Page 500 Internal Server Error

    Hi,
    I try to invoke a BPEL Process from a JSP Page and receive the following error. I just pasted the example from the Oracle PM Developer's Guide tutorial. Previously I deployed the CreditRatingService BPEL Process.
    Can anyone help me, please?
    D.
    Here is a sequence from my JSP / and the error I get:
    String ssn = request.getParameter("ssn");
    if(ssn == null)
    ssn = "123-12-1234";
    String xml = "<ssn xmlns=\"http://services.otn.com\">"
    + ssn + "</ssn>";
    Locator locator = new Locator("default","welcome1");
    IDeliveryService deliveryService =
    (IDeliveryService)locator.lookupService
    (IDeliveryService.SERVICE_NAME );
    // construct the normalized message and send to oracle bpel process manager
    NormalizedMessage nm = new NormalizedMessage( );
    nm.addPart("payload", xml );
    NormalizedMessage res =
    deliveryService.request("CreditRatingService", "process", nm);
    Map payload = res.getPayload();
    out.println( "BPELProcess CreditRatingService executed!<br>" );
    out.println( "Credit Rating is " + payload.get("payload") );
    500 Internal Server Error
    java.lang.Exception: Erstellen von "ejb/collaxa/system/DeliveryBean"-Bean nicht erfolgreich. Es wurde folgende Exception gemeldet: "javax.naming.NameNotFoundException: ejb/collaxa/system/DeliveryBean not found
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.rmi.RMIServerContext.lookup(RMIServerContext.java:207)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.ApplicationContext.unprivileged_lookup(ApplicationContext.java:257)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.ApplicationContext.lookup(ApplicationContext.java:197)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:279)
         at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)
         at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:83)
         at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:53)
         at _InvokeBP._jspService(_InvokeBP.java:65)
         [InvokeBP.jsp]
         at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.3.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
    Message was edited by:
    user603180
    Message was edited by:
    user603180
    Message was edited by:
    user603180
    Message was edited by:
    user603180
    Message was edited by:
    user603180
    Message was edited by:
    user603180
    Message was edited by:
    user603180
    Message was edited by:
    user603180
    Message was edited by:
    user603180

    Here is the solution:
    Properties props = new Properties();
    props.setProperty("orabpel.platform", "oc4j_10g");
    props.setProperty("java.naming.factory.initial",
    "com.evermind.server.rmi.RMIInitialContextFactory");
    props.setProperty("java.naming.provider.url", "ormi://localhost/orabpel");
    props.setProperty("java.naming.security.principal", "oc4jadmin");
    props.setProperty("java.naming.security.credentials", "welcome1");
    and several jars have to be added to the project:
    Orabpel.jar , Orabpel-common.jar, oc4j*.jar,
    %ANT_HOME%\lib\ant.jar;
    %ANT_HOME%\lib\xercesImpl.jar;
    %ANT_HOME%\lib\xml-apis.jar;
    %AXIS_HOME%\lib\axis.jar;
    %AXIS_HOME%\lib\axis-ant.jar;
    %AXIS_HOME%\lib\commons-discovery.jar;
    %AXIS_HOME%\lib\commons-logging.jar;
    %AXIS_HOME%\lib\jaxrpc.jar;
    %AXIS_HOME%\lib\log4j-1.2.8.jar;
    %AXIS_HOME%\lib\saaj.jar;
    %AXIS_HOME%\lib\wsdl4j.jar;

  • Download to ppt functionality from a bsp page

    download to ppt functionality from a bsp page .
    can it be done.

    Hi Saad,
    yes that can be done.
    A tricky way that only works in IE is to use ActiveX-Scripting and script the Powerpoint. This way I cannot recommend as you need to lower the security settings of IE and it is pretty cumbersome to do and very slow if you generate large ppt's.
    The way I'd suggest would be to use the new 2007 pptx-format. This file format is basicaly a bunch of XML-files that are packed in the zip-format. As of 640 you can use the class cl_abap_zip to handle zip-files.
    To generate ppt's
    - Check in a empty pptx-file into the mime repository.
    - Get this template and open it using the cl_abap_zip class.
    - Adjust the respective XML-files by using the ixml-library.
    - Update the adjusted XML-files in the zip-archive.
    - Render the zip to an xstring and send this one as response to the browser.
    At the very beginning you need to get used to the OPEN XML-format but checking the web or simply testing it by saving files in the pptx-format and having a look at the content should bring you close to the solution pretty fast.
    If you use older versions of Office you can install the FileFormatConverter from Microsoft to get the new formats supported (I think down to Office 2000). But be aware that if the converter asks you to update you most probably have an error in your generated/adjusted file so the error message is missleading and not helpfull to find the error.
    Hope that helps.
    Best Regards
    Michael

  • How to get the view tree from a jsp page

    Hi,
    I would like to get the view tree of a jsp page. The idea is to dynamically include the content of one or more jsf pages into a UIPanel during a "value changed" event.
    So, i could get from an arbitrary page like ...
    <%@ taglib uri="http://java.sun.com/jsf/core"   prefix="f" %>
    <%@ taglib uri="http://java.sun.com/jsf/html"   prefix="h" %>
    <h:panelGrid columns="3" width="100%" rowClasses="gridTop">
        <h:outputText value="#{someBean.someValue}"/>
    </h:panelGrid>... the corresponding List of components...
    Any idea?

    Thanks for your answer Jayashri,
    The view tree can be retrieved by this way during the page is parsed, for example with scriptlets <%%>, or once the page has been parsed (the view has been builded and attached to the FacesContext).
    My problem is to get the view tree of a page from another Context.
    The idea is to build a dynamic layout of some pages that represents "views". I can imagine this like the concept of perspectives and views of Eclipse IDE.
    Because of the difficulty to build it with pure JSP (cannot use dynamic ID nor JSTL ForEach), I try to build it into my backing bean and to bind it with a <h:panelGrid/>. By this way, I'm not able to use the <jsp:include/> tag as I usually did to include some content into the view tree.
    Sorry for my english ;)
    - Renaud.

Maybe you are looking for

  • How can I easily transfer file (pdf, doc , xls) from one iPad to another. The files are in iBooks collections?

    I have just purchased a new iPad2.  We have an iPad and would like to transfer files that are in iBooks as pdf and doc to the new iPad2 without e-mailing each as a attachment.  Any ideas?

  • DVI-I Compatible?

    I understand that all of these monitors are DVI digital compatible which is known as DVI-D. Though I am curious if it also analog compatible (VGA). This is known as DVI-I digital and analog. Of course, there's only a DVI input on these monitors. If i

  • IMovie wants QT 7.0.4..but I have it, won't startup?

    I had to re-install my OS X os at an Apple Store. When I try to startup iMovie, it says it wants QT 7.0.4. I have QT Player 7.0.4 (it's upgrade to Pro, BTW). I don't get it. Do I have to run some program like Cocktail to clear permissions?

  • Problem with ADF table in  Create Insert Mode

    Hi All, i am using jdev version 11.1.1.5.0. i have create one adf table in create insert mode. table have composite primary key (divn applyno,applydt,sno,frloc,toloc,frdt,todt). now when i create a row in this table it is running fine. but when i cha

  • How can i use SUM aggregate in select query?

    HI, GURUS, How can i use SUM function in Select Query and i want to store that value into itab. for ex: TABLES: vbap. types: begin of ty_vbap,        incluse type vbap,        sum type string,       end of ty_vbap. data: i_vbap type TABLE OF ty_vbap,