Gateway URL Transformation in stylesheet

Hi,
Is it possible for the portal to rewrite URLs in a cascading stylesheet?
The following excerpt is from a stylesheet used by a number of gatewayed pages. We know it works just fine when you hit the page directly, but when the page is gatewayed the image URL is not transformed and so the images don't render:
.subNavigation{     margin-left: 10px;     padding-left: 5px;     margin-top: 0px;     padding-bottom: 3px;     list-style-image: url(/_interface/gfx/jnet_bullet.gif);}
I saw in the doco that there's pt:transformer and pt:url tags but they won't work in this context.
Any ideas?
cheersAni

Ani,
There is a bit of a backdoor, in that all content in portlets is transformed, and stylesheets do cascade, so one trick would be to embed the CSS itself directly in the HTML of a header portlet, and then add that header portlet to the default subportal object (or whichever subportal you happen to be using on those pages). I'm not absolutely certain it would work but it is worth a try.
Embedding CSS directly in HTML is a bit odd, but here's an example:
http://www.uri.edu/home/help/css/css2.html
- david phipps

Similar Messages

  • Wildcards in gateway URL prefixes?

    Hello, We are using a proxying utility called EzProxy from Useful Utilities for controlling student access to online databases and catalogs, which use client-IP as it's security mechanism (basically if the requests come from our network it lets the client in). I would like to host it through the Plumtree portal as a remote portlet, so that the portal can assume responsibility for access control. Here's why it isn't a slam dunk to set it up as a fully gatewayed remote portlet: to proxy remote hosts, it uses 'proxy by hostname'. A request for www.abc.com/whateverpassed through ezproxy.royalroads.ca ends up being returned to the client (in this case our portal for inclusiion as a portlet) as www.abc.com.ezproxy.royalroads.ca/whatever. As you can see, it dynamically adds to it's hostname list anything it's proxying. There's a better explanation of how it works at http://www.ezproxy.com/support/rewrite.html near the bottom of the page under 'new strategy'. My question to you is 'Can I set up in the Gateway URL Prefix list something like: http://*.ezproxy.royalroads.ca/. and expect it to properly gateway through the portal?' There's no way for us to know what will appear in place of the * beforehand, so we would like some way to wildcard the 'start' of the urls. Please let me know if this is simple to accomplish and/or feasible... if it is not we may have some other options to pursue before spending a ton of time trying to get gatewaying working. Thanks! -Dev.

    The transformer will only transform URLs in Javascript if they fall in obvious places (e.g. setting a document.location or a window.open URL). Since you're passing an URL to the application.boot method, the transformer has no idea that it's dealing with an URL.
    To make this work, follow these two steps:
    1) Make sure the URL matches at least one of the patterns listed under Gateway URL Prefixes in the Web Service editor for your portlet.
    2) Wrap the URL in a pt:url tag to give the transformer a hint that you want it to transform the URL, e.g. application.boot("<pt:url pt:href='http://localhost:7021/application/script/classes' xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/'/>").
    That should do the trick.
    HTH,
    Chris Bucchere | bdg | [email protected] | www.bdg-online.com

  • URL Transformation

    I am unable to convince plumtree 5.0.1 to display a properly transformed URL through the gateaway. Here's an example to explain:
    I have remote server x configured as http://server.domain.com/GadgetVirtual/I create a remote web service as /WebServiceA/gadget.aspx using the above remote serverI indicate that all URLs off the remote server URL should be gatewayed by putting a / in the gateway url field.When I use either simple links (), the pt:url tag, or the pt:gatewayLink tag, Plumtree consistently returns a link along these lines:
    [url=http://server.domain.com/portal/server.pt/PTARGS_X_X_X_X_X_X/http://server.domain.com/GadgetVirtual/WebServiceA/page2.aspx]http://server.domain.com/portal/server.pt/PTARGS_X_X_X_X_X_X/http://server.domain.com/GadgetVirtual/WebServiceA/page2.aspx
    As you can see, it translates the file to an absolute url and then tries to gateway that url. As you would expect, that url will not resolve to anything.
    Anyone else encounter this?

    I've discovered the resolution for this.
    After having an epiphany that URLScan might be interfering with the odd request of having a second http:// in the url, I modified the ini to allow the extra colon. I discovered shortly after that there are kb articles on this on the site but I had no reason to look for them until I already knew what the problem was.
    Then, upon discovering .NET 1.1 had been installed over 1.0, I reset that and everything seems to be working.
    I am still, however, curious why I can type in web service path on the end of the gatewayed url and convince this to work. I'm guessing that the software makes an assumption that if it doesn't have an absolute url to work with, to look within either the remote server path to try to find it. As I said ... just a guess.
    At any rate, thanks for the help David!

  • Gateway URL prefix

    Does anyone know if it's possible to programmatically add gateway url prefixs to a web service. We're writing a portlet that allows users to dynamically add a url designating the source of the portlet and we want this url gatewayed. We're trying to figure out if the portal api or the edk supports this type of functionality.
    Thanks,
    -Travis

    The transformer will only transform URLs in Javascript if they fall in obvious places (e.g. setting a document.location or a window.open URL). Since you're passing an URL to the application.boot method, the transformer has no idea that it's dealing with an URL.
    To make this work, follow these two steps:
    1) Make sure the URL matches at least one of the patterns listed under Gateway URL Prefixes in the Web Service editor for your portlet.
    2) Wrap the URL in a pt:url tag to give the transformer a hint that you want it to transform the URL, e.g. application.boot("<pt:url pt:href='http://localhost:7021/application/script/classes' xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/'/>").
    That should do the trick.
    HTH,
    Chris Bucchere | bdg | [email protected] | www.bdg-online.com

  • How to use SAXParser to transform using stylesheet

    I've got some PL/SQL code that is generating in-memory XML
    document based on query run against Oracle database, and then
    transforms that XML using XSLT (for later posting over network).
    I've been encountering lots of memory errors and wanted to try
    using the SAXParser instead. However, the info I've found on
    SAXParser never really talks about transforming using stylesheet.
    How would I go about transforming a 'subdocument' at a time (I
    need the output to exist as one very large properly formatted XML
    document, not as a bunch of separate XML docs). Are there
    examples of this somewhere?

    Hi. What I understand is, you should pass the value of the body first on a variable before doing the MFL transformation action. Use the Assign action to do this.
    Then Use the MFL transform on the value inside the given variable, and you can pass it back to body.

  • Format of the gateway URL

    How is the gateway URL formed?
    after the gateway there is a PTARGS_x_x_x_.....
    How is the PTARGS_x_x.... formed? Is it configured any where on the portal server
    I am using the gatewau URL in one of the publisher presentation templates and this value is changing from development to production environments

    The portal server creates the gatewayed urls on the fly. You shouldn't hardcode those values just for one environment.The format of the gatewayed urls include the objectid,userid and some other characters.
    Please go through the documentation below for constructing urls using the pt:common:url tag.
    All the documentation is available at the below url. This will helpful in understanding the details.
    [http://edocs.bea.com/alui/devdoc/docs60/Portlets/Adaptive_Portlets/Using_Adaptive_Tags/PlumtreeDevDoc_Integration_Portlets_Adaptive_Links.htm|http://edocs.bea.com/alui/devdoc/docs60/Portlets/Adaptive_Portlets/Using_Adaptive_Tags/PlumtreeDevDoc_Integration_Portlets_Adaptive_Links.htm]

  • OVD - Admin Gateway URL

    Hi,
    I need to setup OVD to have several admins.
    I need syntax for the following scenarios. I have to enable the "Admin Gateway URL" in OVD Manager.
    Scenario:*
    1. I need to allow users in *"cn=Users,dc=oracle,dc=com"* to have administrative access in the *"_dc=oracle,dc=com_"* LDAP server.
    Please provide the syntax to follow in the Admin Gateway URL. Help me to sort this.
    Thanks in Advance
    San
    Edited by: user652681 on Sep 24, 2009 9:21 PM

    Aha! Found it..
    PTSERVERCONFIG tables, where setting = 2
    Needed to append /portal
    UPDATE PTSERVERCONFIG SET VALUE = 'https://www.myhappyportal.com/portal' WHERE SETTINGID = 2
    I must have screwed this up initially. The originaly seed value was missing the /portal.
    Thanks,
    Eric

  • Gateway URL setting?

    Hi -
    I think I screwed something up and am looking for a quick hand.
    * G6 .NET box lives at https://www.mydomain.com/portal/server.pt
    * Collab appears to think the gateway URL is https://www.mydomain.com/server.pt (NOTE that key bit - lacking "/portal")
    Collab administration is saying it's automagically picking up the gateway URL from the portal - I'll be darned if I can figure out where it's coming from. I've reviewed all sorts of config files + database settings + the "display files URL" in the portal admin console.
    Anyone have any pointers on where I might be able to change the base portal gateway URL to insert that very-necessary "/portal" ?
    Any info much appreciated :)
    Thanks,
    Eric

    Aha! Found it..
    PTSERVERCONFIG tables, where setting = 2
    Needed to append /portal
    UPDATE PTSERVERCONFIG SET VALUE = 'https://www.myhappyportal.com/portal' WHERE SETTINGID = 2
    I must have screwed this up initially. The originaly seed value was missing the /portal.
    Thanks,
    Eric

  • Gatewayed URL problem to Flex portlet

    i'm create a remote portlet which point to a flex content and jsp in a remote server and through by gateway, but after and add gateway URL in front of the remote server URL, the portlet become can't display on the screen.
    Because of my remote server is hidden to public, so i can onli by through gateway to access my remote server, so did any others solution or AquaLogic gateway is totally blocked to access a flash/flex content?

    Did you try with InterPortlet Communication.

  • How can I don't get the gatewayed url?

    I integrated a customized application into my portal.
    but ,portal always generates gatewayed url,
    for example
    http://demo:80/portal/server.pt/gateway/PTARGS_0_200_359_207_0_43/http%3B/demo%3B80/tpl/abc/totalReport.do?method=drawPieChart&type=16
    I only want to get the true url,that is
    http:/demo:80/tpl/abc/totalReport.do?method=drawPieChart&type=16
    How can I set the portal not to gateway the url?
    thanks for any ideas.

    Adjust the webservice that you are using so that it doesn't gateway that URL.
    This is set on the HTTP Configuration page of a webservice.
    It would appear that your is set to something like:
    http://demo:80/portal/server.pt/(perhaps more path here/).
    so just remove that

  • What is the Reports gateway URL?

    The A92102-01 Reports Services documentation mentions a reports gateway URL. What is this? Where is it set? The doc mentions Chapter 3, but I do not see anything there that seems relevant. I want to get Reports integrated into Portal and I require this information...
    Regards,
    John

    I believe you were trying to access the old iSetup configurator website. iSetup is no longer a hosted product and the configurator module has been decommissioned. iSetup is available as a product within the E-Business suite instance. You can see the iSetup menu when you assign 'Oracle iSetup' responsibility to a given user.
    Thanks,
    Lokesh Mathur

  • Xmltype.transform() with stylesheet that includes another stylesheet

    I' trying to use xmltype.transform() with a stylesheet that includes/imports another stylesheet. But this results in a 'ORA-03113: End of communication channel'. Is xsl:include or xsl:import supported?
    This is the first stylesheet:
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:import href="company2.xsl"/>
         <xsl:template match="/">
              <xsl:apply-templates select="company"/>
         </xsl:template>
    </xsl:stylesheet>
    And this the second stylesheet:
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:template match="company">
              Company: <xsl:value-of select="."/>
         </xsl:template>
    </xsl:stylesheet>
    Both stylesheets are stored in the Oracle XDB Repository in folder '/public/test'.
    The following script results in an error:
    declare
    l_xsl xmltype;
    l_xml xmltype;
    l_xml2 xmltype;
    begin
    l_xsl := xdburitype('/public/test/company.xsl').getxml();
    l_xml := xmltype('<company>Oracle</company>');
    l_xml2 := l_xml.transform(l_xsl);
    end;
    I tried the following values for the href attribute of xsl:include:
    company2.xsl
    /public/test/company2.xsl
    http://<host>:<port>/public/test/company2/xsl
    I also tried to use xsl:import instead of xsl:include with the above attribute values for href. In all cases I get the ORA-03113.
    Thanks for any help, hints or tips.
    Erwin Groenendal

    Did you look in the database alert log or in the database log area to see if any trace file was generated by your error? The listener.log may have more information too.
    Also, you can trace your session to see what is happening.
    alter session set sql_trace = true;
    run sql
    alter session set sql_trace = false;
    or
    alter session set events '10046 trace name context forever, level 12';
    or TURN on TRACING for any SESSION
    execute sys.dbms_system.set_sql_trace_in_session -
    (sid => &sid, serial# => &serial#, sql_trace => true);
    run sql
    execute sys.dbms_system.set_sql_trace_in_session -
    (sid => &sid, serial# => &serial#, sql_trace => false);
    HTH
    M.

  • COS Template/Gateway URL Accesslist settings merging

    Hi,
    if i understand correctly the setting of the URL access list is stored in LDAP. It can either be specified on the organization, role or user level.
    If specified at the organization level a COS template is created in LDAP. This is used for the setting of all the users below that org.
    If i set the users accesslist then the value of the URL access attribute is stored directly under the users attributes thereby overriding the ORG level setting. (I think)
    I've looked at COS merging attribute but it mentions that COS only takes place if no value is set at the user level.
    We want to allow some URL's for everybody and some user specific but it seems that we always have to go to the user level because otherwise it would not work.

    Hi,
    if i understand correctly the setting of the URL access list is stored in LDAP. It can either be specified on the organization, role or user level.
    If specified at the organization level a COS template is created in LDAP. This is used for the setting of all the users below that org.
    If i set the users accesslist then the value of the URL access attribute is stored directly under the users attributes thereby overriding the ORG level setting. (I think)
    I've looked at COS merging attribute but it mentions that COS only takes place if no value is set at the user level.
    We want to allow some URL's for everybody and some user specific but it seems that we always have to go to the user level because otherwise it would not work.

  • Gateway URL rewriter problem

    I have a page that i want to be able to be viewed through the gateway. This page incorporates mouse overs. I have the gateway rewriting the whole page perfectly except for these rollovers. here is an example of one of them:
    a href="https://<gateway_name>/<server_name>/default.htm" OnMouseOver="window.status='HumanResources'; document.images[0].src ='/images/logon/advonl_hr_on.gif'; return true;" OnMouseOut="window.status=' ';
    document.images[0].src ='/images/logon/advonl_hr.gif'; return true;"><img src = "https://<gateway_name>/http://<intranet_name>/images/logon/advonl_hr.gif" border="0" >
    The page contains a whole array of document.images[*].src values. Does anyone know how to rewrite an array variable inside a mouseover command?
    Thanks
    Jesse

    taking a different tack - rather than trying to get
    the rewriter to do some magic (personally i think they
    should drop it and put in a parser or external api)
    do the rewriting yourself using the iplanet supplied
    rewrite routine ...
    if ( window.location.host = "portal.westernpower.com.au" ) {
    location.href = iplanet( this.linkText ) ;
    } else
    location.href = this.linkText ;
    }

  • Using gateway'd URLs in JSP custom tag attributes

    Hello,
    I am running Plumtree G6 using a gateway prefix to gateway Javascript from a remote server. I have recently discovered, thanks to people's help on the forum here, that in certain cases, you need to wrap a URL in a pt:url tag in order for Plumtree to recognize it as a URL that has to be gateway'd (i.e. a URL inside of a Javascript function).
    However, I have a custom tag that contains a contextPath attribute. This custom tag then includes other XML files that get included in the final page that is displayed. I am passing this value as my contextPath:
    <mytag:body sessionName="mysession" campusName="SampleCampus" contextPath="<pt:url pt:href='http://localhost:7021/application/scripts' xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/'/>"/>
    However, in the resulting content that is created from this custom tag, the contextPath value is still set to <pt:url pt:href=......./>, and not the actual gateway'd URL. I would have thought that Plumtree would have recognized and gateway'd this URL before it got substituted in the custom tag.
    Does anyone have any thoughts on how to get around a problem like this? One thought I had was to get ahold of the gateway URL value and pass that value directly in my contextPath attribute. Is it possible to get that gateway value, or is there a better solution here?
    Thanks again for any help you can provide.

    Chris,
    I added your code, changed the portlet's web service to send a login token for this portlet, and was then getting some ClassNotFoundExceptions related to Axis classes. So, I went and added all of the jar files from the devkit's lib directory (i.e. plumtree\ptedk\5.3\devkit\WEB-INF\lib), recompiled, and those errors went away. But, now I see the following error:
    java.lang.NoSuchFieldError: RPC
         at com.plumtree.remote.prc.soap.QueryInterfaceAPISoapBindingStub.(QueryInterfaceAPISoapBindingStub.java:27)
         at com.plumtree.remote.prc.soap.QueryInterfaceAPIServiceLocator.getQueryInterfaceAPI(QueryInterfaceAPIServiceLocator.java:43)
         at com.plumtree.remote.prc.soap.QueryInterfaceProcedures.(QueryInterfaceProcedures.java:37)
         at com.plumtree.remote.prc.xp.XPRemoteSession.(XPRemoteSession.java:202)
         at com.plumtree.remote.prc.xp.XPRemoteSessionFactory.GetTokenContext(XPRemoteSessionFactory.java:80)
         at com.plumtree.remote.portlet.xp.XPPortletContext.getRemotePortalSession(XPPortletContext.java:261)
         at com.plumtree.remote.portlet.PortletContextWrapper.getRemotePortalSession(PortletContextWrapper.java:45)
         at jsp_servlet._collabrasuite.__riarooms._jspService(__riarooms.java:325)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:417)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    I am using version 5.3 of the EDK, and running Plumtree Foundation G6. Have you ever seen an error like this before?
    Thanks again for all of your help.

Maybe you are looking for

  • Vga output not working in lion

    I upgraded to Lion yesterday and noticed that I could not longer use my Macbook Pro with a projector.  I've tried several different projectors (classrooms at the university), and none of them work.  When I plug the VGA cable into my adapter, the Macb

  • Lumia 800 Email problem.

    I have a problem with deleted mails - not sync'd with my "imap" configuration.. i can't see anywhere, where i need to ajust this configuration. Meaning - when i delete the message from inbox, it should be transferred to deleted... in a way it does, b

  • Problem saving PSD explorer icons/thumbnails - video

         Hello, I have a setting problem with CS5 and I'm really lost. At some time in the past when I saved a psd file I would have an icon or thumbnail in explorer. No it doesn't save those thumbs. Actually it saves them but they appear to be corrupt.

  • How can I get my data out of a crashed drive?

    I need help. Crashed hard drive. How can I get the data out?

  • Price uplift for item groups

    I want to uplift my selling price by some percentage based on the purchase price list for a group of items. When I try to do this under price list, I get the following error Unable to update basic price list or rounding method for selection criteria