Accessing static content (javscript, css) from JSPs in portal component

Hello,
I have a portal component with some jsp files in the folder dist/PORTAL-INF/jsp . Within the jsps I want to access some css and javascript files which I've put in the folders dist/css and dist/scripts. Can anybody tell me how I can access them from the jsp?
Thanks and best regards
Dominik

Hello,
I finally solved it. To whom it may concern:
The integration in the JSP should look like the following:
<%
IPortalComponentResponse componentResponse = (IPortalComponentResponse)pageContext.getAttribute(javax.servlet.jsp.PageContext.RESPONSE);
IResource css = componentRequest.getResource(IResource.CSS, "css/style.css");
IResource js = componentRequest.getResource(IResource.SCRIPT, "scripts/script.js");
componentResponse.include(componentRequest, css);
componentResponse.include(componentRequest, js);
%>
And make sure that the css file does NOT start with the tag
<style type="text/css">
Best regards,
Dominik

Similar Messages

  • Access Content Space docs from JSP!

    Hi,
    How do I access PDF docs in contentSpace from JSP page?
    Regards,
    Srujan

    Detail error code is
    ALC-CSV-30101-000: 
    com.adobe.livecycle.contentservices.client.exceptions.CSInvalidParameterException: ALC-CSV-030-101-Invalid or No Store specified while invoking [retrieveContent].at com.adobe.livecycle.contentservices.dsc.impl.DocumentManagementServiceImpl.retrieveConten t( 
    DocumentManagementServiceImpl.java:444)at sun.reflect.GeneratedMethodAccessor2455.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke( 
    DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke( 
    Method.java:597)at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke( 
    DefaultPOJOInvokerImpl.java:118)at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept( 
    InvocationInterceptor.java:140)at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed( 
    RequestInterceptorChainImpl.java:60)at com.adobe.idp.dsc.interceptor.impl.DocumentPassivationInterceptor.intercept( 
    DocumentPassivationInterceptor.java:53)at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed( 
    RequestInterceptorChainImpl.java:60)at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction( 
    TransactionInterceptor.java:74)at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute( 
    EjbTransactionCMTAdapterBean.java:357)at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doSupports( 
    EjbTransactionCMTAdapterBean.java:227)at sun.reflect.GeneratedMethodAccessor777.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke( 
    DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke( 
    Method.java:597)at org.jboss.invocation.Invocation.performCall( 
    Invocation.java:359)at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke( 
    StatelessSessionContainer.java:237)at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke( 
    CachedConnectionInterceptor.java:158)at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke( 
    StatelessSessionInstanceInterceptor.java:169)at org.jboss.ejb.plugins.CallValidationInterceptor.invoke( 
    CallValidationInterceptor.java:63)at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext( 
    AbstractTxInterceptor.java:121)at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions( 
    TxInterceptorCMT.java:378)at org.jboss.ejb.plugins.TxInterceptorCMT.invoke( 
    TxInterceptorCMT.java:181)at org.jboss.ejb.plugins.SecurityInterceptor.invoke( 
    SecurityInterceptor.java:168)at org.jboss.ejb.plugins.LogInterceptor.invoke( 
    LogInterceptor.java:205)at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke( 
    ProxyFactoryFinderInterceptor.java:138)at org.jboss.ejb.SessionContainer.internalInvoke( 
    SessionContainer.java:648)at org.jboss.ejb.Container.invoke( 
    Container.java:960)at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke( 
    BaseLocalProxyFactory.java:430)at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke( 
    StatelessSessionProxy.java:103)at $Proxy401.doSupports(Unknown Source)
    at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute( 
    EjbTransactionProvider.java:104)at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept( 
    TransactionInterceptor.java:72)at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed( 
    RequestInterceptorChainImpl.java:60)at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept( 
    InvocationStrategyInterceptor.java:55)at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed( 
    RequestInterceptorChainImpl.java:60)at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept( 
    InvalidStateInterceptor.java:37)at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed( 
    RequestInterceptorChainImpl.java:60)at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept( 
    AuthorizationInterceptor.java:188)at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed( 
    RequestInterceptorChainImpl.java:60)at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept( 
    JMXInterceptor.java:48)at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed( 
    RequestInterceptorChainImpl.java:60)at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke( 
    ServiceEngineImpl.java:121)at com.adobe.idp.dsc.routing.Router.routeRequest( 
    Router.java:129)at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.invoke( 
    AbstractMessageReceiver.java:329)at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invokeCall( 
    SoapSdkEndpoint.java:139)at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invoke( 
    SoapSdkEndpoint.java:81)at sun.reflect.GeneratedMethodAccessor791.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke( 
    DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke( 
    Method.java:597)at org.apache.axis.providers.java.RPCProvider.invokeMethod( 
    RPCProvider.java:397)at org.apache.axis.providers.java.RPCProvider.processMessage( 
    RPCProvider.java:186)at org.apache.axis.providers.java.JavaProvider.invoke( 
    JavaProvider.java:323)at org.apache.axis.strategies.InvocationStrategy.visit( 
    InvocationStrategy.java:32)at org.apache.axis.SimpleChain.doVisiting( 
    SimpleChain.java:118)at org.apache.axis.SimpleChain.invoke( 
    SimpleChain.java:83)at org.apache.axis.handlers.soap.SOAPService.invoke( 
    SOAPService.java:454)at org.apache.axis.server.AxisServer.invoke( 
    AxisServer.java:281)at org.apache.axis.transport.http.AxisServlet.doPost( 
    AxisServlet.java:699)at javax.servlet.http.HttpServlet.service( 
    HttpServlet.java:710)at org.apache.axis.transport.http.AxisServletBase.service( 
    AxisServletBase.java:327)at javax.servlet.http.HttpServlet.service( 
    HttpServlet.java:803)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( 
    ApplicationFilterChain.java:290)at org.apache.catalina.core.ApplicationFilterChain.doFilter( 
    ApplicationFilterChain.java:206)at com.adobe.idp.dsc.provider.impl.soap.axis.InvocationFilter.doFilter( 
    InvocationFilter.java:43)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( 
    ApplicationFilterChain.java:235)

  • Redirecting from an abstract portal component

    Hi,
    I'm trying to redirect from an abstract portal component to a quicklink. I do it like told in this thread:
    Redirecting to external website from abstract portal component?
    private void redirectUrl(String target, IPortalComponentRequest request) {
      try {
        HttpServletResponse resp = request.getServletResponse(true);
        resp.sendRedirect("../../../../portal/" + target);
      } catch (IOException e) {}
    It works, but the content of my target-URL is still in the Portal-Frame. So I've two time the Portal-Framework-Navigation. Something like this:
    | Welcome         |
    | Welcome         |
    | content         |
    |                 |
    |                 |
    |                 |
    My goal is to redirect the whole page, not only the frame.
    Thanks for any help...
    Regards, Markus

    Perhaps I can do it with
      public void doOnNodeReady(IPortalComponentRequest request){
        request.redirect("http://www.google.de");
    But like in this Tread, it didn't work AbstractPortalComponent and doOnNodeReady

  • UNABLE TO ACCESS SECURED EJB USING IIOP FROM JSP

    Following codes does not work with IIOP when called from jsp returns an
    com.sap.engine.services.iiop.CORBA.CORBAObject:com.sap.engine.services.iiop.server.portable.Delegate_1_1@8312b1 step2 RemoteException occurred in server thread; nested exception is: java.rmi.RemoteException: com.sap.engine.services.ejb.exceptions.BaseRemoteException: User Guest does not have access to method create(). at
    Following codes does not work with IIOP when called from a fat client returns an
    org.omg.CORBA.UNKNOWN:   vmcid: 0x0  minor code: 0 completed: Maybe
            at com.sun.corba.se.internal.core.UEInfoServiceContext.<init>(UEInfoServ
    iceContext.java:33)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
            at com.sun.corba.se.internal.core.ServiceContextData.makeServiceContext(
    Properties p = new Properties();
    p.put(Context.INITIAL_CONTEXT_FACTORY,
    "com.sun.jndi.cosnaming.CNCtxFactory");
    p.put(Context.PROVIDER_URL, "iiop://hostname:50007");
    p.put(Context.SECURITY_PRINCIPAL, "User");
    p.put(Context.SECURITY_CREDENTIALS, "pass");
    I have add java option to add IIOP filer
    -Dorg.omg.PortableInterceptor.ORBInitializerClass.com.sap.engine.services.iiop.csiv2.interceptors.SecurityInitializer
    Solution Required: Could you please detail me what steps in need to perform in order for me to access secure ejb using iiop protocol.
    FYI -- How ever ejb security works with P4 protocol, If required i can send you the test case ear.
    Thanks
    Vijay
    Following are the server side logs
    java.rmi.RemoteException: com.sap.engine.services.ejb.exceptions.BaseRemoteException: User Guest does not have access to method create().
         at test.TestEJBHomeImpl0.create(TestEJBHomeImpl0.java:91)
         at test._TestEJBHome_Stub.create(_TestEJBHome_Stub.java:214)
         at jsp_testIIOP1199698887113._jspService(jsp_testIIOP1199698887113.java:33)
         at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.engine.services.security.exceptions.BaseSecurityException: Caller not authorized.
         at com.sap.engine.services.security.resource.ResourceHandleImpl.checkPermission(ResourceHandleImpl.java:608)
         at com.sap.engine.services.security.resource.ResourceHandleImpl.checkPermission(ResourceHandleImpl.java:505)
         at com.sap.engine.services.security.resource.ResourceContextImpl.checkPermission(ResourceContextImpl.java:45)
         at test.TestEJBHomeImpl0.create(TestEJBHomeImpl0.java:89)
         ... 20 more
    ; nested exception is:
         java.lang.SecurityException: com.sap.engine.services.security.exceptions.BaseSecurityException: Caller not authorized.
         at com.sap.engine.services.security.resource.ResourceHandleImpl.checkPermission(ResourceHandleImpl.java:608)
         at com.sap.engine.services.security.resource.ResourceHandleImpl.checkPermission(ResourceHandleImpl.java:505)
         at com.sap.engine.services.security.resource.ResourceContextImpl.checkPermission(ResourceContextImpl.java:45)
         at test.TestEJBHomeImpl0.create(TestEJBHomeImpl0.java:89)
         at test._TestEJBHome_Stub.create(_TestEJBHome_Stub.java:214)
         at jsp_testIIOP1199698887113._jspService(jsp_testIIOP1199698887113.java:33)
         at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

    That's the code that you need to execute but you should
    probably encapsulate that code in Custom Action.
    Orion has a EJB Tag Library that is free to distribute that
    does all that stuff you just set some attributes.
    Go to their site and look at their Tag Libraries.
    Also look for other Tag Libraries Freely Available for EJB Access.

  • Accessing secured content area view from JPDK

    Is it possible to access the secured content are views from JPDK?
    For example if I am logged on as user USER1 in Portal, is it then possible to access WWSBR_ALL_ITEMS as USER1?

    hi,
    You can access Content Area APIs from any user using JDBC calls. But, you may have to grant 'EXECUTE' privileges on those procedures (& SELECT privilege if its a DB object like Table, VIEW).
    If you are using PL/SQL procedures in your application, you can directly access them through PL/SQL calls, otherwise you have to use JDBC.
    --Sriram                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Accessing same Content Management Repository from Multiple Domains

    I'm attempting to point many different domains to a single content management repository to avoid the duplication of data.
    All the domains are able to read content correctly, but when trying to create content (whether programmatically or through the admin tool), most of the domains will get this error:
    java.sql.SQLException: ORA-00001: unique constraint (SCHEMA_NAME.PK_CM_NODE) violated
    Since there's no sequence generated in the database, it appears that the primary key is defined by something in the portal code. This seems to imply that you can't have multiple domains pointing to the same repository. Can someone confirm that they've seen this work? And if you've gotten it to work, what I am doing wrong?
    Thanks for any help,
    Dan Turkenkopf

    This particular issue is inherent to the OOTB repository in WLP. The repository uses a sequencer to generate id's for created content. The way these ID's are generated causes the possibility of two applications attempting to create items with the same ID. This is due to the fact that the WLP repository manages the ID's used when creating content and doesn't currently use a GUID strategy for content id's.
    You could configure another repository which does ID generation in a different fashion and avoid the persistence problem I've described.
    The VCR layer which provides the access to the OOTB repository really only has the cache issue I described. This can be worked around with some custom event listener implementations that can manage stales caches. These would need to be aware of the other applications sharing the underlying content repository.
    -Ryan

  • Access static content in CDN through custom domain returned 404.

    Hello,
    I'm testing out the CDN functionalities. I've setup CDN and accessing az609001.vo.msecnd.net/pub/1.txt from browser works fine.  I also registered custom domain cdn.woics.com to associate to this CDN.  but accessing cdn.woics.com/pub/1.txt returns
    404.
    looking through document I think I have done all that is needed, does anyone know what did I miss?
    Thanks

    Hi,
    I'm glad to hear that you have solved your issue, thanks for your posting, please note: When you create or enable a CDN endpoint, it may take up to 60 minutes to propagate worldwide.
    Best Regards,
    Jambor
    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.
    Click
    HERE to participate the survey.

  • Problem Accessing Class in my package from jsp file

    Hi,
    I am using Apache tomcat server and i have made package which contains a class for database connection. I have imported this package in my jsp file but when i run the jsp tomcat gives the class not found exception. i have placed the jsp file in /webapps/my_project/ folder and the package in the /webapps/my_project/WEB-INF/classes/ folder.
    Still its not working.
    Please help me out!!!!!!!!

    hi,
    Thanks for ur reply. You have guessed it right, i dont have a .jar file its a .class file in a package subfolder. I have tried out ur suggestion but it didnt work. The following error i shown when i run it.
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    C:\Apache Tomcat 4.0\work\localhost\_\College\test$jsp.java:4: Package college_lib not found in import.
    import college_lib.*;
    ^
    1 error, 1 warning
    Here, College_lib is the package name which contains the class my class file
    Is there any problem with my Apache Tomcat4.0 or any other thing.
    Message was edited by:
    Despo

  • How to call servlet from jsp in portal applicaton...??

    JDeveloper - 11.1.1.6.0
    Hii all, i am working on an portal application in which i have added my adf application as portlet..
    in this adf application i am having an jsp page on the popup
    the action of this jsp page is set to an servlet
    <form id="form1" action="servlet/UpdateServlet">
    <input type="text" name="test"/>
    <input type="submit" value="SUBMIT"/>
    </form>
    But when i click on submit button, the servlet is not being called..
    The servlet is -
    public class UpdateServlet extends HttpServlet {
    private static final String CONTENT_TYPE = "text/html; charset=UTF-8";
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    public void doGet(HttpServletRequest request,
    HttpServletResponse response) throws ServletException,
    IOException {
    String value1 = request.getParameter("test");
    System.out.println("one : "+value1);
    Any help on this
    Thanks
    Edited by: 938480 on Oct 3, 2012 1:56 AM

    Which application server you are using.
    I am using JRUN SERVER.
    For me it is very easy
    I have to put my servlet in web-inf/classes/xx.class.
    Then i can run like
    http://localhost/xx.
    Let me know which server u are using.

  • How to import and display an applet from JSP

    i m using netbeans 5.0
    i have class named myapplet.class
    and jsp named myjsp.jsp
    now i want to access(import) this myapplet.class from jsp
    also i want to display this applet from this jsp
    i am able to do either thing but not both
    so please help me it is so urgent and important for me bcoz
    i have to complete my project as early as possible
    Thanks in advance

    my jsp source file page path is D:\Reliance
    project\WebApplication3\web\
    and classes path is D:\Reliance
    project\WebApplication3\build\web\WEB-INF\classes\
    so problem is that if i want to use myapplet.class
    then i have to put my class in D:\Reliance
    project\WebApplication3\build\web\WEB-INF\classes\
    location
    but at that time i am not able to display this applet
    on my jsp
    if i put my myapplet.class in
    D:\Reliance project\WebApplication3\web\ then i m
    able to display
    applet but not able to access(import) this class
    hope you will got the problem!!!
    thanks for your reply !!!try to set the path of your applet on jsp something like this
    "WEB-INF/classes/myclass.class"

  • Best Practice for serving static files (gif, css, js) from front web server

    I am working on optimization of portal performance by moving static files (gif, css, js) to my front web server (apache) for WLP 10 portal application. I end up with moving whole "framework" folder of the portal WebContent to file system served by apache web server (the one which hosts WLS plugin pointing to my WLP cluster). I use <LocationMatch> directives for that:
    Alias /portalapp/framework "/somewhere/servedbyapache/docs/framework"
    <Directory "/somewhere/servedbyapache/docs/framework">
    <FilesMatch "\.(jsp|jspx|layout|shell|theme|xml)$">
    Order allow,deny
    Deny from all
    </FilesMatch>
    </Directory>
    <LocationMatch "/partalapp(?!/framework)">
         SetHandler weblogic-handler
         WLCookieName MYPORTAL
    </LocationMatch>
    So, now browser gets all static files from apache insted of the app server. However, there are several files from bighorn L&F, which are located in the WLP shared lib: skins/bighorn/ window.css, wsrp.css, menu.css, general.css, colors.css; skins/bighorn/borderless/window.css; skeletons/bighorn/js/ util.js, buttons.js; skeleton/bighorn/css/layout.css
    I have to merge these files into the project and physically move them into apache served file system to make mentioned above apache configuration works.
    However, this approach makes me exposed bunch of framework resources, which I do not to intend to change and they should not be change (only custom.css is the place to make custom changes to the bighorn skin). Which is obviously not very elegant solution. The other approach would be intend to create more elaborate expression for LocationMatch (I am not sure it's entirely possible giving location of these shared resources). More radical move - stop using bighorn and create totally custom L&F (skin, skeleton) - which is quire a lot of work (plus - bighorn is working just fine for us).
    I am wondering what is the "Best Practice Approach" approach recommended by Oracle/BEA - giving the fact that I want to serve all static files from my front end apache server instead fo WLS app server.
    Thanks,
    Oleg.

    Oleg,
    you might want to have a look at the official WLP performance support pattern (Metalink DocID 761001.1 ) , which contains a section about "Configuring a Fronting Web Server Serving WebLogic Portal 8.1 Static Artifacts ".
    It was written for WLP 8.1, but most of the settings / recommendations should also to WLP 10.
    --Stefan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Referencing static html pages from jsps...

              Hi,
              This is probably a very simple thing to solve, but I'm having problems with referencing
              html pages from jsps under Weblogic.
              I get Error 404 - not found, whenever I try something like this in a JSP...
              <frame name="title" src="title.html" scrolling=no>
              The title.html file has definitely been copied into my ear file, and yet it isn't
              found. I can solve the problem by turning title.html into a jsp and registering
              it in web.xml. But this seems like serious overkill with static content!!
              Am I missing something really simple here?
              

              I've worked it out - directory mistake...
              Thanks,
              Chris
              "Matt Krevs" <[email protected]> wrote:
              >it sounds like a relative pathing problem
              >
              >is title.html reachable if you enter its address in the browser?
              >
              >is title.html in the same directory as your jsp?
              >
              >perhaps you could post your web.xml file?
              >
              >"Chris Sceats" <[email protected]> wrote in message
              >news:3d9c41b5$[email protected]..
              >>
              >> Hi,
              >>
              >> This is probably a very simple thing to solve, but I'm having problems
              >with referencing
              >> html pages from jsps under Weblogic.
              >> I get Error 404 - not found, whenever I try something like this in
              >a
              >JSP...
              >>
              >> <frame name="title" src="title.html" scrolling=no>
              >>
              >> The title.html file has definitely been copied into my ear file, and
              >yet
              >it isn't
              >> found. I can solve the problem by turning title.html into a jsp and
              >registering
              >> it in web.xml. But this seems like serious overkill with static content!!
              >>
              >> Am I missing something really simple here?
              >
              >
              

  • Host static content from Weblogic

    I have a need to host static content from my weblogic server in order to mimic the functionality of our old OHS server. In our case we used Apache rewrite rules in our old server that would catch someone trying to access the server directly by URL or trying to come in through HTTP instead of HTTPS and then pull the switch-a-roo on them and direct them directly to our APEX instance over a HTTPS connection. Is there a way to accomplish this same thing with weblogic without an Apache server acting as your front end?
    I found this article here http://blogs.oracle.com/middleware/2010/06/publish_static_content_to_weblogic.html about hosting static content but in my case I need the content actually at the root level (example http://domain.com/index.html) where I can throw in javascript redirect headers.
    The way I set this up was I have two servers on one box. The first server services standard HTTP requests on port 80. It will do nothing but redirect to the corresponding location on the same machine but over HTTPs on port 443.
    The server running on port 443 actually runs the APEX listener. I would like to deploy something similar to the first one that shows its content at https://server.domain.com to redirect to the Apex listener. I thought I might could repackage the apex listener to accomplish this but I would rather do it as a separate deployment rather than risk damaging our modified production copy of the APEX Listener.
    Anyone have any thoughts?

    What about using a virtual host? Create a virtual host and only target your application to that host.
    http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e13952/taskhelp/virtual_hosts/VirtualHosts.html
    Then within that virtual host, do something like this to force HTTPS:
    http://weblogicserver.blogspot.com/2009/11/force-confidentiality-for-web.html
    Then have an application that catches everything else deployed to the same server for other IP/hostnames and redirects to that virtual host. I haven't tried it, but I think that might do what you're asking about.

  • I need to erase all Contents and Settings from my i phone 5 but I forgot the restrictions passcode. How can I get it. ( Idon't have access to i tunes). Thanks.

    I need to erase all Contents and Settings from my i phone 5 but I forgot the restrictions passcode. How can I get it. ( Idon't have access to i tunes). Thanks.

    Not possible.  You need access to iTunes.
    The passcode will be required to make changes to these settings or to disable Restrictions. Note: If you lose or forget a restriction passcode, you will need to perform a factory restore to remove it.
    The above comes from here:
    http://support.apple.com/kb/HT4213

  • An error occurred while accessing the content repository from JDeveloper

    Hello,
    I'm using Jdeveloper Studio Edition Version 11.1.1.5.0
    I created Content Repository conection, following:
    RIDC Socket Type: socket
    Server hostname: localhost
    Content Server Listener Port: 4444
    Executing "Teste Connection" result "Success!"
    But, trying connect, I receive:
    oracle.webcenter.content.internal.model.rc.AbstractRepositoryLogic listFolder
    An error occurred while accessing the content repository.
    and when I login to my portal and go to administration page, then I am getting this error
    "Messages for this page are listed below.
    Could not retrieve members from policy store.
    and when I go to services tab then i am getting this error "The Documents service is unavailable.
    Error contacting the content repository."
    Please help me to resolve this problem.
    Thank You,
    Muhammad Nasir

    can anybody help me to resolve this issue please.

Maybe you are looking for