Calling struts application within a portlet

Can anyone explain step wise procedure to call struts application within a portlet.or refer any tutorial for this.

Amir,
this might be because you are using the plain struts taglibs. you should use the pdk-struts taglibs. more specifically, you should use the pdk-struts-html taglib instead of the struts-html lib, as the latter renders URLs for a struts application whereas you need portal-enabled urls, which are provided by the pdk-struts-html lib.
You can either change the taglib reference in your web.xml file to map the plain sruts-html.tld to the pdk-struts-html.tld (don't forget to include it and its jarfile in your deployment file), or you can add the library to every jsp page and replace the <html:whatever> tags by <pdk-html:whatever> tags. (or your other favourite prefix).
Regards,
Benjamin

Similar Messages

  • How to call a struts application in a portlet

    How to call a struts application in a portlet. I have two different ear's. In one ear I have my struts application and in one war i have a struts portlet. In the struts portlet provider.xml defaultAction tag can i call the action class .do which in other ear (ie my struts application ear).Can anyone suggest me whether this is the right way or else can u suggest me with some other thing.
    Waiting for ur responses.
    Thanks and Regards,
    Dhanu.

    Hi Dhanu,
    Your Struts Portlet will not be avialble via a URL as it is completely dependent on Oracle Portal Environment. The Provider for the Portlet is alone available via a URL - you would have registered your Portlet using the URL of the Provider.
    Your Struts application, which does not rely on the Oracle Portal Environment, is defeitely accessible from a URL. It's just another web application that uses the popular Struts Framework.
    Hence, you can use the URL ( the starting point - a JSP, Servlet, etc. ) of your Struts Application to "call" the application in your Struts Portlet. I don't think you need to fiddle with the parameters in Provider.xml.
    Moreover, <defaultAction> in Provider.xml should have the URL of a Struts Action Class - the mapping in the
    struts-config.xml should map the .do action to the right JSP file.
    You can have a look at Metalink Note : 331069.1 for a good insight into the <defaultAction> Tag.
    Regards,
    Sandeep

  • Exposing a Form-Driven Web Application within a Portlet

    Hi All,
    I'm having a bit of a problem exposing a form-driven Web-Application within a portlet window.
    The web-application I'm working with utilizes the Oracle XSQL servlet and is basically a collection of .XSQL pages which are formatted using .XSL stylesheets that produce output HTML for the client.
    The application contains hyperlinks for navigation, but is largely Form driven.
    The application has already been deployed into an Oracle Application Server 10g container as a J2EE object(.ear file), and is fully functional and accessible over the web.
    In order to expose this application thru a Portlet window I utilized the Url-based provider services that come with the Oracle PDK. This allowed me to set up a simple URL-based provider for the site without any coding whatsoever. I also included inline rendering declarations to force the application response to be rendered within the Portlet window.
    This setup works fine when only hyperlinks are used to navigate thru the application, however, Forms do not appear to work with this setup. Everytime a form is submitted, the data is posted to the Portlet which fails to pass it thru to the underlying web application. Instead the Action="somepage.xsql" parameter is appended to the URL of the Portal itself thus returning a "page not found",etc... error.
    After much OTN searching I have found that the PDK 10.1.2 URL services package does not support Forms for inline rendering. Thus this solution comes close but falls short of what I need.
    I was wondering if anyone can point me to a solution that would:
    1) allow me to display the entire web application within a Portlet window (app only outputs HTML & some client-side javascript, but takes POST requests to the XSQL Servlet)
    2) without modifying it's current Form-driven interface, or any of the application's underlying code for that matter,
    3) and without having to resort to java coding the Portlet interface.
    The URL-Based Provider setup is almost perfect, I just need to find a way to allow forms to pass thru to the underlying application so that it's response can be rendered correctly.
    Current Setup:
    Oracle Application Server (Portal & Wireless) 10.1.2g
    J2EE with OC4J_containers.
    Oracle XSQL Servlet (ver 10)
    Windows 2000 OS

    I tried that, the default "Base URL" provides the "Display Option" attribute but only gives me these 2 options:
    - Full browse window link
    - New browser window link
    I have also tried other items that use "Base URL" (Simple URL, UrlItem, URL) and are all the same thing. The only items I could find (relevant to this need) and provide the option "Item displayed in page area" were:
    - "Page link" item
    - "External Application" portlet
    I even created a fresh Instant Portal to recreate the defaults and add the URL item again, but nothing :(
    Edited by: stics on Apr 29, 2010 4:52 PM

  • Help!Could someone kown how to call ArcGIS application within Labview?

    For my desigh, ArcGIS must be as a application within Labview.Since I haven't found any information in this field. Could some help?
    Now I have finished the two individual parts of Labview and GIS module, but the main problem is how to call for GIS module in Labview. Maybe some one can give me some suggestion.
    Thank all!

    Hello �
    If you created a DLL out of your GIS application you could then call it from LabVIEW using a Call Library Function Node.
    The best place to start understanding Call Library Function Nodes is the LabVIEW Help.
    Also, you might want to take a look at this link.
    Hope this helps!
    S Vences
    National Instruments

  • Integrating an existing struts application

    Sorry if this has been discussed before but I tried searching the newsgroup with
    no success. tia.
    I am trying to integrate the struts application found in the struts-example.war
    file that I extracted from the jakarta-struts-1.1.zip file from jakarta.apache.org.
    (I have successfully deployed and tested this war file to the weblogic server
    so I know the application works.)
    I unzip the war file into a temp directory and follow the instructions found in
    "e-docs.bea.com/workshop/docs81/doc/en/portal/buildportals/appIntegratingStruts.html"
    After creating a struts portlet using the wizard and putting the portlet into
    my test portal, when I try to run the portal using debug in Workshop, I get:
    <Error> <netuix> <BEA-420599> <Unable to perform action [example/begin] for Struts
    module [example]. Please ensure that both module and action are correct.>
    <Error> <netuix> <BEA-420037> <There was an error loading the requested URI /example/mainMenu.jsp.>
    <Error> <netuix> <BEA-423012> <There was an error while running a lifecycle stage
    Lifecycle: UIControl.render :: for the control :: null ::.com.bea.netuix.nf.UIControlException:
    No ActionResult returned for action [example/begin] in Struts module [example].
    Please ensure that both module and action are correct in portlet StrutsContent
    element.
    at com.bea.netuix.servlets.controls.content.StrutsContent.preRender(StrutsContent.java:399)
    at com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:388)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:619)
    I've tried changing the struts action and content uri with no success. I've tried
    changing the
    struts-auto-config-<module name>.xml file with even less success.
    Help would be greatly appreciated. tia.

    Have anyone got the answer from BEA ...
    I am also having the same problem.
    Pl. post if you have any answers.
    Thanks
    Kicha
    "Julien De Santis-Caron" <[email protected]> wrote:
    >
    Hi,
    I have the same problem and I can't find any way for correcting this.
    Please, help-us with this issue because integration of existing Struts
    applications
    into a portlet is a critical issue for choosing a Portal solution.
    thanks
    Julien De Santis-Caron
    "Dean Saiki" <[email protected]> wrote:
    Sorry if this has been discussed before but I tried searching the newsgroup
    with
    no success. tia.
    I am trying to integrate the struts application found in the struts-example.war
    file that I extracted from the jakarta-struts-1.1.zip file from jakarta.apache.org.
    (I have successfully deployed and tested this war file to the weblogic
    server
    so I know the application works.)
    I unzip the war file into a temp directory and follow the instructions
    found in
    "e-docs.bea.com/workshop/docs81/doc/en/portal/buildportals/appIntegratingStruts.html"
    After creating a struts portlet using the wizard and putting the portlet
    into
    my test portal, when I try to run the portal using debug in Workshop,
    I get:
    <Error> <netuix> <BEA-420599> <Unable to perform action [example/begin]
    for Struts
    module [example]. Please ensure that both module and action are correct.>
    <Error> <netuix> <BEA-420037> <There was an error loading the requested
    URI /example/mainMenu.jsp.>
    <Error> <netuix> <BEA-423012> <There was an error while running a lifecycle
    stage
    Lifecycle: UIControl.render :: for the control :: null ::.com.bea.netuix.nf.UIControlException:
    No ActionResult returned for action [example/begin] in Struts module
    [example].
    Please ensure that both module and action are correct in portlet StrutsContent
    element.
    at com.bea.netuix.servlets.controls.content.StrutsContent.preRender(StrutsContent.java:399)
    at com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:388)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:619)
    I've tried changing the struts action and content uri with no success.
    I've tried
    changing the
    struts-auto-config-<module name>.xml file with even less success.
    Help would be greatly appreciated. tia.

  • Sharing a Struts application among portlets

    I've written Struts applications before, but I'm new to portlets. I've read that there are two general approaches to portlet UI design. The first is when the user clicks on something in one portlet and a page of results or details displays in another portlet. In other words, "programmatic messaging provides for a particular user interface model, allowing an application to be delivered as a set of communicating portlets." The second approach is to do a wizard of pages within one portlet. "In contrast to the multiple portlet application user-interface model, the other dominant application UI style involves a single portlet that transitions through multiple 'screens'. This 'wizard' style of application interface can be complex to build without some sort of application framework. A popular framework for creating multiple screen Web applications, based on the Model-View-Controller (MVC) pattern, is Struts."
    My customer wants the application I'm to write to be integrated in their existing Oracle portal (10g but has to be backwards compatible with 9i). In a non-portlet Struts app, the requirements are pretty straight forward. I need a text input with a search button, about 10 navigation links and a label indicating to the user whether they are browsing or managing along with a dropdown that lets them toggle between browsing and managing and updates the label indicating their current mode. Those three areas (search, navigation, and mode toggle) will display on the left side of the page. The results of the search and the results of clicking on a navigation link should display on the right side of the page and the navigation link results will need to be in wizard form (fill out some fields and click Next, fill out some more fields and click Save). When a user changes their mode on the left side of the screen, the area containing the search results or navigation wizards on the right side of the screen will be updated to include some additional information. The twist (given that I've never written a portlet before and don't know if this is possible) is that the search should be in its own portlet, the navigation links and mode toggle should be in their own portlet and the area where the results of the search or navigation wizard pages display should be its own portlet.
    In non-portlet Struts land, the search, navigation, mode toggle, and results would all be part of the same Struts app. Can I write one Struts app and refer to the appropriate pages within that one Struts app for each of my portlets, in essence sharing a Struts app between multiple portlets? Or am I thinking about this all wrong?

    Karen,
    You can easiliy create several portlets out of a Struts application. For detailed instructions, refer to the Struts section of the Portal Developer's Guide.
    Good luck,
    Peter

  • Calling a Servlet from a JSP within Portal Portlet

    We've created a JSP that calls a Servlet when the form is submitted. The servlet handles the request, does some basic processing and then forwards back to a JSP. This works fine outside of Portal.
    What needs to be done in order for this to work within a portlet in Portal? We can get to the first JSP which is in a portlet, but as soon as we click the submit button (which tries to call the servlet) we get the basic page not found error. We need to click the button, go to the servlet and have the servlet forward back to our portlet.
    I know this is not the ideal way of using Portal however...
    Any ideas?
    Thanks!
    -Teri Kemple
    [email protected]

    I was wondering is there any way I can call a servlet from jsp? There are two scenarios here
    1 - if the jsp is currently being executed/evaluated on the server, then you can use <jsp:include> to "call" a servlet, or <jsp:forward> to cancel the jsp and transfer the control to the servlet.
    2 - if the page is already loaded and running in the client, then the only way to call a servlet is making a HTTP request as from any other html page. Jave code does not execute on the client, so you have to use html/javascript at that point.
    Calling a servlet within another servlet.
    lets say one servlet maintains all dynamic html. I call this servlet from another servlet to create a dynamic page and then insert values into it.Close, but the standard pattern is the reverse of that. What normally happens is you retrieve the values to put in the page, and then call the page, passing in those values. Thats why often you get a servlet/actionbean getting called, which then forwards to a JSP to display the result. The servlet/bean loads all the values required into scope, and then the JSP presents the data.

  • Call HTTPServlet in Struts Application (Or Download Servlet)

    I have a struts application. I need to call an application that will create a file and then allow the client to open or save it (by writing the file into the response).
    Can this be done with a struts action servlet or do I need to use a standard http servlet? If I need to use a standard http servlet how do I create a standard html link to that servlet in my html?
    I have placed a servlet tag in the web.xml giving the standard http servlet a servlet-name of downloaddocument.
    Any help is appreciated,
    Thanks,
    DeltaCoder

    Yes. And don't cross-post.
    http://forum.java.sun.com/thread.jspa?threadID=628983&tstart=0
    - Saish

  • How to configure Outlook 2013 to call direct from within the application without using Lync 2013?

    I have Outlook 2013 running on Windows 7 Pro 64-Bit with Lync 2013 (Office 365 Pro). We are using a 3rd party TAPI app from FortiVoice. WE would like to be able to place calls directly from
    within Outlook either by selecting a telephone number within an email and/or via the PEOPLE (Contacts) area.
    What guidelines should we use to enable this feature and not have Lync 2013 intercepting the process i.e. let OUTLOOK handle placing calls?
    Thanks in advance for any feedback provided.

    Hi,
    There seems no solution for this issue so far.
    Here is a fix for older versions of Outlook, maybe worth a try.
    http://support.microsoft.com/kb/959625/en-us
    However, if it doesn’t work, please try Malte’s reply as the workaround in the following thread. See:
    http://social.technet.microsoft.com/Forums/office/en-US/3946f1bb-cc3d-41b6-ab9c-092d62d024d1/outlook-2013-tapi-calling-with-lync-installed?forum=officesetupdeploy
    Thanks.
    Steve Fan
    TechNet Community Support
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • PDK-Struts Application requires pdkstruts.jar & pdk-struts-html.tld

    Hi All,
    Scenario is this, that I've created a pdk-struts application via JDeveloper with normal struts taglibs, and deployed it to Oracle Portal 10.1.4. default-action tags specified action.do is working fine and displays the welcome page within portlet region but after clicking any button within that welcome page opens a new browser page within same window and the URL pattern changes too.
    I want this to be executed within portlet region.
    Another problem is this, when I tried to use pdk-struts-html.tld within application;
    first warning within JDeveloper is this; Metadata Namespace for pdk-struts-html is not loaded, all entries are fine, and within Portal after successful deployment it gives an error (500 Server Listener Error) on viewing that portlet body.
    I want these issues to be resolved as soon as possible.
    Or if anybody knows about pdkstruts.jar and pdk-struts-html.tld with latest versions, plz do tell me the site-url to download these things.
    Plz help me out about these issues.
    Thanks in advance.

    Look in the Building Struts Portlets with Oracle Jdevelper section of the Oracle Application Server Portal Developers Guide. You need additional jar files besides the pdkstruts one. Also, look in the server logs to see more detailed messages about why it failed, it will help you debug.

  • How to reuse standard Activity subcomponents - Appointments, Tasks, Phone Calls and Emails within a custom work center?

    Requirement : We have a requirement to reuse the standard Activity subcomponents Appointments, Tasks, Phone Calls and Emails within a custom work centre. The requirement is to leverage and copy all sub functionalities Appointments, Tasks, Phone Calls and Emails available within the standard activity work center. This feature is available within Accounts, Opportunities, Leads etc. (Refer screenshot: Std_Act_Screen.jpg)
    We are unable to consume/embed the standard Activity (Work center) sub components Appointments, Tasks, Phone Calls and Emails within the custom work center. This is because of backend consistency check violation UI designer error message displayed. (Refer screenshot:Error while consuming standard activities.jpg)
    Ø  Open Question:
    a.      Is there a limitation to consume/embed the standard Activity (Work center) subcomponents Appointments, Tasks, Phone Calls and Emails within a custom work center?  We have noticed that this standard Activity Work center subcomponents Appointments, Tasks, Phone Calls and Emails has been repeatedly reused within the application in Account, Opportunity, Sales lead, Lead, Sales Quote Objects.
    b.      Is there an alternative way in which we can call [Through API etc..] the standard Activity Work center subcomponents Appointments, Tasks, Phone Calls and Emails?
    We need your guidance to overcome the error to enable the reuse of the standard Activity Work center sub-components Appointments, Tasks, Phone Calls and Emails within our custom work center or suggest a suitable workaround on how this can be achieved.
    Regards .. Dheeraj Saini

    Whenever you find out let me know. I wanted to assign a text tone to someone and now in iOS 7 i can't. Or I haven't figured this out yet.

  • Calling BSP application from CRM PCUI framework

    Hi All,
    We are using the CRM PCUI for channel partner management. Since CRM PCUI framework has some limitations as to how the data is formatted in the layout such as no multiple value selection ( since it is a generic framework using the blueprint tables we have to use the predefined layout settings) we want to call a standalone BSP application to maintain some of the data such as marketing attributes. We want to do this by providing a link to the standalone BSP application where the data can be maintained. Since we will be calling this application in the create mode of a new BP, is it possible to integrate the whole application as one logical unit ? I mean we want to commit the marketing attributes within the same 'save' methods of the pcui framework. Is this possible to do ? Any ideas or input is greatly appreciated.
    Thanks.

    Hi,
    we've already done a rework of the marketing attributes screen by using the technique I've described in my Weblog <a href="/people/gregor.wolf3/blog/2005/05/27/use-crm-pcui-html-viewer-to-call-a-custom-url">Use CRM PCUI HTML viewer to call a custom URL</a>. But it has one drawback: You can't use the Save button of the PC-UI applicaiton. You have to provide your own. But the usability enhanchement is rearly great.
    Regards
    Gregor

  • How can i get the id of the external application in my portlet??

    How can i get the id of the external application in my portlet??

    Hi Alf,
    I am not sure that you can get that information from within JPDK.
    thanks,
    Harsha

  • Integration a Web Dynpro ABAP application within one of my EP overview page

    Hi Experts,
    I've got an issue when integrating a Web Dynpro ABAP application within one of my EP overview pages.
    We've implemented PLM using the Web Dynpro ABAP scenario for employees. Now Iu2019m trying to integrate this into the Employee Self-Service overview page. I've got no issue to make the icon and area title appears, but when I click on it I get a blank page with Error 404. However when clicking on the link in the navigation bar (Level 2) then I get the page fine. So it looks like EP is not able to integrate correctly the Web Dynpro ABAP into the overview page in EP. Is there any specific Resource configuration?
    One more thing is that if I've implemented the same iView using Resources -> Services -> Sub Areas -> Areas everything works fine, but I receive two navigation Levels (Area Group contains the Area Link and when I click it brings me to Sub Area with the single Service Link) I want to avoid this double clicking, calling the application directly from Area Group -> Area link.
    Anyone has ever come across that kind of issue? Has anyone ever integrated a WDA application directly into an overview page?

    Hi,
    We faced a similar problem with BSPs and had to change the definition of the area link type entry.
    I am assuming you have set the area link type to WebDynpro for ABAP and the resource is calling an Iview/page that has the WD ABAP application configured.
    To get around the error, change the Area Link type to Calls a Portal page and make sure the resource calls an Iview/Page that has the WD ABAP application configured.

  • Should we call a transaction within RFC

    Hi,
    I have a scenario like this.
    There is a portal application where in customers can create inbound delivery.
    What I am thinking is portal application will invoke a RFC passing the required data. Within the RFC I can write the BDC code for transaction VL31N to create inbound delivery.
    I just wanted to know if this is the correct way to do this.
    Should we call a transaction within a RFC ? What are the pros n cons associated with this ?
    Is there ne BAPI to create Inbound Delivery (VL31N) ?
    Regards,
    Nitin

    Hi Nitin,
    There's unfortunately no BAPI available to create an inbound delivery. So considering that, what you're doing is fine.
    I did not get what you meant by calling a transaction within an RFC in this context. If you're talking about a Portal application, what's the point in calling the transaction in the RFC ? Or did you mean that you want to use CALL TRANSACTION USING... ?
    Regards,
    Anand Mandalika.

Maybe you are looking for

  • Flash Player 10.3 is not recognized in Mac OS X 10.5.8 no matter what i do

    OK, I have uninstalled, re-installed. I have java restored my defaults. I have tried a lower version (10.1). This is ridiculous and beyond frustrating. I am not a savvy computer guy but I know that I am missing something! I have searched every forum

  • Issue printing combined document with comment summary.

    I am having an issue generating the correct output for printing a comment summary with connector lines.  I started off with three duplicate documents, all of which had been commented on by different individuals.  The documents and comments were combi

  • I have a 2.5 hr fcp project....

    I sent it to compressor and it made the mpeg2 and ac3 files. But I don't have dvd stud pro...only idvd...having Real hard time getting idvd to accept those files. Does anyone have an easier route for me toburn a dvd?

  • Word and Excel documents name changed after download?

    Hi everyone, I have upgraded my Macbook Pro 17 (2010) to latest Mac OS X 10.8, everything seemed to be ok. Later, I noticed that every time I download my Word or Excel documents and save on my desktop, the names of files which are in russian, change

  • Replacement needed problem

    Hello.can anyone plz help me.i got unlocked my iphone but when i tried to activate the iphone it says"this iphone is not able to complete the activation process and needs to be replaced"plz help me what shall i do further