Using static resources

PortalWebAssets is the default static application resources project, which can include static resources like HTML and images.
At the moment I'm able to use an image defined under PortalWebAssets using something like this
<af:image shortDesc="my image" id="img1" source="#{preferenceBean.baseResourceURL}/myImage.png"/>
Now I need to include a html page in a jspx file.
How can I do it?
I already tried to use jsp:include but without success.

Hi.
You can achieve it using *<af:inlineFrame>*
For example if you have a sample.html stored in Web Content folder of PortalWebAssers.jpr you can reference it with:
*<af:inlineFrame source="#{preferenceBean.baseResourceURL}/sample.html"/>*
Regards.

Similar Messages

  • Authorisation of the static resources OAS10g R2

    Hi,
    I have some static resources (folders with html and image files) referenced in the web server of my OAS 10g release 2.
    The alias ‘myalias’ is defined in the oas10gr2/Apache/Apache/conf/httpd.conf
    <IfModule mod_alias.c>
    /myAlias/ “/folder_root/folder_web_ressources/”
    And this alias is secured (SSO – OID – LDAP) in oas10gr2/Apache/Apache/conf/mod_osso.conf
    <IfModule mod_osso.c>
    <Location /myAlias >
    require valid-user
    AuthType Basic
    </Location>
    When I access a file by his URL, the authentification page is display and having a user and a password I can display my page, which is ok.
    Now I need to restrict the access of certain folders to a given role.
    For eg the user accessing www.domain.com/myAlias/customer/c.html must have the CUSTOMER_ROLE and the user accessing www.domain.com/myAlias/owner/c.html must have the OWNER_ROLE.
    All my roles are defined in LDAP, but I don’t know how I can modify my configuration files to make this role verification.
    It is possible to have something like that ?
    <Location /myAlias/customer >
    require valid-user
    AuthType Basic
    PRIVILEGE CUSTOMER_ROLE
    </Location>
    <Location /myAlias/owner >
    require valid-user
    AuthType Basic
    PRIVILEGE OWNER_ROLE
    </Location>
    Thanks for any suggestion,
    Ivat

    Hi again,
    I do it differently:
    In my web application I have created a virtual directory to my static content (which is dynamically updated by another application).
    1. In WEB-INF\orion-web.xml
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE orion-web-app PUBLIC "-//Evermind//DTD Orion Web Application 2.3//EN" "http://xmlns.oracle.com/ias/dtds/orion-web.dtd">
    <orion-web-app servlet-webdir="/servlet/" directory-browsing="deny" autoreload-jsp-beans="true" autoreload-jsp-pages="true" persistence-path="./persistence">
    <web-app-class-loader search-local-classes-first="true"/>
    <virtual-directory real-path="/server/folder_root/folder_web_ressources" virtual-path="/resources" />
    </orion-web-app>
    2. This alias is secured (SSO – OID – LDAP) in oas10gr2/Apache/Apache/conf/mod_osso.conf
    <IfModule mod_osso.c>
    <Location MyAppRoot/resources >
    require valid-user
    AuthType Basic
    </Location>
    3. I use a servlet filter where, after the authorisation, I do my ROLE check.
    Web.xml
    <filter>
    <filter-name>Filter_VIRTUAL_DIR</filter-name>
    <filter-class>mydomain.servlet.RoleCheckFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>Filter_VIRTUAL_DIR</filter-name>
    <url-pattern>/ resources/*</url-pattern>
    </filter-mapping>
    This “workaround” do my job. I hope that this can help someone.
    Thanks,
    Ivat

  • Can I use static variable in EJB?

    Many books suggest developer don't use static variable in EJB,I want to know why?
    I know there isn't any problem if the static varibale is read only
    For writable static varible ,what will happen if I use a static Hashtable for share data
    Help me!Thank you very much!!

    Greetings,
    I know that "EJB business methods are not allowed to
    block on synchronized resources" Just where do you "know" that from?? The EJB 2.0 Specification, at least, is nowhere in agrement with this statement. If it comes from a book I would question the author's reasoning. Contractually, there's no sound basis for this. In the case of Session Beans, they have an expressedly direct and single-threaded association with a client. From a design viewpoint, it certainly seems unnecessary for a bean to "block" its one-and-only client, but to say that it "is not allowed to" do so is without merit. Entity Beans, on the other hand, are concurrently accessible. Yet, with regard to a transactional context being in effect, the container does indeed block on a bean's business methods. For the bean to do so itself is, therefore, unnecessary. Furthermore, the specification explicitly concedes that a "Bean Provider is typically an application domain expert" and "is not required to be an expert at system-level programming." (EJB 2.0 Spec. 3.1.1) From these statements alone it is reasonable to assume the above statement is meritless since the Bean Provider is not expected to even consider synchronization issues when developing a bean.
    But I'm mixed up why we could use "Hashtable" or otherApparently, because your sources are as well...
    collection classes in the EJB ,in these method many
    methods are synchronized In fact, not only "can we use" them but, with respect to multiple-row finders in Entity Beans we are [i]required to use them (or an iteration of them)! Not all Collection classes are synchronized (so called "heavy-weight collections"). As shown above, that the choice of a particular Collection class might be synchronized is of little consequence since a bean designed under strict adherence to the specification ensures that it is never concurrently writeable.
    Could someone provide a good way for this problem?
    Please Help Me!!!Regards,
    Tony "Vee Schade" Cook

  • Thread with static resources fails in Sun JVM. Why?

    Hi All,
    My applet uses threads to put locks on 2 static resources (a Hashtable and a Vector). It works smoothly in browsers with Microsoft JVM. When i changed browser plugin to Sun's JVM 1.3, the applet failed to run and following exceptions thrown to Java Console continuously:
    java.lang.NullPointerException
    at sun.awt.SunToolkit.postEvent(Unknown Source)
    at sun.awt.windows.WComponentPeer.postEvent(Unknown Source)
    at sun.awt.windows.WToolkit.eventLoop(Native Method)
    at sun.awt.windows.WToolkit.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source) Here is the code:
    Resource declaration:
    public static Hashtable stateTable = new Hashtable();
    public static Vector vtElementOrder = new Vector(); 2 methods to add/remove resource elements
    private static void addElementHashTable(String ObjectName, ViewPanel viewPanel)
            try
                stateTable.put(ObjectName, viewPanel);
                vtElementOrder.addElement(ObjectName);
            catch(Exception _ex) { }
    private static void removeElementHashTable(String s)
            try
                for(; stateTable.containsKey(s); stateTable.remove(s));
                for(; vtElementOrder.contains(s); vtElementOrder.removeElement(s));
            catch(Exception _ex) { }
        }Main method for manipulation
    private static synchronized void performHashTable(boolean flagInOut, String ObjectName, ViewPanel viewPanel)
            if(flagInOut)
                addElementHashTable(ObjectName, viewPanel);
            else
                removeElementHashTable(ObjectName);
        }The performHashTable() method is called at init() and stop() events of the Applet.
    Please note that if I remove "static" from all resources and methods above, the applet works smoothly.
    Please let me know the reason and how to fix it?
    Thanks in advance.
    Chinh

    egads!
    for(; stateTable.containsKey(s); stateTable.remove(s));
    time for thedailywtf.com !

  • Caching static resources of Webapp on WLS8.1?

    Hi,
    Are there any possibility to cache static resources of Webapp on WLS8.1? Or is the only possibility to use Squid?
    BR Mervi

    Can you show me the error you receive?
    Another simple test would be to deploy your application to a new, empty
    server.
    You can create a new domain as easy as this:
    mkdir testDomain;
    cd testDomain;
    java weblogic.Server
    Type in the username/password that you want and answer 'Yes' when it
    asks if you want to create a new domain.
    Try deploying your jar to this new domain, and let me know if it still
    fails.
    -- Rob
    Jeff Dooley wrote:
    Hi,
    I have an jar file under applications which I have deployed fine on WLS 8.1 in the past. I changed the method signature on one of the EJB classes in the jar. One of the parameters now takes a different Java class type. I have recompiled everyone and repackaged the jar but when I try to deploy the jar it gives me an error because the the local interface of the EJB does not have the old Java class parameter type.
    I have checked the jar, classes in the jar, and the ejb-jar.xml and weblogic-ejb-jar.xml in the jar and it is looks fine. I have cleaned out my server deployment directories and verified the classpath in case the older jar was in there and everything looks OK. It seems for some reason 8.1 is caching the old ejb-jar.xml or somehow is remembering the old method signature and will not process the updated jar. Has anyone seen anything like this?
    Thanks for any help or recommendations

  • How to connect my ipad using static ip

    How to connect my ipad using static ip?
    Using Netgear Router.

    Go to Setting > General > Network > WiFi > Then tap the blue icon next to your network, from here you can setup a static IP on your internal network.

  • MS Project Very Slow and Project Files Large when Using Shared Resource Pool

    Hello,
    We are using MS Project 2010 Professional in our organization and using a shared resource pool so we can easily identify resource conflicts.  When we started this process many months ago the resource pool worked great.  Now that we have nearly
    all of our projects (~40) using the resource pool, it has become essentially unusable.  Each project file that is sharing the resource pool is 12 MB or greater in file size, and most of the project files contain less than 100 lines.  Saving any file
    takes ~4 minutes.  As a result, many of the resource managers and project managers are starting to avoid using MS Project which is undermining our original intent.
    Any thoughts on what we could try to regain the usability, make the file sizes smaller, improve save times, etc.?  Will MS Project Server fix all of these issues?
    Thanks,
    Josh

    If any of your PMs renamed, moved or over-wrote their project file whilst linked to the Resource Pool or a master, then the file may well have corrupted itself or the pool or both. With 40 files, you can guarantee one or more PMs will do one of the above,
    so file corruption is a when, not if (2days or 2 years or more).
    For 40 projects Project Server or any solution that copies data to a database so the resource data can be consolidated is needed. Project Server is not a simple application, it's a full server and requires proper training and processes to add value. And
    it needs configuring by someone who knows what they're doing!
    In the mean time try unattaching all project files from the pool, then create a new blank pool and re-attach.You will also need to File, Save as to repair each project file if needed. For bad corruption save as to a .xml format then re-import to a blank
    project.
    Or, create a new master each time by inserting all projects into a new blank project, but deselecting the Link option. All tasks are then copied and the resource data consolidated. Record a macro to make creating this very quick and easy (provided your network
    isn't too slow).
    <p>Rod Gill</p> <p><a href="http://www.project-systems.co.nz/project-vba-book/index.html/">The one and only Project VBA Book</a> <a href="http://www.project-systems.co.nz/"></p> <p>Rod
    Gill Project Management</a></p>

  • Using Static Variable against Context Attribute for Holding IWDView

    Dear Friends,
    I have a method which is in another DC which has a parameter of the type IWDView. In my view, I will have an action which will call the method in another component by passing the value for the view parameter. Here, I can achieve this in 2 types. One is - I declare a static variable and assign the wdDoModifyView's view as parameter value and I can pass this variable as parameter whenever calling that method or the second way - create an attribute and assign the same wdDoModifyView's view parameter as its value. Whenever I call this method, I can pass this attribute as parameter. What is the difference between these two types of holding the value since I am storing the same value i.e., wdDoModifyView's view parameter. But when I trigger the action from different user sessions, the first type of code (using static variable) prints the same value in both the sessions for view.hashCode() and View.toString(), but the same is printing the different values when I pass the attribute which holds the view parameter.
    Clarification on this is highly appreciated
    The problem I face is when I use static variable to get the view instance and export the data using the UI element's id, the data belonging to different user sessions is mixed up where as when I use Context Attribute, the same problem doesn't arise. I want to know the reason why it is so. Is there any other place or way where I can get the current view instance of each session instead of wdDoModifyView?

    Hi Sujai ,
    As you have specified the problem that we face when we use  static attributes, when end users are using the application .
    Static means i  have n number of objects but the static variable value will remain same every where.
    when it is context attribute for every object i.e nth object you have a nth context attribute i mean nth copy of the context attribute.
    so every user has a unique Iview parameter , when context is used and
    when static is used  , assume you have userA , his iview is set this intially  and u have another user B , when he is using  , since the variable is static and when you access this variable you will get the value of userA.
    Regards
    Govardan Raj

  • Premiere Pro CC not using all resources... 4k

    I just put together a new workstation machine for editing 1D-C 4k files in Premiere Pro and After Effects.
    Specs...
    i7 3770     3.4
    Gigabyte Z77 Mobo
    32gb Corsair Vengance DDR3 1600 RAM
    250gb Samsung SSD
    4x 2TB Seagate 7200 HDDs in RAID 0 (Yes I know it isn't backed up, we have that part covered)
    Nvidia Quadro K4000 (3gb vram)
    Anyway, we transfered a project with all the media files to our RAID media drive.
    It opened up very quickly and loaded all the media much faster then our old workstation.
    Then I hit the spacebar (perview) and the problems started..
    It won't play back smoothly at all,
    AND it is only running the CPU at 10-20%, GPU 10-50%, ram at 25% and it is not really taxing the drives very hard either...
    Why won't PP use all the resources at 100% like I have previously seen it do on other machines?
    ** The project we are trying to play is 2 layers of 4k .MOV footage in a 1080 timeline... with sharpening, Fast color corrector, and RGB curves.
    ** It also drops every fourth frame when playing back just one layer of 4k .mov footage in a 1080 timeline with NO Effects applied. (Much smoother, but still not using all resources)
    What I am asking, is why would it be giving up so quickly? Before even taxing the resources very hard?

    I too have a recent 1D-C project I'm editing.  That 1D-C is something, yes?  Most filmic images I've ever seen from a DSLR.  But I digress. 
    I'm following a workflow closer to the one used by Philip Bloom and Shane Hurlbut.  The Motion Jpeg files will not play well at all on your system.  It's strictly a capture medium - not an editing one.
    I converted all my 1D-C files to Prores 422 at 4K size using Mpeg Streamclip.  Those files imported beautifully and edit well on my Retina Macbook Pro laptop.  I usually set playback to 1/2 quality, ps. 
    I have had problems using CUDA, so I'm sticking to software mode.  But I don't see any problem with being able to cut my film and finish on my computer.
    Also - my sequence is a 4K sequence right in Premiere.  I simply chose a clip and "made a sequence" from that.  Why scale when I don't have to?  I've exported to 1080p easily from the sequence. 
    If anyone finds this workflow less than ideal, I'm all ears.  Thanks. 

  • Best Practice for Using Static Data in PDPs or Project Plan

    Hi There,
    I want to make custom reports using PDPs & Project Plan data.
    What is the Best Practice for using "Static/Random Data" (which is not available in MS Project 2013 columns) in PDPs & MS Project 2013?
    Should I add that data in Custom Field (in MS Project 2013) or make PDPs?
    Thanks,
    EPM Consultant
    Noman Sohail

    Hi Dale,
    I have a Project Level custom field "Supervisor Name" that is used for Project Information.
    For the purpose of viewing that "Project Level custom field Data" in
    Project views , I have made Task Level custom field
    "SupName" and used Formula:
    [SupName] = [Supervisor Name]
    That shows Supervisor Name in Schedule.aspx
    ============
    Question: I want that Project Level custom field "Supervisor Name" in
    My Work views (Tasks.aspx).
    The field is enabled in Task.aspx BUT Data is not present / blank column.
    How can I get the data in "My Work views" ?
    Noman Sohail

  • I have time capsule and I am unable to connect to the internet using static public IP

    I have been using my Time Capsule on my company network for some time.
    Recently I removed the time capsule and connected the TC  Wan port directly to the firewall.  We have got block of static IPs provided to us from our ISP.
    Im confused in filling up the internet tap on the Airport Utility (Lion Version)
    If Im using a static public IP to connect to the internet should I use
    Static, DHCP or PPoe?
    IP Address: is this the IP address of the public IP address given to Us from ISP?
    Subnetmask. ..no problem
    Router Address: what should I type here: IP address of my firewall or my ISP's GateWay IP?
    DNS servrs are clear...
    Please guide me.

    Normally you would just set this up with dhcp to the firewall.. if the firewall is setup correctly it will simply pass you one of the block of static IP addresses.. if it doesn't or get a NAT address you should be able to allocate a static IP to the TC in the firewall to its MAC address.
    I am not sure that the static IP will work if you just type it in.
    If you want to have a go..
    If Im using a static public IP to connect to the internet should I use
    Static, DHCP or PPoe?
    Try static only if dhcp doesn't work because the firewall is not setup.
    IP Address: is this the IP address of the public IP address given to Us from ISP?
    Yes, a free IP from the block.
    Router Address: what should I type here: IP address of my firewall or my ISP's GateWay IP?
    Either should work if the firewall is setup correctly.. otherwise just try ISP gateway.

  • How to specify term file when using static html to run webforms 10g

    I'm using static HTML to run forms
    document.writeln('<PARAM NAME="serverArgs" ');
    document.writeln(' VALUE="escapeParams=true module=genoa.fmx userid= sso_userid=%20 sso_formsid= sso_subDN= sso_usrDN= debug=no host= port= term=/forms90/hsd65html/genoa.res"> ');
    I'm specifying the term as term=/forms90/hsd65html/genoa.res.
    During forms startup I get the message unable to read the file. I can bwoense the file by http://server/forms90/hsd65html/genoa.res
    Any idea how to specify the term file in static html.
    Thanks

    term is not a http address, but a directory address. So, you have to specify the path on the server:
    term=c:\oracle\forms90\.....

  • Changes are not reflecting using af:resource for adding CSS

    Hi,
    I am trying to add new CSS file(say the name as customNew.css) to page template using af:resource tag, the changes are not reflected. Instead I see(using firebug) that, styles coming from different CSS file(say the name as customOld.css ) which configured on trinidad-config.xml and trinidad-skins.xml files.
    I was under the impression that, the new CSS file(customNew.css) will override the old css (customOld.css). So, CSS added using af:resource tag will not override any other CSS ???
    Any help will be appreciated
    Thanks,
    San.

    Hi,
    if you bring CSS to the browser through af:resource then this is not overriding any skinning definition. Skins can only changed in trinidad-config.xml file (which also can be done at runtime). Just adding a CSS file to af:resource wont do the trick here.
    Frank

  • When should I use static variable and when should not? Java essential

    When should I use static variable and when should not? Java essential

    Static => same value for all instances of the class.
    Non-static => each instance can have its own value.
    Which you need in which circumstances is completely up to you.

  • How to use common resource bundle across all the development components ?

    Hi,
    I am working on SAP NetWeaver Developer Studio - JAVA
    How to use common resource bundle across all the development components ?
    Description :
    I have a requirement of creating a resource bundle (resource.properties) and use that common resource bundle in all the development components.
    Can we create a  development component (war and ear both) and create only resource.properties in this development component( DC ) and create the dependency of the same DC  in all the other DCs ?
    Thanks,
    Neha

    Hello Neha 
    This question is more NWDS related.
    You may have a better chance of someone answering the thread under
    SAP Netweaver -> SAP NetWeaver Development Infrastructure (NWDI, formerly known as JDI) forum
    Thanks
    Kenny

Maybe you are looking for