Programatically load URL inside a portlet

Hi Super Solver(s) of Problems,
Is there a way to programatically load a given URL inside a portlet?
For example, if I have Portlet A and Porlet B, and I want to make a B load up,
say, "http://www.google.com", when I click a button in A, how would I go about
doing that (preferably without using a Webflow that can see both A and B)?
Hanson

Hanson,
Please post the contents of the page that is not rendering correctly.
Thanks!
Sincerely,
Daniel Selman
"Hanson" <[email protected]> wrote in message
news:[email protected]...
>
Hi again,
I've written a page that displays what my servlet ought to without usingany session
data, and parts of that page still won't render inside the portlet (thoughin
its own browser window, it displays fine).
I guess my question then becomes: what can/can't you render with the<ws:uriContent>
tag?
Hanson
"Daniel Selman" <[email protected]> wrote:
Hanson,
It sounds like a problem with your Servlet. If it requires certain
session
variables, how do you intend to be able to hit it with a brand new
Session?
What happens when you hit your Servlet directly with a web-browser?
Sincerely,
Daniel Selman
"Hanson" <[email protected]> wrote in message
news:[email protected]...
Hi Prady,
Thanks for all your input! If I want to direct my page to somethinglike
Yahoo
or Google, the method you showed me works. However, the URL I'm
getting
the portlet
to load points to a servlet, and for some reason, that servlet can'tget
the session
variables it needs to render its contents (retrievals return null whenother portlets
in the session can read them fine). Is there any way around that
problem?
>>>
>>>
Hanson
"Prady" <[email protected]> wrote:
Try this:
1. Go to developer.bea.com and download/install the web services
portlet
wizard. This will modify your EBCC to include the web service wizard
tool.
2. Using the URI tool of that wizard (from EBCC), create yourPortlet-B
for
a default URL such as http://www.google.com. The URI tool has couple
of
tags that help us load the URI content within a portlet.
3. Write your Portlet-A with a simple form. Eg.
<FORM>
MyURL:<BR>
<INPUT TYPE=text NAME=myURL SIZE=30>
<INPUT TYPE=submit NAME=submit VALUE=go>
</FORM>
4. In Portlet-B (generated by the URI tool), there is a "defaultURL"
variable that will have the default URL that you provided while
creating the portlet-B (in our example from step 2. it will be
http://www.google.com). Change it to get the "myURL"
variable from the request object. Eg.
String myURL = request.getParameter("myURL");
5. Test.
6. you can modify portlet-B and portlet-A to use webflow to
pass information via pipeline session.
Let me know if this works.

Similar Messages

  • Load URL inside Flex 2

    How do you load a URL inside a targeted area (a container for
    example) of a Flex 2 application? Basically the same way you would
    load a URL into a frame in an HTML page. I see that there is a
    <mx:HTML> tag in Flex 3 but I believe that tag doesn't exist
    in Flex 2.

    Flex has a limited support of HTML as it does not have a
    built in browser functionality. If you would like to load an actual
    URL you can use an IFRAME loaded on top of your Flex application.
    If you search the web you can find a few examples of this. If you
    need real HTML rendering, Apollo is your only real solution at this
    time.
    Al

  • How to get Page URL inside a JSR168 Portlet

    Hi,
    How can i get the Portal's page URL inside a JSR168 Portlet?
    All I can see in renderRequest Object is information about the portlet itself not about the page it is inside.
    Thanks,
    André

    Hi Andre
    Please see this note on My Oracle Support. 433507.1
    Hope that helps!
    AMN

  • How can I redirect to an URL from a portlet?

    I'm using Bea Workshop 8.1 and trying to perform a redirect from inside a portlet
    using HTTPServletResponse.sendRedirect(String url)... but nothing happens ((
    I tryed the same trick with a simple JSP, and that's ok, but portal pages obviously
    catch the redirect somehow.
    Please could you tell the correct way of redirecting the whole browser to another
    page from inside portlets?
    Thanks!!!

    Backing files is an option. If you need to do it from the controller, you
    could use the Forward object. The forward object constructor can take a URL
    object as a parameter. This should do the trick.
    Regards,
    Kunal
    "Panji Aryaputra" <[email protected]> wrote in message
    news:[email protected]..
    Hi, you have to use backing file to get what you want. In my case, I am
    using a page backing file. Perhaps a portlet backing file can do thatalso.
    Cmiiw, the redirect header makes the page redirected only if the httpheader
    has not been sent to client. In your case, the header has been sent (i.e.
    the portal header.jsp has been displayed, etc). So the header need to be
    sent before anything else sent to client browser. This is where thebacking
    file comes handy.
    hth
    panji.a
    "A Hagen" <[email protected]> wrote in message
    news:[email protected]..
    I'm using Bea Workshop 8.1 and trying to perform a redirect from inside
    a
    portlet
    using HTTPServletResponse.sendRedirect(String url)... but nothing
    happens
    I tryed the same trick with a simple JSP, and that's ok, but portal
    pages
    obviously
    catch the redirect somehow.
    Please could you tell the correct way of redirecting the whole browser
    to
    another
    page from inside portlets?
    Thanks!!!

  • Links inside a portlet

    Hi,
    I've got 4 links inside a portlet, i woulld like to target each link to the same portlet.
    Basically,i want this links to open inside a portlet.
    <netui:anchor action="Week">|Week</netui:anchor>
    <netui:anchor action="DayofWeek" >|Day of Week</netui:anchor>
    <netui:anchor action="TimeOfDay" >|Time Of Day</netui:anchor>
    <netui:anchor action="AccidentType">|Accident Type</netui:anchor>

    Hi Caroline
    You should install and use the "Url Services". I have the same need. But I can't succesffuly install the URLServices, I then get a lot of timeout errors when browsing the portal. I don't know when I'll have time to work on that, but that's the way you should work around.

  • When we will be able to use AJAX components inside a portlet?

    Hi
    Thank you for reading my post
    when we will be able to use AJAX components inside a portlet?
    thanks

    I noticed the failure of the portlet to load its needed JavaScript files. Are there additional problems with the Ajax components running inside a portlet? Using the weblets project seemed like one approach to dealing with the resource loading problem.
    ...Kevin

  • Embedding Flex applications inside a portlet question

    I'm trying to embed a Flex application within a Java portlet on my WLP 10.3.2 portal. I'm able to display the Flex app in the portlet but now I'm trying to access data. Does anyone know of any documents that cover how to access Flex data from a portlet and how to access portlet data from the embedded Flex application?
    thanks

    When you mentioned you integrated Flex App inside a Portlet, are you using like iFrame tag or Browser Portlet where in iFrame tag you specify the Flex app url like that. If so, then you will not be able to share any data/information between this iFrame portlet and the actual other real portlets.
    If these Flex app has something like JSR based Flex portlets, then you can integrate them in WLP more easily. Another option is to consume these Flex Portlets as remote portlets using WSRP on WLP Side and the producer will be Flex Portal App (with flex portlets).
    See if this link helps: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcds/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=wsrp_1.html
    Ravi Jegga

  • Error displaying .png image inside the portlet

    Hi all -
    I am having an issue with the remote portlet displaying a certain image file, i.e. .png is not showed up inside the portlet. If someone had dealt with this issue and know a fix, please share that information. THX.
    A simple test war was built and deployed to the WebLogic server with two embedded images, one GIF and another PNG, and in Webcenter ALUI 6.5 a remote portlet/webservice were created to display the image files. The portlet only shows the .gif image and not the .png image?? I am not sure what the issue is with the portlet??

    I am faced with the exact same issue: .png is not showed up inside the portlet. Removing the prefix URL gateway for the portlet web service would work.
    However, in my case, my system is sitting behind a gateway to ensure a secure connection. I can NOT remove the prefix URL gateway on my system. It appears the problem is, if the portlet web service is prefix with a URL gateway, the PNG fie is delivered to the browser with the wrong MIME-type ("text/html" instead of "image/png").
    My web service is deployed on a WebLogic container. Is this a configuration issue in AquaLogic/WebCenter Interactions?
    Any help would be greatly appreciated. Thanks!

  • I want Page Id and Site Id inside the portlet...

    I want my site id and my page id of the page that contains my dynamic page (in form of a portlet)
    I tried the API portal.wwctx_api.get_query_string inside my portlet to get the same.
    But when i run it as portlet from the interface, it displays the query string. And as soon as i add the portlet into my page, then the query string of the page is not returned.
    Please if someone has the solution for the same, please let me know.
    Thanks and Regards,
    Rahul Munjal

    Rahul,
    In a PL/SQL portlet:-
    declare
    v_page varchar2(200);
    begin
    v_page := portal.wwpro_api_parameters.get_value( '_pageid', 'a');
    htp.p('siteid, pageid: ' || v_page);
    end;
    Refer to : current page url
    Cheers,
    Pedro.

  • Struts war file inside a portlet

    Hi,
    Is it possible to import a war file using Struts and simply put it inside a
    portlet?
    Does the struts app have to have certain characteristics (such as version,
    limitiations, ...)?
    Thank you for any and all help,
    Geoffrey

    You have several options:
    1) Deploy your application in exploded form, not as a war
    2) Use getResource methods found in ServletContext to load the files.
    I would consider option 2, if the only thing you need to do is to load a file.

  • "Unable to load URL" - SQL Server 2005 DB Web Service Connection

    Hi ,
    I am using XCelsius version 5.0.0.99 to create dashboards connecting to SQL Server 2005.
    Find below the details of the steps -
    1. Created a web service within SQL Server 2005 database.
    2. Copied the WSDL URL.
    3. In XCelsius 2008 -> Data Manager -> Web Service Connection, pasted the URL in the WSDL URL input box and clicked "Import" to import the methods. At this point I am getting "Unable to load URL" .
    Am I missing any step ?
    Any suggestion would be highly appreciated.
    Note : I have tested the web service by using it in a ASP.Net project and works fine.
    Thanks
    Chitra

    Hi,
    Error :unable to Load URL occurs" because Crystal xcelsius only support single schema web service created from Query as a web service and Flynet tool available in xcelsius 2008.
    The reason:
    All the web service create from Sql 2005 ,PHP script produced multiple scehma web service and crystal xcelsius only support single schema web service which can be created from Query as a web service or Flynet.
    Please revert in case of any queries.
    Regards
    Kekti Fadnavis

  • "Unable to load URL" error when importing VS2008 created WSDL

    One of my developers created a simple web service in Visual Studio 2008 that queries a database on our SQL Server 2005. I can view the web service results in a web browser with no problems. I can also pull up the WSDL in the web browser with no problems (http://<ip address>/Service.asmx?WSDL). However, when I try to load WSDL into a Web Service Connection in Xcelsius 2008, I get the "Unable to load URL" error.
    I've also tried to use the web service as a data source in Crystal Reports 2008, but I get another error:
    Logon failed.
    Details: Schema file is invalid
    error: src-resolve: element 'schema@http://www.w3.org/2001/XMLSchema' not found
    I've seen a post in which it looked like Crystal acknowledged this as a bug in the XML driver used by Crystal products, but it should be fixed in a service pack update. I've got the latest service packs and fix packs installed for both Xcelsius 2008 and Crystal Reports 2008.
    I scanned the information being sent/returned to Xcelsius using Fiddler and it looks like the request is getting through and the actual WSDL file is being returned to Xcelsius, so it shouldn't be an authentication issue. It seems like Xcelsius doesn't like the WSDL file for some reason. However, it is automatically generated by Visual Studio 2008.
    Any ideas as to how I can get Xcelsius to use this test web service?

    Having the same issues here also.
    I can see the wsdl file being accessed successfully in the web access log, but Xcelsius v5.3 return "unable to load URL"
    Only thing I can guess is that the schema is "untyped"
    So, nobody in SAP has a solution?

  • Xcelsius error: Unable to load URL while using QAAWS on XI 3.0.

    Hi Experts,
    I am getting "unable to load url" in xcelsius 2008 while importing a qaaws url.
    After all the testing below are my observations:-
    1) This has something to do with QAAWS.
    2) When I logged into QAAWS and tried accessing the newly created url from the browser. It gave this error " can not communicate to the server mcc69u01:6400" but intrestingly the cms port is located at 6464 and not 6400.
    3) For every other application like infoview and cmc it picks the correct port i.e. 6464.
    4) Server is present on a UNIX box.
    5) I read somewhere that I need to make changes in the dsws.properties file under war files folder. There I enetered "domain= mcc69u01:6464" and restarted TOMCAT.
    6) After making this change I was unable to even log into QAAWS as it gave the error 02718 " you are not authorized to create query".
    7) After reverting the changes now I am able to log into QAAWS and create new queries but the same problem persist.
    8) TOMCAT is listening to port 8088 for our environment.
    9) Tried the same thing from a different client machine with fairly new BO XI 3.0 client installation(same server) but no success.
    I believe somehow QAAWS is not able to connect to the correct port 6464 and that is the reason for this issue.
    Could anyone suggest what I should do???
    Thanks in anticipation,
    Anshul

    hi Anshul,
    The QAAWSservletprincipal is not related to how you log into the server when creating queries
    It is used when the queries are actually running, or when you are trying to load the query to a tool like Xcelsius. I had the same unable to load error and it was caused by the QAAWSservletprincipal being set to concurrent licence when my server was all named users.
    I think the issue you are seeing is more likely a bug caused by hardcoded cms port, but I think it is worth ruling out.
    Regards
    Alan

  • Links (urls) inside a pdf document are not enabled by the New firefox pdf preview feature but are in Chrome & IE

    The new pdf preview feature in firefox desktop does NOT seem to activate any links (urls) inside the pdf meaning they are no longer clickable.
    Is anyone else experiencing this problem.
    I send out product information using pdf's with clickable links inside (as do lots of businesses) and this loss of clickable links functionality is a problem.
    I also tried the same pdf files in IE and Chrome and their inline pdf previews keep all links fully working.
    I know the pdf preview in firefox can be deactivated and the adobe reader can be used instead but in reality lots of people won't know how to do this or won't be troubled to find out how and will just move on.
    Does anyone know if this feature is going to be fixed or supported or is it a deliberate security feature.
    Thanks.
    JP.

    Hey JPEdwards,
    The PDF.js team is still hard at work on the built-in viewer. It looks like there is already a bug on file for this and they are aware of it:
    https://bugzilla.mozilla.org/show_bug.cgi?id=821599
    Please don't post in the bug if you are just confirming that you've seen the problem too. That clutters the tickets ;)

  • How to get the customize url of an portlet using PLSQL

    How to get the customize url of an portlet using PLSQL.

    Are you trying to call the portlet Customization form directly from the browser?

Maybe you are looking for

  • How can I NOT have my outgoing emails accumulate on gmail?

    I'm using Thunderbird with gmail via POP3, not IMAP. I want to just grab the emails, download them to my PC, and delete them from gmail. That part works great. But with both TB and my previous Outlook 2000, my outgoing emails end up staying on the gm

  • Portege 7200 256Mb RAM - Where from????

    Hi, Picked up a Portege 7200 running XP dirt cheap, it's currently got 128Mb RAM which I want to replace with a 256Mb, where the hell can I find one that isn't priced the same as a new laptop??? Thanks! Lee

  • Posting the Post dated Cheque

    Dear Experts, Pl explain whether  following procedure for posting Post Dated Cheque (PDC) is correct 1)Post vendor invoice( Vendor A/c Cr and Expense A/c Dr) 2) Post PDC in F-40 with separate Spl GL Indicator created for PDC and clear the invoice lin

  • Depreciation freeze for some asset for some months.

    Hi assets have been capitalized on 01.01.2012 and depreciation has been run for 1 and 2 month now the cleint requirement is that, they want to stop depreciation for some assets up to April and calculate the depreciation again from 01/05/2012. Please

  • Simple Automated batch video transcoding

    Hi, I am very new to FCS, all I want to do is have it scan my S3 mounted drive on my desktop, if there is content present grab that video and transcode it to MPEG4-webcasting, then place it into another S3 mounted drive (using expand drive to mount S