Executing Child Taskflow Method from parent taskflow page

Hi All,
I have one issue with checking dirty data form Parent Taskflow button to check dirty data update in Child Taskflow page's view Object.
JDev version: 11.1.1.3
Scenario :
Outer Container page has back button which need to check wherethere child taskflow has dirty data update or not. Child Taskflow transaction is always create new transaction and non-shared. But from ControllerContext, the root am service still associated with other viewobjects i.e. is loaded in others tabs in that outer container page, which is also checking dirty data from another tabs' viewobject dirty data checking (I need to avoid this issue that's why not working for me with controller context). I am thining to execute the child taskflow method from parent page on back button to check dirty data update for that tabs' page only. For it, how can we get access child taskflow method from parent page with static region taskflow. Is there any solution to implement like this? thank you so much.
- Robin

Hi,
this should work:
1. child task flow has input parameter "parentBean" defined.
2. The child task flow has a managed bean "ChildBean" defined in pageFlowScope with a property "parentBean" with setter/getter.
3. the parentBean input parameter references (in its value roperty) #{pageFlowScope.childBean.parentBean}
4. The parent bean is configured on the parent view task flow (viewScope) and passed as a task flow binding input parameter. The parent bean has a boolean property "childFlowTransactionDirty"
This allows the child bean to invoke the parent bean childFlowTransactionDirty to tell it that the transaction is dirty. On the parent view, you would just check the parentBean state for this property.
Next is how you set the value on the parentBean from the childTaskFlow. One option is to use a RegionController on the PageDef file of ADF bound views in the child task flow.
public class MyRegionController implements RegionController {
    public MyRegionController(){
    public boolean refreshRegion(RegionContext regionContext) {      
     int refreshFlag = regionContext.getRefreshFlag();
      //get access to the ChildBean and its parentBean property. Then call
      //ControllerContext .... to check the transaction state
      //update the childFlowTransactionDirty property
      ((DCBindingContainer)regionContext.getRegionBinding()).refresh(refreshFlag);
      return true;
    @Override
    public boolean validateRegion(RegionContext regionContext) {
        regionContext.getRegionBinding().validate();
        return false;
    public boolean isRegionViewable(RegionContext regionContext) {
        return regionContext.getRegionBinding().isViewable();
    @Override
    public String getName() {
        return this.getClass().toString();
}Next: When users press the back button in the parent view, you call the ParentView bean childFlowTransactionDirty to check the child task flow transaction to be dirty or not
Frank

Similar Messages

  • Executing a shell script from a jsp page

    Hi,
    I'm facing a problem while executing a shell script from a jsp page.
    I'm using Runtime.exec() function.
    It's working fine for single statement scripts.But if the script consists of any database processing and some other processing statements,it's not returning the correct exit status of the process.
    Will u please help me in this.
    If there is any other ways to execute a shell script from a jsp page other than Runtime.exec() like RMI etc,.If so let me know.
    Thanks in advance.

    Hello,
    It's hard to help you but what you can do is listening to the outputs of your script, you should read the output stream and error stream and send them to the default console.
    Check this excellent article : http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html?page=4
    Best regards,
    Olivier.

  • Link to Child Webi report from Parent Webi report

    Hi All,
    I have child link for webi report in my parent webi report.
    But, when i click on URL for child report, its again asking for logon credentials.
    Is there any way to avoid asking logon credentials, instead it should pick credentials from parent.
    Please reply.
    Thanks,
    Bhanu

    Hi
          If your link contains different host that is, after clicking the link if you want to redirect to another document with another BO server that time you have to supply credential (Login info of this server).
    Case of same server no need to supply credential.
    Thanks

  • Issue in using SQL Authentication in child SSIS packages from Parent SSIS package.

    I am trying to provide SQL Authentication mode and credentials at parent package and I am using some child pachnages been called from this package.
    How can I resolve this to use SQL authentication.
    I am using 2008 Version
    Thanks
    Sreenath
    Sreenath G V

    Hi Sreenath,
    What issue did you encounter when run the parent package? It should work properly if the SQL Server Authentication is already enabled on the target SQL Server instance and the SQL account credentials are input correctly in the child package.
    You may encounter issue if you have enabled Package Configurations for the child pages that use SQL Server authentication and selected to expose the UserName and Password for the SQL Server connection. In this situation, the password won’t be exposed to
    the package configurations explicitly, hence, the Dtexec utility cannot fetch the password for the connection and fails the package execution. If it is the issue, you have to specify the password for the SQL Server account in the package configurations file.
    Regards,
    Mike Yin
    TechNet Community Support

  • Accessing a java class method from the jsp page.

    Hi im a beginner with jsp and im trying to find a way to access a method of my java class file in jsp page. After searching through the forums i tried to use the usebean tag. Im using apache to host the jsp file.Below is an excerpt of my code and the error message i got. What am i doing wrong? anyone know?
    <%@ page language="java" %>
    <jsp:useBean id="movies" class="movie.Movie" />
    <jsp:setProperty name="movies" property="*"/>
    <%
    movies.getStart("file:///C:/Video/Applications2/sun.mpg");
    response.setContentType("text/xml");
    %>
    exception
    org.apache.jasper.JasperException: Exception in JSP: /View.jsp:7
    4: <jsp:setProperty name="movies" property="*"/>
    5: <%
    6:
    7: movies.getStart("file:///C:/Video/Applications2/sun.mpg");
    8: response.setContentType("text/xml");
    9: %>
    Stacktrace:
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    javax.servlet.ServletException: javax/media/ControllerListener

    Hi thanks for responding. Ok i did look through and it was opening some gui. I still need the program to do server side processes so cant use an applet.but i dont need the gui so i revised it and removed the gui. also im using a servlet to call the class now yet i still have the same error. Any ideas?
    Below is the vid2jpg code minus the gui.
    import java.io.*;
    import java.awt.*;
    import javax.media.*;
    import javax.media.control.*;
    import javax.media.format.*;
    import javax.media.protocol.*;
    import java.awt.image.*;
    import javax.imageio.*;
    public class vid2jpg implements ControllerListener
         Processor p;
         Object waitObj = new Object();
         boolean stateOK = true;
         DataSourceHandler handler;
    int imgWidth;int imgHeight;
         Image outputImage;
         String sep = System.getProperty("file.separator");
         int[] outvid;
         int startFr = 1;int endFr = 1000;int countFr = 0;
         boolean sunjava=true;
         * Static main method
         public static void main(String[] args)
              if(args.length == 0)
                   System.out.println("No media address.");
                   new vid2jpg("file:///C:/Video/applications2/sun.mpg");     // or alternative "vfw://0" if webcam
              else
                   String path = args[0].trim();
                   System.out.println(path);
                   new vid2jpg(path);
         * Constructor
         public vid2jpg(String path)
              MediaLocator ml;String args = path;
              if((ml = new MediaLocator(args)) == null)
                   System.out.println("Cannot build media locator from: " + args);
              if(!open(ml))
                   System.out.println("Failed to open media source");
         * Given a MediaLocator, create a processor and start
         private boolean open(MediaLocator ml)
              System.out.println("Create processor for: " + ml);
              try
                   p = Manager.createProcessor(ml);
              catch (Exception e)
                   System.out.println("Failed to create a processor from the given media source: " + e);
                   return false;
              p.addControllerListener(this);
              // Put the Processor into configured state.
              p.configure();
              if(!waitForState(p.Configured))
                   System.out.println("Failed to configure the processor.");
                   return false;
              // Get the raw output from the Processor.
              p.setContentDescriptor(new ContentDescriptor(ContentDescriptor.RAW));
              TrackControl tc[] = p.getTrackControls();
              if(tc == null)
                   System.out.println("Failed to obtain track controls from the processor.");
                   return false;
              TrackControl videoTrack = null;
              for(int i = 0; i < tc.length; i++)
                   if(tc.getFormat() instanceof VideoFormat)
                        tc[i].setFormat(new RGBFormat(null, -1, Format.byteArray, -1.0F, 24, 3, 2, 1));
                        videoTrack = tc[i];
                   else
                   tc[i].setEnabled(false);
              if(videoTrack == null)
                   System.out.println("The input media does not contain a video track.");
                   return false;
              System.out.println("Video format: " + videoTrack.getFormat());
              p.realize();
              if(!waitForState(p.Realized))
                   System.out.println("Failed to realize the processor.");
                   return false;
              // Get the output DataSource from the processor and set it to the DataSourceHandler.
              DataSource ods = p.getDataOutput();
              handler = new DataSourceHandler();
              try
                   handler.setSource(ods);     // also determines image size
              catch(IncompatibleSourceException e)
                   System.out.println("Cannot handle the output DataSource from the processor: " + ods);
                   return false;
         //     setLayout(new FlowLayout(FlowLayout.LEFT));
    //          currPanel = new imgPanel(new Dimension(imgWidth,imgHeight));
         //     add(currPanel);
         //     pack();
              //setLocation(100,100);
         //     setVisible(true);
              handler.start();
              // Prefetch the processor.
              p.prefetch();
              if(!waitForState(p.Prefetched))
                   System.out.println("Failed to prefetch the processor.");
                   return false;
              // Start the processor
              //p.setStopTime(new Time(20.00));
              p.start();
              return true;
         * Sets image size
         private void imageProfile(VideoFormat vidFormat)
              System.out.println("Push Format "+vidFormat);
              Dimension d = (vidFormat).getSize();
              System.out.println("Video frame size: "+ d.width+"x"+d.height);
              imgWidth=d.width;
              imgHeight=d.height;
         * Called on each new frame buffer
         int nextframetime = 0;
    private void useFrameData(Buffer inBuffer)
    try
    if(inBuffer.getData()!=null) // vfw://0 can deliver nulls
    if(sunjava) // and with import javax.imageio.*;
    int frametimesecs = (int)(inBuffer.getTimeStamp()/1000000000);
    if(frametimesecs%10 == 0 && frametimesecs==nextframetime)
    nextframetime+=10;
    BufferedImage bi = new BufferedImage(outputImage.getWidth(null), outputImage.getHeight(null), BufferedImage.TYPE_INT_RGB);
    Graphics g = bi.getGraphics();
    ImageIO.write(bi, "png", new File("images"+sep+"image_"+(inBuffer.getTimeStamp()/1000000000)+".png"));
    catch(Exception e){}
         * Tidy on finish
         public void tidyClose()
              handler.close();
              p.close();
         * Block until the processor has transitioned to the given state
         private boolean waitForState(int state)
              synchronized(waitObj)
                   try
                        while(p.getState() < state && stateOK)
                        waitObj.wait();
                   catch (Exception e)
              return stateOK;
         * Controller Listener.
         public void controllerUpdate(ControllerEvent evt)
              if(evt instanceof ConfigureCompleteEvent ||     evt instanceof RealizeCompleteEvent || evt instanceof PrefetchCompleteEvent)
                   synchronized(waitObj)
                        stateOK = true;
                        waitObj.notifyAll();
              else
              if(evt instanceof ResourceUnavailableEvent)
                   synchronized(waitObj)
                        stateOK = false;
                        waitObj.notifyAll();
              else
              if(evt instanceof EndOfMediaEvent || evt instanceof StopAtTimeEvent)
                   tidyClose();
         * Inner classes
         * A DataSourceHandler class to read from a DataSource and displays
         * information of each frame of data received.
         class DataSourceHandler implements BufferTransferHandler
              DataSource source;
              PullBufferStream pullStrms[] = null;
              PushBufferStream pushStrms[] = null;
              Buffer readBuffer;
              * Sets the media source this MediaHandler should use to obtain content.
              private void setSource(DataSource source) throws IncompatibleSourceException
                   // Different types of DataSources need to handled differently.
                   if(source instanceof PushBufferDataSource)
                        pushStrms = ((PushBufferDataSource) source).getStreams();
                        // Set the transfer handler to receive pushed data from the push DataSource.
                        pushStrms[0].setTransferHandler(this);
                        // Set image size
                        imageProfile((VideoFormat)pushStrms[0].getFormat());
                   else
                   if(source instanceof PullBufferDataSource)
                        System.out.println("PullBufferDataSource!");
                        // This handler only handles push buffer datasource.
                        throw new IncompatibleSourceException();
                   this.source = source;
                   readBuffer = new Buffer();
              * This will get called when there's data pushed from the PushBufferDataSource.
              public void transferData(PushBufferStream stream)
                   try
                        stream.read(readBuffer);
                   catch(Exception e)
                        System.out.println(e);
                        return;
                   // Just in case contents of data object changed by some other thread
                   Buffer inBuffer = (Buffer)(readBuffer.clone());
                   // Check for end of stream
                   if(readBuffer.isEOM())
                        System.out.println("End of stream");
                        return;
                   // Do useful stuff or wait
                   useFrameData(inBuffer);
              public void start()
                   try{source.start();}catch(Exception e){System.out.println(e);}
              public void stop()
                   try{source.stop();}catch(Exception e){System.out.println(e);}
              public void close(){stop();}
              public Object[] getControls()
                   return new Object[0];
              public Object getControl(String name)
                   return null;
    below is the servlet code.
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class ShowMovie extends HttpServlet {
    String rootURL="http://127.0.0.1:8080/Video/";
    public void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
         //String movie=request.getParameter("movie");
         String movie ="son";
         getStart(movie);
              response.sendRedirect(rootURL+"View.jsp");
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
         public void getStart(String url){
              new vid2jpg(url);
    this is the error from the server. Im using tomkat 5
    exception
    javax.servlet.ServletException: Servlet execution threw an exception
    root cause
    java.lang.NoClassDefFoundError: javax/media/ControllerListener
         java.lang.ClassLoader.defineClass1(Native Method)
         java.lang.ClassLoader.defineClass(Unknown Source)
         java.security.SecureClassLoader.defineClass(Unknown Source)
         org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1812)
         org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
         java.lang.ClassLoader.loadClassInternal(Unknown Source)
         ShowMovie.getStart(ShowMovie.java:31)
         ShowMovie.processRequest(ShowMovie.java:14)
         ShowMovie.doGet(ShowMovie.java:22)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.

  • Executing SAP GUI Script From a Web Page

    I have an issue when trying to execute some javascript (sap gui script) from a webpage. 
    When the javascript is executed I get the message:
    automation server unable to create object. 
    However, this exact same javascript when placed in a text file and double-clicked executes just fine through the windows scripting host. 
    Does anyone have an example of gui script code executing from a webpage?  Or any ideas on why it isn't working from the webpage?  Both scenarios should be executing the code on the local machine through WSH.
    Below is the javascript as well as the webpage executing the javascript:
    SAPGUI SCRIPT
    if (typeof(application) == "undefined")
       sapgui      = GetObject("SAPGUI");
       application = sapgui.GetScriptingEngine;
    if (typeof(connection) == "undefined")
       connection = application.children(0);
    if (typeof(session) == "undefined")
       session = connection.children(0);
    if (typeof(WScript) != "undefined")
       WScript.connectObject(session, "on");
       WScript.connectObject(application, "on");
    session.findById("wnd[0]").maximize();
    session.findById("wnd[0]/tbar[0]/okcd").text = "/nzsd1067";
    session.findById("wnd[0]").sendVKey(0);
    session.findById("wnd[0]/usr/ctxtVBAK-KUNNR").text = "6343";
    session.findById("wnd[0]").sendVKey(0);
    WEBPAGE
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
         <head>
              <title></title>
              <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
              <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
              <! INPUT PARAMETER SETTINGS:
              To Push data to Siebel or SAP the appropriate
              field below must be set = TRUE.
              Pop_SAP
              Pop_Siebel
              SIEBEL INPUT PARAMETER: When
              Pushing data to a Siebel screen the Query_Type should be set based on the type
              of lookup that is requested.
              Query_Type = 'SAP' -presents a screen based on a customer SAP Id.
              Query_Type = 'SR' -presents a screen based on a Service Request.
              Query_Type = '' or null -presents a search screen to locate the proper contact in Siebel
              APP_SAP_ID -SAP customer Id
              APP_SR_NUM -Siebel Service Request Number
              >
    <SCRIPT LANGUAGE="VBScript">
    Sub LoadContact()
            'Siebel Application Object
            Dim siebApp 'As SIEBELHTMLLib.ISiebelHTMLApplication
            Dim siebSvcs 'As SIEBELHTMLLib.ISiebelService
            Dim siebOutputPropSet 'As SIEBELHTMLLib.ISiebelPropertySet
            Dim siebInputPropSet 'As SIEBELHTMLLib.ISiebelPropertySet
            Dim bool 'As Boolean
            Dim errCode 'As Integer
            Dim errText 'As String
            Dim QueryType 'As String
         Dim PopSAP 'As String
         PopSiebel = "TRUE"
         If PopSiebel = "TRUE" Then
              QueryType = "SAP"
              If QueryType = "null" Then
                   QueryType = ""
              End If
                 'Create The SiebelHTML Object      
                 set siebApp = CreateObject("SiebelHTML.SiebelHTMLApplication.1")  
                 If Not siebApp Is Nothing Then
                     'Create A New Property Set
                     set siebInputPropSet = siebApp.NewPropertySet
                     set siebOutputPropSet = siebApp.NewPropertySet
                     If Not siebInputPropSet Is Nothing Then
                         siebInputPropSet.SetProperty "ANI", "9738986011"
                         siebInputPropSet.SetProperty "SAP_ID", "0000516616"
                         siebInputPropSet.SetProperty "SR_NUM", "null"
                         siebInputPropSet.SetProperty "Interaction_ID", "168608840053"
                         siebInputPropSet.SetProperty "Query_Type", QueryType
                     Else
                         errCode = siebApp.GetLastErrCode
                         errText = siebApp.GetLastErrText
                             MsgBox "Could not Create Siebel Property Set: " & errCode & "::" & errText
                     End If
                     'Get A Siebel Service
                     set siebSvcs = siebApp.GetService ("TAWBS")
                     If Not siebSvcs Is Nothing Then
                         siebSvcs.InvokeMethod "TAWPresentAccount", siebInputPropSet, siebOutputPropSet
                  Else
                         errCode = siebApp.GetLastErrCode
                         errText = siebApp.GetLastErrText
                   MsgBox "Could not Get Siebel Service: " & errCode & "::" & errText
                         End If
                     set siebApp = Nothing
                 End If
                 set siebInputPropSet = Nothing
                 set siebOutputPropSet = Nothing
                 set siebSvcs = Nothing
         End If 
    End Sub
    </SCRIPT>
    <SCRIPT LANGUAGE="javascript">
    function loadSAP()
         if (typeof(application) == "undefined")
              sapgui      = GetObject("SAPGUI");
              application = sapgui.GetScriptingEngine;
         if (typeof(connection) == "undefined")
              connection = application.children(0);
         if (typeof(session) == "undefined")
              session = connection.children(0);
         if (typeof(WScript) != "undefined")
              WScript.connectObject(session, "on");
              WScript.connectObject(application, "on");
         session.findById("wnd[0]").maximize();
         session.findById("wnd[0]/tbar[0]/okcd").text = "/nzsd1067";
         session.findById("wnd[0]").sendVKey(0);
         session.findById("wnd[0]/usr/ctxtVBAK-KUNNR").text = "0000516616";
         session.findById("wnd[0]").sendVKey(0);
    } // end
    </SCRIPT>
    </head>
         <body onload="loadSAP()">
              <H3><FONT face="Arial" size="5">Raytheon Integration Screen</FONT></H3>
              <HR style="WIDTH: 882px; HEIGHT: 8px" color="#3366cc" SIZE="8">
              <form id="ValidForm" onsubmit="LoadContact(); return false;" language="jscript">
                   <FONT face="Arial">Load Siebel Screen</FONT> <! <input name="Text1" TYPE="TEXT"
                   SIZE="10" ID="Text1"> <input name="Submit" TYPE="submit" VALUE="Submit" ID="Submit1">
              </form>
              <form id="Form1" onsubmit="loadSAP(); return false;" language="javascript">
                   <FONT face="Arial">Load SAP Screen</FONT>    <! <input
                   name="Text2" TYPE="TEXT" SIZE="10" ID="Text2"> <input name="Submit" TYPE="submit" VALUE="Submit" ID="Submit2">
              </form>
         </body>
    </html>

    Hi Bernd,
    the following code works in VBS. If you run saplogon.exe you'll get a message box saying '/app'.
    Set Wrp = CreateObject ("SapROTWr.SapROTWrapper")
    Set SapGui = Wrp.GetROTEntry ("SAPGUI")
    Set application = sapgui.GetScriptingEngine
    MsgBox application.id
    I haven't tried it on a web page, but I don't see why it shouldn't work there. Ok, maybe the MsgBox is command is not available.
    Best regards,
    Christian

  • How to remove  child query link from parent query for RRI

    Hi Floks,
    Long back we have created one RRI report(which is having parent child relation).Currently i wanted to remove this link or relation (i.e remove child report) between them.
    I tried From  t-code RSBBS but i could n't.  Please give me some inputs to fix this.
    Regards,
    Satya.

    Hi Satya,
    In the TCode RSBBS ,did u try deleting the assignments itself ..........save it and transport it ...........
    Rgds
    SVU123

  • How to call a class method from a jsp page?

    Hi all,
    i would like to create a basic jsp page in jdev 1013 that contains a button and a text field. When clicking the button, i would like to call a method that returns a string into the text field.
    The class could be something like this:
    public class Class1 {
    public String getResult() {
    return "Hello World";
    How do i go about this?
    Thanks

    Here is a sample:
    HTML><HEAD><TITLE>Test JDBC for Oracle Support</TITLE></HEAD><BODY>
    <%@ page import="java.sql.*, oracle.jdbc.*, oracle.jdbc.pool.OracleDataSource" %>
    <% if (request.getParameter("user")==null) { %>
    <FORM method="post" action="testjdbc.jsp">
    <H1>Enter connection Parameters</H1>
    <H5>Please enter host name:</H5><INPUT TYPE="text" name="hostname" value="localhost" />
    <H5>Please enter port number:</H5><INPUT TYPE="text" name="port" value="1521" />
    <H5>Service nanme:</H5><INPUT TYPE="text" name="service" value="XE" />
    <H5>Please enter username: </H5><INPUT TYPE="text" name="user" />
    <H5>Please enter password</H5><INPUT TYPE="password" name="password" />
    <INPUT TYPE="submit" />
    </FORM>
    <% } else { %>
    <%
    String hostName = request.getParameter("hostname");
    String portNumber = request.getParameter("port");
    String service = request.getParameter("service");
    String user = request.getParameter("user");
    String password = request.getParameter("password");
    String url = "jdbc:oracle:thin:" + user + "/" + password + "@//" + hostName + ":" + portNumber + "/" + service;
    try {
    OracleDataSource ods = new OracleDataSource();
    ods.setURL(url);
    Connection conn = ods.getConnection();
    // Create Oracle DatabaseMetaData object
    DatabaseMetaData meta = conn.getMetaData();
    // gets driver information
    out.println("<TABLE>");
    out.println("<TR><TD>");
    out.println("<B>JDBC Driver version</B>");
    out.println("</TD>");
    out.println("<TD>");
    out.println(meta.getDriverVersion());
    out.println("</TD>");
    out.println("</TR>");
    out.println("<TR><TD>");
    out.println("<B>JDBC Driver Name</B>");
    out.println("</TD>");
    out.println("<TD>");
    out.println(meta.getDriverName());
    out.println("</TD>");
    out.println("</TR>");
    out.println("<TR><TD>");
    out.println("<B>JDBC URL</B>");
    out.println("</TD>");
    out.println("<TD>");
    out.println(meta.getURL());
    out.println("</TD>");
    out.println("<TABLE>");
    conn.close();
    } catch (Exception e) {e.printStackTrace(); }
    %>
    <%-- end else if --%>
    <% } %>
    </BODY>
    </HTML>

  • Calling multiple BSP pages from parent BSP page

    Hi ,
    I have created 2 BSP pages and i want to call the 2nd BSP page from the 1st BSP page depending upon the user's company code. Please help me on this .
    I would really appreciate you quick response on this.
    Regards,
    Sanjeev

    Hi,
    Do you want to have both pages displayed at the same time?
    What about a popup or (i)frames?
    If not, what about navigation to the second page if a certain value is filled in:
    if var eq 'value'.
    navigation->goto_page('page2.htm' ).
    endif.
    Eddy
    Discover the new S(D)N search plugin for Internet Explorer 7 AND Firefox 2 in this <a href="/people/eddy.declercq/blog/2006/11/13/the-beloved-in-sweet-harmony log</a>

  • How call javascript method from parent window to iframe

    hi....
    i need to call javascript a method which located in iframe..
    in my java script file i used like this.
    window.frames[0].getHtml();
    it will working in IE but mozilla is not supporting
    pls help me..
    thanks
    Edited by: fsfsfsdfs on Nov 7, 2008 1:02 AM

    Sorry, Javascript is not Java and for sure not JSF.
    Repost the question at a forum devoted to Javascript.
    There are ones at [webdeveloper.com|http://www.webdeveloper.com] and [dynamicdrive.com|http://www.dynamicdrive.com].
    I can give you at most one hint: [DOM reference|https://developer.mozilla.org/en/DOM].
    Good luck.

  • Calling a css user created method from jspx page in ADF faces

    Hi all,
    Can anyone help me out to solve an issue calling a css user created method from a jspx page.
    Note: The css method is not the default css method. It needs to be called using 'styleClass' attribute in any tag.
    Thanks
    Neha

    Hi,
    I am not an expert in CSS so I don't know what a css method is. However, CSS can be applied to components via EL accessing a managed bean that returns the sytle text
    Frank

  • Executing a shell script from a java program

    Hi,
    I'm facing a problem while executing a shell script from a jsp page.
    I'm using exec() function.
    It's working fine for single statement scripts.But if the script consists of any database processing and some other processing statements,it's not returning the correct exit status of the process.
    Will u please help me in this.
    If there is any other ways to execute a shell script from a jsp page other than Runtime.exec().If so let me know.
    Thanks in advance.

    I think this shud workMaybe - but it is wrong! Why do you create aReader
    and then read bytes which are turned into a String
    without worrying about whether or not the bytes area
    String and without worrying about the character
    encoding if the bytes do represent characters and
    without worrying about how many bytes wereactually
    read.
    Also, both you and the OP should read, digest and
    follow the advice given in
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-
    traps.htmlI dont care if it is wrong. This code works for me.
    We are here to solve problems not to find which post
    is wrong.It is wrong! You are posting bad advice that is very wrong! It may work for you but it is wrong in general! WRONG WRONG WRONG.
    If you have a solution then post it I did post a solution! The reference I gave will explain to you and the OP exactly how it should be done.
    rather then
    posting rude comments.I was not rude! I was explaining just some of what was wrong!

  • Execution of Perl Script from HTML DB page.

    Hi All,
    I have a Perl script which takes 5 parameters and fetches data from one database and insert that data into my database table which is a master table for my project.
    Is there any way to execute the perl script from a HTMLDB page by passing parameters.
    Pls. provide me inputs if any.
    Thanks & Regds.
    Kumaraswamy RJ.

    Check out MOS note 1515609.1.
    Regards,
    - Loc

  • Calling a remote method from a link

    I've been programming in Java for a few years, but I'm quite new at using JSP. I have a Java class that has methods to do some manipulations in a remote database. I'd like to invoke one of its public methods from a JSP page when I click on the correct link.
    The "link" would act the same way as a button, the only thing that it would do is calling the method from my class when clicked on. Example: There's a link that says "Generate XML file" and when I click on it, the method generateXML() from the Java class is called. No need to display anything, just do the treatment. Maybe make a refresh of the page afterwards, but that's it. I do not know how to pull this off, help would be greatly appreciated.
    Thanks,
    Julien

    call your java class function in a jsp and link it.
    For ex:
    generatexml.jsp ---> call your function in this jsp
    And make the link like this
    GenerateXML
    You can make it as a pop up and close the popup window once the process is over

  • DataControl not participating in frame transaction parent child taskflow

    JDEV: 11.1.2.4.0
    My application has a parent and multiple child taskflows as tabs.  one of the child page has appModule method binding which modifies entities in the appModule. call works without any issues first time but subsequent calls displaying following message and DataControlFrame commit losing the entity changes.
    <DataControlFrameImpl> <updateDataControlPoliciesForTransaction> DataControl, xxxxxxAppModuleDataControl, is not participating in a frame transaction that was started after the DataControl was created.  The DataControl will not be notified of frame commit, rollback, or other transctional operations.
    Appreciate your help.
    cheers,
    Saran.

    Check the task flows transaction options 20. Design - Transactions and Data Controls - YouTube and  the data control scope http://www.youtube.com/watch?v=SHfilCAVzTs&list=PLJz3HAsCPVaSemIjFk4lfokNynzp5Euet&index=15
    Timo

Maybe you are looking for

  • How to reinstall (comppletely fresh) iPhone OS 3.1.2

    Hi, I have some issues with my iPhone and as per the instructions of my carrier, I need to reinstall iPhone OS from scratch. They offered me the service to reinstall OS but I didn't had backup of my phone and hence I want to do it at home now. I sear

  • String Manipulation in JSP

    Gidday All, I am converting an application from PHP to JSP in PHP I am able to explode a strings parts into an array. For example my string = "1.21.32.45.232"; I want jsp to return an array containing the parts of this string separated by dots into a

  • Migration from xi to Xi

    HI, We have completed devolopment in our Xi Server,Now I need to Migrate the same to the Client System. Is there any way for doing this in Xi Thanks , P.Srinivasa

  • After migration the MaxDB 7.6 down the performance after some hours of use

    Hi, After many tests i put the version of MaxDB 7.6 in production, after some hours of use, now i'm getting a strange slow down in performance of the database, looking at the knldiag file i cant find anything that can show me the reason. any idea how

  • CS3 Pro 8.1 won't open

    I installed the CS3 pkg with Acrobat Pro 8.1. Whenever I try to open a pdf a box pops up and says Pro 8.1 can't open without another CS3 module open. When I open one it still gives me the same pop up. Now I can't open any pdf's on the web. I loaded R