Call a portlet in another provider

Hi all,
How can I call a portlet from my portlet if they are in a different provider (because are different page).
I have 2 provider and some portlet. I would like to call a portlet that is in another provider.
Es.:
provider1 -> portlet1, portlet2, ...
provider2 -> portlet4, portlet5, ...
portlet2 has to call portlet5
Thanks a lot
Fabio
null

Fabio,
Could you elaborate a little more on why you would want to call a portlet from a portlet? It seems that you might want to encapsulate the content you place in portlets in something like a JavaBean, that you can call from multiple places, and just reuse that component where necessary.

Similar Messages

  • How to call a servlet from another servlet

    hi everybody,
    i have a problem, i have to call one servlet from another one.
    Everything works on my pc, but when i install the application on the customer's server i got an error about an Uknown URL followed by the name of the machine.
    Wjat i do is the folloqing :
    String urlString = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+"/"+servletName;
    URL url = new URL(urlString);
    HttpURLConnection conn = (HttpURLConnection) url.openConnection();
    the variable servletName is the name of the servlet i have to call.
    Is there another way to call the servlet ?
    All the servlet are installed in the same server.
    Any suggestion ?
    Cheers.
    Stefano

    Sweep is correct about requestDispatcher being another approach for inter-servlet delegation; the only issue that i recall with this approach is that it defaults the method of the destination servlet to the one it was called from...for example, calling servlet2 from within servlet1.post() resulted in the dispatcher attempting to utilize servlet2.post() - i believe that i searched for a parameterize solution to no avail :( (ended up handling the request by placing a "fake" doPost() in servlet2 that simply called servlet2.doGet())
    however, if your application is functioning correctly on your pc/webserver then the problem may be external to servlet communication (e.g. client webserver's ports not configured or blocked, missing runtime classes, etc.)
    my suggestion would be to set aside the programmatic concerns for the moment - what is the response if you open a browser on a client's machine and access the URL in question (i.e. http://clientserver:port/stefanoServlet)? If it will not respond to access in this manner then it certainly won't when your application calls for it.
    It's possible that there is a coding error but, given the info supplied, i'd start examining the environment, first. Let us know if you have any luck with the test i recommended or not (please provide abundant detail). Or, if you've found the solution then you may want to post back with a quick blub so the next person knows how to escape the trap.
    D

  • Call a portlet

    Hi all,
    How can i call a portlet from my portlet if they are in a different provider (because are different page).
    Thank a lot
    Fabio

    Fabio,
    Could you elaborate a little more on why you would want to call a portlet from a portlet? It seems that you might want to encapsulate the content you place in portlets in something like a JavaBean, that you can call from multiple places, and just reuse that component where necessary.

  • Moved house, existing line with another provider.....

    Hi
    So my situation is as follows:
    1) Moved into a new house with an active phone line that is apparently with TalkTalk according to 150 or 151, whichever it is. At least when you dial 150 or 151 it says welcome to TalkTalk.
    2) Old house had a BT line and I want to transfer the account. Phoned BT and was told an engineer will have to visit.
    Now given that the current line in my new house is still active with TalkTalk, what will the engineer do when they visit? I don't want a new line installed, I simply want the TalkTalk line switched into a BT line. But I suspect that because the existing line is not in my name the engineer won't be able to "convert it".
    Thoughts?

    Thanks for the replies.
    A bit more information:
    Found out that when you call the TalkTalk line it goes to someone else's house so I can make calls but not receive them. Phoned TalkTalk and they said it was likely the line just wasn't disconnected properly when the last tenants moved out. Apparently they no longer see a valid TalkTalk line at the address.
    So as far as I can tell when the engineer visits they should be able to correct the confusion and just "convert" our current line into a BT line. I'm just worried there could still be a problem, like the engineer not being willing to make the change if they think the line is with another provider.
    Any more thoughts?

  • Pass a parameter from one ASP portlet to another ASP portlet

    We are trying to pass a parameter from one ASP portlet to one or more other ASP portlets.
    We are using PDK-URL Services and have created a provider.xml for each of the ASPs and the ASPs work as normal within the portlets created.
    We are now trying to use PDK-URL Services to pass parameters to a portlet. As a first step we set up a portlet which displayed an ASP, this ASP (and the portlet) expected a parameter. If the parameter value is left blank the Portlet displays a default page (not the ASP page) for passing in the parameter i.e. a text box and a submit button. If the parameter is entered and submitted the ASP page returns and the results of the query are based on the parameter typed in.
    As the next step what we are now trying to do is pass a parameter from one ASP portlet to another.
    The Documentation says that there are two types of parameters Qualified where Parameters will be passed only to the initiating portlet i.e., portlet which contains them and Unqualified where all portlets will be affected by the parameter sent by any portlet.
    Very little information was available on this, apart from the one liner explanation of each (above).
    When we tested the above, using the PDK sample ("ParamCustomizationPortlet") portlets it doesn't appear to be doing anything in particular.
    Any ideas on the best approach to passing parameters from one ASP portlet to another?
    Thanks for your time.

    We can visualize Qualified and Unqualified parameters only when there are multiple portlet instances in a single page. For example, add two instances of ASP portlet you have created, and submit from one portlet. You can see the other portlet also receiving this parameter, provided you are using unqualified parameters.
    Thanks,
    Amjad.

  • I want to call a variable in another application

    Greetings,
    I asked previously a similar question but I didn't got a solution to my problem, so i'll explain in details my problem:
    I have a Java File called Senior.java, and another one called Properties.java
    Properties.java is a dialog box that I can open from the main application Senior.java using Tools > Properties command.
    Now, in Properties I have Radio buttons, and In Senior I have a JButton that upon clicking should run a process depending on what I choose in the properties dialog box.
    One solution I thought about is to retun a number for every Radio Button and store this number in an integer variable "action".
    Now I want from Senior to know the value of action.
    Some code from properties.java:
    public class Properties extends JFrame
    private int action;
       public Properties()
       { // Creating the Radio Buttons and set visible ............................         
       public static void main( String args[] )
          Properties application = new Properties();
          application.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
        private class RadioButtonHandler implements ItemListener
            public void itemStateChanged( ItemEvent event )
                if (event.getSource()==adfButton)
                    action = 1;
                else if ( event.getSource()== normalButton )
                    action = 2;
                else if ( event.getSource()== hiddenButton )
                    action = 3;
    /*     public int getAction()
            return action;
    Any Suggesstions
    Thanks in Advanced
    M.Tleis                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    sorry, the previous compilation error is due to a mistake I did in my code.
    the actual problem is, when I change private to public, the main class of Properties.java will be executed, for this reason when I click the JButton in my main software ( Senior.java ) the properties dialog box will appear. while I only need the value of the varialbe action, without running the whole Properties.java

  • Calling a report from another report

    Hi,
    Is there any way ,(any built in ) to call a report from another report in Report Builder 2000 and Report Builder 6i.
    Regards

    Try to call report from report by a button in the calling report:
    1     In the Layout Model view, click in the tool palette. Note
    2     Click and drag a rectangle.
    3     Double-click the button object to display the Property Palette.
    4     Under the Button Label node, set the Label Type property to either Text or Icon:
    n     If the button label is text, set the Text property to the text you want to appear on the button.
    n     If the button label is an icon, set the Icon Name property to the name of the file containing the icon (the file must reside in the directory specified by the UI_ICON environment variable).
    5     Under the Button Behavior node, set the Type property to PL/SQL.
    6     Double-click the PL/SQL Trigger property value field.
    7     In the PL/SQL Editor, define the PL/SQL for the action trigger or format trigger when the button is clicked in the formatted report.
    8     Set other properties as desired.
    9     To activate the button, run the report, then display it in the Runtime Previewer.

  • Calling a Report from another Report.....URGENT

    Hi,
    I am calling a report from another report using hyperlink. I want that this new report should come in a new page.
    Can any body help me where i can set this property, so that the new report will open in a new page.
    Thanks in advance
    Regards
    Kamal

    Try to call report from report by a button in the calling report:
    1     In the Layout Model view, click in the tool palette. Note
    2     Click and drag a rectangle.
    3     Double-click the button object to display the Property Palette.
    4     Under the Button Label node, set the Label Type property to either Text or Icon:
    n     If the button label is text, set the Text property to the text you want to appear on the button.
    n     If the button label is an icon, set the Icon Name property to the name of the file containing the icon (the file must reside in the directory specified by the UI_ICON environment variable).
    5     Under the Button Behavior node, set the Type property to PL/SQL.
    6     Double-click the PL/SQL Trigger property value field.
    7     In the PL/SQL Editor, define the PL/SQL for the action trigger or format trigger when the button is clicked in the formatted report.
    8     Set other properties as desired.
    9     To activate the button, run the report, then display it in the Runtime Previewer.

  • Iam using iphone 4s and Iphone 5s with same apple ID but my network is different and whenever Iam getting call in i5s and in my both handset same calls are coming. Please provide me solutions

    Iam using iphone 4s and Iphone 5s with same apple ID but my network is different and whenever Iam getting call in i5s and in my both handset same calls are coming. Please provide me solutions

    On both devices, go to Settings>Facetime and turn off cellular calls.
    ~Lyssa

  • How to call one  JSFF into another JSFF

    Hi,
    I am very new to ADf. Could you please tell me how to call one JSFF inside another JSFF. We have a common pop-up written in one JSFF. Is there any best approach to get this pop-up into other JSFF.
    Thanks in Advance.
    Regards
    Narasimha

    If you want to resue the jsff code, make use of bounded task flow with page fragment and then use it as a region.
    For more details you can refer: http://docs.oracle.com/cd/E21764_01/web.1111/b31974/taskflows_regions.htm
    One more:
    http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_57/jdtut_11r2_57.html

  • How to call one program from another program

    Hai,
      How to call one program through another program.
    Example.
       I have two programs 1.ZPROG1 2. ZPROG2.
    When i execute ZPROG1 at that time it should call ZPROG2.

    Hi ,
    u can use submit statement to call a program .
    DATA: text       TYPE c LENGTH 10,
          rspar_tab  TYPE TABLE OF rsparams,
          rspar_line LIKE LINE OF rspar_tab,
          range_tab  LIKE RANGE OF text,
          range_line LIKE LINE OF range_tab.
    rspar_line-selname = 'SELCRIT1'.
    rspar_line-kind    = 'S'.
    rspar_line-sign    = 'I'.
    rspar_line-option  = 'EQ'.
    rspar_line-low     = 'ABAP'.
    APPEND rspar_line TO rspar_tab.
    range_line-sign   = 'E'.
    range_line-option = 'EQ'.
    range_line-low    = 'H'.
    APPEND range_line TO range_tab.
    range_line-sign   = 'E'.
    range_line-option = 'EQ'.
    range_line-low    = 'K'.
    APPEND range_line TO range_tab.
    SUBMIT report1 USING SELECTION-SCREEN '1100'
                   WITH SELECTION-TABLE rspar_tab
                   WITH selcrit2 BETWEEN 'H' AND 'K'
                   WITH selcrit2 IN range_tab
                   AND RETURN.
    regards,
    Santosh thorat

  • How to call one EJB in another EJB?

    How to call one EJB in another EJB? Please explain with some example code.

    To refer a Ejb from another Ejb include <ejb-ref> element in ejb-jar.xml
    <session>
    <ejb-name>EjbA</ejb-name>
    <ejb-ref>
    <ejb-ref-name>EjbB</ejb-ref-name>
    <ejb-ref-type>Entity</ejb-ref-type>
    <home>com.ejb.EjbBHome</home>
    <remote>com.ejb.EjbB</remote>
    </ejb-ref>
    </session>
    Include a <reference-descriptor> in weblogic-ejb-jar.xml
    <weblogic-enterprise-bean>
    <ejb-name>EjbA</ejb-name>
    <reference-descriptor>
    <ejb-reference-description>
    <ejb-ref-name>EjbB</ejb-ref-name>
    <jndi-name>com.ejb.EjbBHome</jndi-name>
    </ejb-reference-description>
    </reference-descriptor>
    </weblogic-enterprise-bean>
    In EjbA Bean class refer to EjbB with
    a remote reference to EjbB.
    InitialContext initialContext=new InitialContext();
    EjbBHome EjbBHome=(EjbBHome)
    initialContext.lookup("com.ejb.EjbBHome");
    EjbB ejbB=EjbBHome.findByPrimaryKey(primarykey);

  • How to call one .SWF from another?

    How do I call one .SWF from another. I built a very beefy
    base .SWF, and want to add music overlay, and an intro slide show
    to the exsting Flash animation, but put it in a second .FLA/.SWF
    file. How do I call one from the other?
    This will be embedded in an HTML file but I assume this is
    superfluous to my question.
    F.Z.

    I think you should open that Another SWF (FLA),
    and add some actionscript..
    For example, you could create a movie clip, and write
    actionscript in the
    first keyframe:
    loadMovie("
    http://www.somewebpage.com/movie.swf",
    this);
    "FredZimmerman" <[email protected]> wrote in
    message
    news:ftnjas$mj5$[email protected]..
    > How do I call one .SWF from another. I built a very
    beefy base .SWF, and
    > want
    > to add music overlay, and an intro slide show to the
    exsting Flash
    > animation,
    > but put it in a second .FLA/.SWF file. How do I call one
    from the other?
    >
    > This will be embedded in an HTML file but I assume this
    is superfluous to
    > my
    > question.
    >
    > F.Z.
    >

  • How do I add multiple portlets to one provider?

    Hello,
    I'm using JDeveloper 10g. Created an Application Workspace which holds several projects (java/jsp porlets). I would like all of these portlets to be under one provider rather than registering a provider for each project. Do I choose one project and add information to the provider.xml file for my other portlets? If anyone could help, it would be appreciated...
    TIA

    [Matthew:  think I understand. Is it safe to use a provider for each portlet? If I had a hundred portlets would it effect system hardware requirements with multitude of providers running? Now I'm trying to determine if I should combine each project or if I should leave them seperate. Thanks again...]
    Matthew - Would be good if you could hit "reply" to the last concerned post. I had some trouble trying to find whether you had posted any more questions ;-)
    here's my response to your last post:
    There is definitely a performance hit when you have just one portlet under one provider. First - You will have to undergo 100 provider registrations and I'm sure that can drive anybody crazy ;-)
    Secondly, for each provider, there is a ProviderDefinition object created in memory. In your case, there would be 100 such objects created at any point in time (assuming 100 are in use). had you classified portlets under say 10 such providers, you will definitely save memory. For each instance of the provider registration, you have one ProviderInstance object created. So even if all these 100 providers are registered once on Portal A, you will have 100 instances of this object. When registered on portal B, 100 more will be created. This will be sufficiently less if you had just 10 top level providers.
    As a best practice, you might want to group related portlets under one provider e.g. If you are having a bunch of SAP, Oracle, PeopleSoft portlets, you could create three top level providers and just add those portlets accordingly. Just an example though. the classification is totaly based on what binds two portlets together and is something that will have to be decided by you.
    Just my 0.02$
    Regards,
    Abhinav

  • Problem regarding calling a program from another program

    Hi,
    I have a requirement that i need to call a program from another program and in that case the called program should be executed with a value in the selection screen coming from the first program..i.e.
    a standard report to view the user Notes for annual leave is RPTARQDBVIEW. Can we create a report to display all the users under a manager as a hyperlink and run the report(RPTARQDBVIEW), with the pernr of the employee selected
    Regards,
    saumik

    Submitting a report using ranges for select-options
    * Define range for ltak-tanum
    RANGES: r_tanum FOR ltak-tanum.                                                                               
    * Read values from database tabel into the range
    * These values are later used for select-options in the report
    SELECT * FROM ltak                                                   
      WHERE lgnum =  w_lgnum AND           "Warehouse number/complex    
            vbeln = w_screen1000-io_vbeln.       "Transfer order number
      MOVE ltak-tanum TO r_tanum-low.                                    
      MOVE 'I' TO r_tanum-sign.                                          
      MOVE 'EQ' TO r_tanum-option.                                       
      APPEND r_tanum.                                                    
    ENDSELECT.                                                                               
    * Submit report with range                  
    SUBMIT zmm00100 WITH p_tanum IN r_tanum.   
    or
    Submitting a report from ABAP with selection criterias
      TYPES: tt_selection TYPE STANDARD TABLE OF rsparams.
      DATA: l_iblnr        TYPE st_iblnr,
    *     Define internal table and work area for select-options
            l_selection    TYPE rsparams,
            li_selection   TYPE tt_selection.
    * Create selectIon table
      LOOP AT gi_iblnr INTO l_iblnr.
        CLEAR l_selection.
        l_selection-selname  = 'IM_IBLNR'.    "Option name
        l_selection-kind     = 'S'.           "S= select options P=Parameters
        l_selection-sign     = 'I'.           "Sign
        l_selection-option   = 'EQ'.          "Option
        l_selection-low      = l_iblnr-iblnr. "Value
        APPEND l_selection TO li_selection.
      ENDLOOP.
    * Submit report
      SUBMIT rm07idif WITH SELECTION-TABLE li_selection AND RETURN.
    Regards,
    Prabhudas

Maybe you are looking for

  • Can't send email from .Mac alias address

    I have been using an email alias with a .mac account ever since aliases were enabled. I am able to get mail sent to that address, but there is no way I can send mail from it. Its not an option in Mail apps "From" list. Even when I reply to an email s

  • Shellshock Vulnerability

    Are any of the Adobe Creative Cloud services vulnerable to the Bash / Shellshock bug?

  • Java Embedding Activity in 11.1.1.2

    hi all, For using a java embedding avtivity in my BPEL Composite project in 11g (11.1.1.2) wat are the JAR files i need to include in my project (in 10g fo using java embedding activity we use jar files like orabpel.jar....).?? wen i deploy a process

  • How to set google.co.uk instead of google Canada

    I sue Firefox and Google is my default search engine. I live in the UK and want Google to start seacrhing for UK entries. However it starts searching in Canada. How do I change it to search the UK?

  • Regd PDF Printing from Web Dynpro

    Hi, We are using NW04s SP10 . I need to show the data coming from RFC as PDF in Web Dynpro. The RFC is returning String as output after SAP Script is converted to PDF . Below is the code i have written in WD for opening as PDF. When i try to open it