Access PortletPreferences from jsp

Try to obtain renderRequest object to have access to PortletPreferences
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
<portlet:defineObjects/>
Got error message with the tag DefineObjectsTag. Please help!!!
Error opening /pageflow/monitor/ToolList/tools.jsp.
The source of this error is java.lang.NullPointerException at weblogic.utils.UnsyncHashtable.put(UnsyncHashtable.java:277)
at weblogic.servlet.jsp.PageContextImpl.setAttribute(PageContextImpl.java:163)
at com.bea.portlet.container.tags.DefineObjectsTag.doStartTag(DefineObjectsTag.java:39)
at jsp_servlet._pageflow._monitor._toollist.__tools._jspService(tools.jsp:9)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:446)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at

It seems that you're using this tag in a JSP that is not included via a
ava portlet. In this case, implicit objects like renderRequest and
renderResponse would be null, and that explains the exception.
For non-Java portlets, try getting preferences from
PortletPresentationContext.
Subbu
Jack Liu wrote:
Try to obtain renderRequest object to have access to PortletPreferences
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
<portlet:defineObjects/>
Got error message with the tag DefineObjectsTag. Please help!!!
Error opening /pageflow/monitor/ToolList/tools.jsp.
The source of this error is java.lang.NullPointerException at weblogic.utils.UnsyncHashtable.put(UnsyncHashtable.java:277)
at weblogic.servlet.jsp.PageContextImpl.setAttribute(PageContextImpl.java:163)
at com.bea.portlet.container.tags.DefineObjectsTag.doStartTag(DefineObjectsTag.java:39)
at jsp_servlet._pageflow._monitor._toollist.__tools._jspService(tools.jsp:9)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:446)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at

Similar Messages

  • Error in accessing servlet from JSP

    Hello everybody,
    When I access a servlet from a JSP page,I am getting the following error message :
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
    I am using Weblogic 7.0 and my web.xml code is as follows:
    <web-app>
    <servlet>
    <servlet-name>TestServlet</servlet-name>
    <servlet-class>TestServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>TestServlet</servlet-name>
    <url-pattern>/TestServlet</url-pattern>
    </servlet-mapping>
    </web-app>
    I am accessing the servlet from a javascript function in my JSP page.
    I am quite new to the Java technology. So any help in this regard would be highly appreciated.
    Thanks in advance,

    The form action event is in a javascript function. I am sorry I mentioned that I am accessing this servlet from JSP. Actually,this servlet is accessed from an HTML document.
    The following is the javascript code:
    <script language="javascript">
    function lfnCallNext()
         alert("In the function");
         frmMain.method="POST";
         frmMain.action="/TestServlet";
         frmMain.hidChoice.value="GetList";
         frmMain.submit();
    </script>
    And this function is called from an hyperlink as follows:
    Work with Employee Database
    Thanks,

  • Error when accessing Entity from JSP

    I'm trying to develop an application in Jboss AS.
    I have an Entity Class named Users and a stateful session named LoginActionBean which has the following method:
      public Users checkUser(String t1,String t2){
             Users test = (Users) em.createNamedQuery("Users.login").setParameter("userUsername",t1).setParameter("userPwd",t2).getSingleResult();
                return test;
        }In my jsp file, I try to do the following:
    Users a;
    public void jspInit() {
        try {
            InitialContext ic = new InitialContext();
            bci = (LoginActionLocal) ic.lookup("deytera_pasxa/LoginActionBean/local");
        } catch (Exception ex) {
            System.out.println("Error:"+
                    ex.getMessage());
    try {
        s2 = request.getParameter("username");
        s3 = request.getParameter("password");
        if (s2 != null && s3 != null) {
                a = bci.checkUser(s2,s3);
    .....I get no compilation error but when I try to run it I get:
    20:28:08,650 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
    java.lang.NoSuchMethodError: ejb.LoginActionLocal.checkUser(Ljava/lang/String;Ljava/lang/String;)Lejb/Users;
            at org.apache.jsp.isLogged_jsp._jspService(isLogged_jsp.java:90)
            at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
            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 org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
            at java.lang.Thread.run(Thread.java:595)at the moment checkUser() is called. If I change the method's return type to let's say boolean and change the code, it works perfectly fine!
    I'm stuck here for 3 hours, any help much appreciated.
    Edited by: SyMpToM on May 5, 2008 11:03 AM
    Edited by: SyMpToM on May 5, 2008 11:04 AM

    The form action event is in a javascript function. I am sorry I mentioned that I am accessing this servlet from JSP. Actually,this servlet is accessed from an HTML document.
    The following is the javascript code:
    <script language="javascript">
    function lfnCallNext()
         alert("In the function");
         frmMain.method="POST";
         frmMain.action="/TestServlet";
         frmMain.hidChoice.value="GetList";
         frmMain.submit();
    </script>
    And this function is called from an hyperlink as follows:
    Work with Employee Database
    Thanks,

  • Accessing Servlets from JSPs

    Hi!
    I'm developing a web application with JSPs and servlets using JDeveloper 3.2.
    With the integrated web-to-go web server I can either start a JSP environment or a servlet environment.
    My question: What do I have to do to start the JSP environment with access to servlets?
    I tried to start the wizard Web Object Manager, but I get the error message "Could not load servlet information from Web Server". When I try to register a Servlet in this wizard, it will hang up.
    What's wrong? Are there any other possibilities to configure the web-to-go web server, so that I can access JSPs and servlets?
    Thanks for your help!
    Brian

    Hi!
    I finally found the solution myself.
    The problem was that the entry "HTML source" under "Project Properties" was empty. I entered "servlets" and started the "Web Object Manager" without any problem. My servlet was registered and I could access it from my JSP.
    I hope that you can benifits from my experience.
    Cu
    Brian

  • Error Failed to load database information - access report from jsp in linux

    Hi,
    While accessing the report from my jsp file I got the below error. I am using Crystal Report Server 2008 V1 in linux environment.
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Failed to load database information.
    Error in File rpt_dp_customer_stmt {9515FCCB-0245-11E0-9DA4-000C29D5AD7D}.rpt:
    Failed to load database information.---- Error code:-2147482931 Error code name:failed
         com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwReportSDKServerException(Unknown Source)
         com.crystaldecisions.proxy.remoteagent.s.a(Unknown Source)
         com.crystaldecisions.sdk.occa.report.application.cf.a(Unknown Source)
         com.crystaldecisions.sdk.occa.report.application.z.a(Unknown Source)
         com.crystaldecisions.sdk.occa.report.application.ak.if(Unknown Source)
         com.crystaldecisions.sdk.occa.report.application.ad.int(Unknown Source)
         com.crystaldecisions.sdk.occa.report.application.bk.for(Unknown Source)
         com.crystaldecisions.proxy.remoteagent.v.a(Unknown Source)
         com.crystaldecisions.proxy.remoteagent.v.if(Unknown Source)
         com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(Unknown Source)
         com.crystaldecisions.sdk.occa.report.application.DatabaseController.setTableLocation(Unknown Source)
         org.apache.jsp.formula_jsp._jspService(formula_jsp.java:117)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Moreover, in my jsp i am passing the data base parameter like below,
    PropertyBag logonProperties = new PropertyBag();;
        mainPB.put(PropertyBagHelper.CONNINFO_CRQE_LOGONPROPERTIES, logonProperties);
        mainPB.put(PropertyBagHelper.CONNINFO_DATABASE_DLL, "libcrdb_jdbc.so");
        logonProperties.put("Database Class Name", "oracle.jdbc.driver.OracleDriver");
        logonProperties.put("Use JDBC", "true");
        logonProperties.put("Connection URL", url);
        logonProperties.put("Server", dbserver);
    Also I set the LD_LIBRARY_PATH in linux machine, because i have the libcrdb_jdbc.so file on that path.
    /home/ReportServer/bobje/enterprise120/linux_x86/crpe/

    Its working. I gave crdb_jdbc.dll name in the connection info

  • EJBs From JSPs - Tutorials?

    Hi all,
    I've just been given a task, and I don't know where to start. I've been given an EJB and I need to write a web front end to test it (JSP). Now if it was a plain JavaBean, I know how to do it. But I know EJB's are different.
    Could somebody point me in the direction of a good tutorial about accessing EJBs from JSPs. I'm using WebLogic as my application server, so something relevant to that would be nice.
    Cheers for any help.

    To put it in "idiot" terms:
    Think of your EJBs as people you want to ring up on the phone. You know their name, but not their number. How do you do this in real life? You use a phone book, using the person's name as a reference, which will lead you to the right number to dial.
    The phonebook in this paradigm is JNDI - the naming and directory interfaces.
    The name you use to look up is how the EJB is bound (ie, "java:comp/env/ejb/MyPerson", or "foo/bar/beans/MyPerson"). You define this name (the phone number) in the deployment descriptors packaged with the EJBs in the jar file.
    You access the phone book (in your JSP or some other bean in your webapp) by using a Context.
    ie:
    Object objRef = initialContext.lookup("foo/bar/beans/MyPerson");
    Then you ask the context for the person's home information:
    MyPersonHome home = (com.foo.interfaces.MyPersonHome)PortableRemoteObject.narrow(objRef, com.foo.interfaces.MyPersonHome.class);
    Once you know where they live (you have their Home information), you can ring them up (create them, search for them, search for a singular one)
    MyPerson bill = home.findByPersonNameInHouse("billy");
    once you have Billy in your possession, yu can perform business logic on him:
    String stats = bill.getStatistics();
    // get rid of bill permanently
    bill.remove();
    That should be enough of an introductory paradigm. You will need to follow along the tutorials and other many documents to understand exactly how things are bound (phone numbers are listed) and so forth.
    Good luck!

  • 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.

  • Urgent-how to access custom tag from jsp tag

    I have a problem accessing a custom tag from a jsp expression.
    Details: I have a custom tag that returns a string variable. I need to access that variable from jsp expression <%%>.
    Can any body help me?

    Tags don't "return" values as in the normal sense.
    They can only support TEI (Tag Extra Information) that just stuffs a declared variable into the page's state.
    For example, if the tag class had a public method called getValue(), you could do the following:
    <xmp:mytag id="foo"/>
    <%
    out.println("value is " + foo.getValue());
    %>

  • Problem with accessing init parameters from JSP file

    Hi,
    I have my init parameters and Jsp configured in web.xml
    <servlet>
              <servlet-name>TestJsp</servlet-name>
              <jsp-file>/Test.jsp</jsp-file>
              <init-param>
                   <param-name>username</param-name>
                   <param-value>Balboa</param-value>
              </init-param>
    </servlet> How do I access 'username' field from JSP file.
    Kindly help.
    Thanks.

    you can do this in the jsp
    <%=config.getInitParameter("username")%>or do it in the jspInit method in the jsp:
    <%!  String userName = null; 
      public void jspInit() {   
        ServletConfig config = getServletConfig();   
        userName   = config.getInitParameter("userName ");  
    %>
    Hello <%=userName%>

  • Database Access from JSP - Is it correct?

    From a JSP Page, we need to retreive data from the database. We have our own application specific API commands to retreive data from database. We have doubts in using this API commands.
    Approach 1:
    From the jsp, send the query details to a Java file (BO). From the java file (BO), call the database and retreive the data
    Approach 2:
    Use the API command directly from the jsp page to retreive details from the database.
    In both approaches, the same API command is going to be used. We just want to know is there any advantage in calling the database through the java file (BO) instead of directly from the jsp?
    Regards,
    R.Aravinth

    Thanks Ram. But we are not going to have any complex
    codes written for data retreival. We just epxect a
    single line of code which will call database and that
    API command will return us a storage variable which
    we will use for displaying purpose.
    ok take a look at this
    //code to display lot of other stuff
    <%
        try {
           //code to access db and get data;
        catch(SomeException e){
            //oh-oh you are already on the display logic and have output a lot of stuff
            //how do you handle this
    %>versus this
    //code in some handler or bean
       try{
               //code to get data
              //set an attribute to enable a redirect to jsp page
        catch(Exception e){
              //handle exception, log ?
              //set an attribute to enable a redirect to error page
    Anyways, i wanted to know will the performance of the
    page improve if we call the database from a separate
    java rather than directly from jsp?As evnafets said, the answer is no. It may even be faster :)
    cheers,
    ram.

  • How to access COM+ Objects From JSP

    Friends,
    We have a requirement to access COM+ objects from JSP. Please guide me on this.
    Thanks in advance.
    Tarani

    Sanyam wrote:
    if there is any .dll extension file, how can we read that file in labview?
    You can use Call Library Function node to call that dll file and use it in LabVIEW. Read the help and you will get more details.

  • 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

  • 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)

  • Access to a method located in view object from JSP page?

    Hi,
    How can i access a public method which is loacted in view
    object "viewobjectImpl.java" from JSP page.

    Juan,
    Either via Data tags or/and Java embedded code.(<%...%>).
    This method, suppose to execute a stored procedure.
    Thanks

  • Can we place jsp pages on JAVA_TOP and access them from controllers

    can we place jsp pages on JAVA_TOP and access them from controllers from the same path?
    Soujanya

    Hi All,
    Can any one please resond to this thread for atleas discussion.We have folder on HTML top with all jsps.We want to move the folder from HTML top to some other TOP.We are planning to move them to JAVA_TOP.
    But we could not refer or call the file from JAVA_TOP.
    Any solution.
    Thanks
    Soujanya

Maybe you are looking for

  • Unable to install (Configure) on Mac OS X (10.4.10)

    Greetings: I've tried to run the configure within /usr/local/db<ver>/unix_build and got the following error in config.log: configure:3902: checking for C compiler version configure:3909: /opt/local/ccache/bin/cc --version >&5 ../dist/configure: line

  • Plug in errors

    I am using Adobe Acrobat 7.0. It has been working fine, until late yesterday morning. Now when I open it, I get the following messages: error loading plug-in 'catalog.api' failed to initiate error loading plug-in 'JDFProdDef.api failed to initiate er

  • How come when i press the sleep on my MBP it auto shut down?

    How come when i press the sleep on my MBP it auto shut down?

  • Youtube video's | bug?

    Hello all, Since a couple of weeks were distributing folio's. In this edition, a page contains 6 different youtube video's. I've created a box for all video's, inserted their URL by youtube's share - embed. In Adobe content viewer everything works No

  • SQR V9 Error

    We just went from 8.x to 9. I have a sqr program that attaches to 6 different databases, Qracle, SQL Server, DB2, etc. Program has been running for 8 months, now with V9 I am getting a NTDLL.DLL error. I can connect to Oracle and then SQLServer, when