Creating Struts Portlet

Hi,
I am new to Weblogic Portal, I have integrated the struts application and also created the portlet for that. When I attach the struts portlet to Portal file and run my portal application. It shows me the blank portlet.
I am not getting any issue/ error/ problem.
I have included the
<controller processorClass="com.bea.struts.adapter.action.AdapterRequestProcessor"/> in my struts-auto-config-hello.xml file also I have included the
<init-param>
<param-name>config/hello</param-name>
<param-value>/WEB-INF/struts-auto-config-hello.xml</param-value>
</init-param>
in my web.xml file.
Still I am gettin the blank Struts porlet. Please suggest.
Thanks in Advance.

Hello,
I had some problems, please refer to the following stacktrace, please help me!!!!
Nhan
com.bea.netuix.nf.UIControlException: com.bea.portlet.adapter.scopedcontent.ActionLookupFailedException: javax.servlet.ServletException: org.apache.struts.chain.commands.InvalidPathException: No action config found for the specified url.
     at com.bea.netuix.servlets.controls.content.NetuiContentNoBeehive.checkPreRenderExceptions(NetuiContentNoBeehive.java:406)
     at com.bea.netuix.servlets.controls.content.NetuiContentNoBeehive.beginRender(NetuiContentNoBeehive.java:345)
     at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:485)
     at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
     at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
     Truncated. see log file for complete stacktrace
Caused By: com.bea.portlet.adapter.scopedcontent.ActionLookupFailedException: javax.servlet.ServletException: org.apache.struts.chain.commands.InvalidPathException: No action config found for the specified url.
     at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.executeAction(ScopedContentCommonSupport.java:721)
     at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.renderInternal(ScopedContentCommonSupport.java:265)
     at com.bea.portlet.adapter.scopedcontent.StrutsStubImpl.render(StrutsStubImpl.java:103)
     at com.bea.netuix.servlets.controls.content.NetuiContentNoBeehive.preRender(NetuiContentNoBeehive.java:294)
     at com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:428)
     Truncated. see log file for complete stacktrace
Caused By: javax.servlet.ServletException: org.apache.struts.chain.commands.InvalidPathException: No action config found for the specified url.
     at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286)
     at com.bea.struts.adapter.framework.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:572)
     at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
     at com.bea.portlet.adapter.scopedcontent.framework.internal.PageFlowUtilsStrutsDelegate.strutsLookupInternal(PageFlowUtilsStrutsDelegate.java:144)
     at com.bea.portlet.adapter.scopedcontent.framework.internal.PageFlowUtilsStrutsDelegate.strutsLookupInternal(PageFlowUtilsStrutsDelegate.java:74)
     Truncated. see log file for complete stacktrace
Caused By: org.apache.struts.chain.commands.InvalidPathException: No action config found for the specified url.
     at org.apache.struts.chain.commands.AbstractSelectAction.execute(AbstractSelectAction.java:71)
     at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
     at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
     at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
     at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
     Truncated. see log file for complete stacktrace

Similar Messages

  • How to create pdk java struts portlet in jdeveloper 11g

    Hi All,
    Im newbie ,I am unable to follow the steps in creating struts portlet on using Oracle portal developers guide in Jdeveloper 11g .can any one tell me the step by step procedure of creating struts portlet or any other related links.
    FYI:I stuck up in the guide which didn't explain how to create struts-config.xml( and its structure) and also how to create view and page flow .
    In the book they gave as :"To create a new view, first create a new set of ActionMappings (page flow) that will redirect the various actions and requests to Portal-specific JSPs. "
    Please help me on this, Thanks in Advance,
    Regards,
    siva
    Edited by: siva on Sep 25, 2011 10:51 PM

    You are mixing versions.
    JDev 11g needs the 11g SOA version (download from here )or use JDev10g together with Oracle SOA Suite 10.1.3.1.0
    Timo

  • Problem with struts portlet in Portal

    Hi,
    I would like to make a struts app as a portlet in bea portal.
    But when I try to make it using standard wizard to create Struts portlet
    after point struts-config.xml I get "Cannot parse the struts configuration file".
    What is wrong ? (I tried with many different struts-config.xml files, it doesn't
    work)
    I can't find any error details. in workshop files ?
    I have bea Workshop 8.1.
    Any help ?
    Thanks,
    Tom

    Ok I found solution on
    weblogic.developer.interest.portal.struts
    but where are error details ? which file ?
    "tmm" <[email protected]> wrote:
    >
    Hi,
    I would like to make a struts app as a portlet in bea portal.
    But when I try to make it using standard wizard to create Struts portlet
    after point struts-config.xml I get "Cannot parse the struts configuration
    file".
    What is wrong ? (I tried with many different struts-config.xml files,
    it doesn't
    work)
    I can't find any error details. in workshop files ?
    I have bea Workshop 8.1.
    Any help ?
    Thanks,
    Tom

  • Error after creating a struts portlet in weblogic 8.1 SP 5

    Hi,
    I am using weblogic 8.1 SP 5, to develop an struts-portlet.
    I tested my struts application and it is working fine.
    I have one action i.e firstAction and 2 jsp's in my struts application.
    The action just forwards to the one jsp through struts-config.
    However, when i try to start the server after creating the struts-portlet i get the following error:
    The source of this error is com.bea.netuix.nf.UIControlException: For portlet [portlet_1_1], could not retrieve a result for the given action [firstAction] in the given PageFlow: [null]. at com.bea.netuix.servlets.controls.content.NetuiContent.preRender(NetuiContent.java:365) at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:443) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:718) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:730) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:730) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:730) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:730) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:730) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:730) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:730) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:730) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender
    Please Help !!!

    Hi,
    Even I am facing the same issue could any body help me out to solve this issue.

  • Creating a portlet from an existing Struts 1.1 application

    Hi,
    I have a concern about using struts portlets into the WL Portal. As no examples
    are provided with WLP 81 sp2, I've tried to build working Struts Portlets using
    existing Struts 1.1 applications. It always fail with an error like that one:
    <26-Jan-2004 2:39:24 o'clock PM EST> <Error> <netuix> <BEA-420599> <Unable to
    perform action [portlets/struts/example/tour] for Struts module [portlets/struts/example].
    Please ensure that both module and action are correct.>
    <26-Jan-2004 2:39:24 o'clock PM EST> <Error> <netuix> <BEA-420037> <There was
    an error loading the requested URI null.>
    <26-Jan-2004 2:39:24 o'clock PM EST> <Error> <netuix> <BEA-423012> <There was
    an error while running a lifecycle stage :: Lifecycle: UIControl.render :: for
    the control :: null ::.
    com.bea.netuix.nf.UIControlException: No ActionResult returned for action [portlets/struts/example/tour]
    in Struts module [portlets/struts/example]. Please ensure that both module and
    action are correct in portlet StrutsContent element.
    at com.bea.netuix.servlets.controls.content.StrutsContent.preRender(StrutsContent.java:399)
    at com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:388)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:619)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:137)
    at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:220)
    at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:158)
    at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:357)
    at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:198)
    at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:559)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:313)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6356)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    >
    My client is waiting for the results of our evaluation prior to acquire this software
    and Struts support is the only thing that delay-us in delivering the final evaluation.
    Without the Struts Support, I'm afraid my client won't use this Portal Server.
    It would be really great if you could provide an example.
    Thanks.
    Julien De Santis-Caron
    CGI Group.

    What I've figured out so far is that the app needs to start from an action. I started
    with the Exadel Struts Studio Community edition tutorial StrutsHello. I copied
    the files as per the Workshop help "Integrating a Struts Application into a Portal".
    At this point I got the same error but them I added a "start" action which simply
    does a forward to "inputname.jsp". I also had to change taglib references to use
    the weblogic supplied versions of the html tags. Then I used the portlet wizard
    to create a new portlet that references the "start" action and dropped this new
    portlet on an otherwise empty portal. So now the portal starts fine and the portlet
    is there. However when I submit the form then I get the same sort of error. The
    form action get filtered by the tag library to generate a portal appropriate URL
    but on the POST it fails to to recognize the action to be run. Anyway maybe if
    a few of use work on this we can make some headway.
    "Julien De Santis-Caron" <[email protected]> wrote:
    >
    >
    Hi,
    I have a concern about using struts portlets into the WL Portal. As
    no examples
    are provided with WLP 81 sp2, I've tried to build working Struts Portlets
    using
    existing Struts 1.1 applications. It always fail with an error like
    that one:
    <26-Jan-2004 2:39:24 o'clock PM EST> <Error> <netuix> <BEA-420599> <Unable
    to
    perform action [portlets/struts/example/tour] for Struts module [portlets/struts/example].
    Please ensure that both module and action are correct.>
    <26-Jan-2004 2:39:24 o'clock PM EST> <Error> <netuix> <BEA-420037> <There
    was
    an error loading the requested URI null.>
    <26-Jan-2004 2:39:24 o'clock PM EST> <Error> <netuix> <BEA-423012> <There
    was
    an error while running a lifecycle stage :: Lifecycle: UIControl.render
    :: for
    the control :: null ::.
    com.bea.netuix.nf.UIControlException: No ActionResult returned for action
    [portlets/struts/example/tour]
    in Struts module [portlets/struts/example]. Please ensure that both
    module and
    action are correct in portlet StrutsContent element.
    at com.bea.netuix.servlets.controls.content.StrutsContent.preRender(StrutsContent.java:399)
    at com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:388)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:619)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:630)
    at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:137)
    at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:220)
    at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:158)
    at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:357)
    at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:198)
    at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:559)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:313)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6356)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    >
    My client is waiting for the results of our evaluation prior to acquire
    this software
    and Struts support is the only thing that delay-us in delivering the
    final evaluation.
    Without the Struts Support, I'm afraid my client won't use this Portal
    Server.
    It would be really great if you could provide an example.
    Thanks.
    Julien De Santis-Caron
    CGI Group.

  • Trouble with console-extension using struts portlet

    hello everyone,
    I'm developing a console-extension for wls9.2 but couldn't get is to work despite all the documentation available. The console-ext is a struts portlet which gathers data from custom mbeans via jmx and renders the result with a jsp. What already works is fetching the data from the MBeans in the struts action. What does not work is the display of the results in the admin console. So I removed all the stuff from the jsp to just display "Hello World" which should be displayed on the desktop in the admin console, but even this didn't work (it's just a blank spot). Having a look at the log file I get the following:
    e.netui.pageflow.internal.AdapterManager ERROR ServletContainerAdapter manager not initialized correctly.
    e.netui.pageflow.internal.AdapterManager INFO No ServletContainerAdapter specified or discovered; using class org.apache.beehive.netui.pageflow.DefaultServletContainerAdapter
    tui.util.config.parser.NetUIConfigParser INFO NetUIConfigParser -- load config: /WEB-INF/beehive-netui-config.xml
    e.netui.pageflow.internal.AdapterManager INFO No ServletContainerAdapter specified or discovered; using class org.apache.beehive.netui.pageflow.DefaultServletContainerAdapter
    netui.pageflow.AutoRegisterActionServlet INFO Dynamically registering module /loggingController, config XML /WEB-INF/struts-auto-config-loggingController.xml
    netui.pageflow.AutoRegisterActionServlet INFO Dynamically registering module /loggingController, config XML /WEB-INF/struts-auto-config-loggingController.xml
    (...other debug output from my struts action...)
    .wls.web.actions.LoggingControllerAction DEBUG Going to /ext_jsp/helloWorld.jsp using module null
    flow.scoping.internal.ScopedResponseImpl INFO ScopedResponse error 404:
    .netui.pageflow.PageFlowRequestProcessor WARN Struts module is configured to use com.bea.console.internal.ConsolePageFlowRequestProcessor as the request processor, but the <controller> element does not contain a <set-property> for "controllerClass". Page Flow actions in this module may not be handled correctly.
    .netui.pageflow.PageFlowRequestProcessor INFO Attempting to instantiate SharedFlowControllers for request /console/ChangeManagerAction.do
    ive.netui.pageflow.FlowControllerFactory INFO No Global.app was found in /console
    Despite the errors it seems to find my struts config (struts-auto-config-loggingController.xm) and execute the action, but then it seems to have trouble findingd/displaying the jsp (helloWorld.jsp). I tried to set various controller-elements in the struts config, like this ([url http://edocs.bea.com/wlp/docs92/portals/integrate.html#wp1005659]source):
    <controller inputForward="true" processorClass="com.bea.struts.adapter.action.AdapterRequestProcessor" />
    but this didn't work either (and results in other errors). The log from above was created with a config without any controller element (since this is never mentioned in the eDocs for console extensions).
    Despite spending several hours trying to figure out what goes wrong here I wasn't able to get one step closer to a solution. Does anyone have a clue what I did wrong (please ask if you need further information)? Thanks a lot!
    Btw. Sorry if this is the wrong forum, I could't find another one which matches better. Feel free to move the topic to a more appropriate place. thx.
    ====================================
    Struts config:
    <struts-config>
         <form-beans>
              <form-bean name="loggingForm" type="...web.forms.LoggingControllerForm" />
         </form-beans>
         <action-mappings>
              <action path="/LoggingControllerAction"
                   type="...web.actions.LoggingControllerAction"
                   name="loggingForm"
                   scope="request"
                   validate="false"
                   input="/ext_jsp/helloWorld.jsp">
                   <forward name="success" contextRelative="true"
                        path="/ext_jsp/helloWorld.jsp" />
              </action>
         </action-mappings>
    </struts-config>

    The problem could be solved by adding the "handle" property (of type com.bea.console.handles.Handle) to the form bean.
    This is stated on page 7-4 in the "Extending the admin console" guide or [url http://e-docs.bea.com/wls/docs92/console_ext/simpleext.html#wp1083856]here
    In addition the following controller element must be used in the struts config: <controller inputForward="true" processorClass="com.bea.struts.adapter.action.AdapterRequestProcessor" />
    This is not mentioned anywhere and should definitely be added to the guide.
    Hope this helps someone encountering the same problem.

  • Logging doesn't work from my Struts portlet

    I've got a Struts portlet that uses (or tried to use) Log4J logging. I don't get any logging - not even .log file creation. When the OC4J instance starts up it gives a warning about not having the Log4J system initialized properly. I have a log4j.properties in my WEB-INF/classes directory so I don't understand why it gives this warning, though.
    Is Struts overriding Log4J logging with its commons-logging.jar?
    I also don't get an application.log file which the portlet should create in the applications-deployment/ directory.
    Has anyone run into this with a Struts portlet?

    I should have mentioned that I'm deploying my Struts Portlet in a local OC4J (with PDK support) and using it as a provider to a remote Oracle Portal. For some reason OC4J doesn't recognize the log4j.properties that is in my WEB-INF/classes directory.
    I've also got a TAR opened with Oracle Tech. support and when they deployed my .ear file to a Portal they get an application.log file which I do not get. There must be something on my local OC4J that prevents any logging (neither the application.log or the log4j .log file gets created on my local OC4J).
    Here are the messages that I get when I start OC4J:
    [java] Sep 2, 2005 11:41:38 AM org.apache.struts.util.PropertyMessageResources <init>
    [java] INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    [java] Sep 2, 2005 11:41:38 AM org.apache.struts.util.PropertyMessageResources <init>
    [java] INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    [java] Sep 2, 2005 11:41:38 AM org.apache.struts.util.PropertyMessageResources <init>
    [java] INFO: Initializing, config='oracle.portal.sample.v2.devguide.struts.messages', returnNull=true
    [java] 05/09/02 11:41:39 log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources).
    [java] 05/09/02 11:41:39 log4j:WARN Please initialize the log4j system properly.
    [java] 05/09/02 11:41:40 Oracle Application Server Containers for J2EE 10g (10.1.2.0.0) initialized

  • Struts Portlet Personalize Link

    I have a struts app that I have deployed as a portlet using the PDK struts tags/libs/etc..
    I'm trying to figure out, how to write custom code to allow users to click the "Personalize" link and specify some customization parameters for the portlet.
    I have seen a way to do this based on a JDeveloper example. However, the JDeveloper example is just a single JSP which handles everything (i.e. request, etc..) instead of calling a controller (i.e. a struts app).
    I've found that I can specify one of my actions in the provider.xml, which will allow me to call my struts action, prepopulate the page with data, and then forward to a JSP. However, when I forward to my JSP, it is within the context of the Personalize page itself, which already has an HTML form. So, I can't create my own custom HTML form and don't have control over the whole page. Also, with the form that is generated, there are Apply, Ok, and Cancel buttons.
    I really want to have control over the entire page. Is this possible? I can't see a way to eliminate the surrounding form.

    Can u please guide me how to create a portlet from existing struts application.

  • Struts Portlet does not show images when it is accessed outside the domain

    Hi all,
    I am using Oracle 10.1.2. I have created a Struts portlet. When I view the struts portlet from my office domain (University domain) it works well and shows the images properly. However, if I try to access the same page containing the struts portlet from some other domain (my home), I cannot see the images and CSS associated with the page. This might be a firewall issue. Is there any way out?
    Best regards,
    Omer

    I fixed the problem.  (YAY!)
    It was the way I embedded the files -- the Dreamweaver default does not work properly so I used the embed from this generator: http://www.bobbyvandersluis.com/swfobject/generator/index.html#alternativeContentHelp which now lets my navbar and swfobjects load properly.  I also made sure that my slideshow (loader.swf) was set with wmode = opaque while the navbar is set to wmode = transparent.  The div for the nav bar has z-index set to 5 while the div for the slideshow has z-index set to 1.  Both have absolute positioning.  I hope this helps anyone in the future that has trouble with overlaying flash (.swf) files.
    Thanks for your reply and trying to help me solve this issue!

  • Struts Portlet problem

    Hello,
    I am developing a Struts Portlet, using JDev 10.1.2, and I'm deploying my app to Oracle Enterprise Manager.
    I have a DB Schema from which I created the Business Components for my Portlet.
    In the portlet, I need to display a tree-like Page Menu (pages have sub-pages and so on) in a single JSP that I have already working perfectly (outside Oracle Portal).
    This JSP consists of a series of "a href" links, each link representing a Menu Page, so that when I click on that link, the other portlets (content portlets) would show the selected page's contents.
    The idea here would be to, when I click a link, raise a struts event so that I can set my ViewObject's current row, and then get Portal to refresh the whole page passing the Page_Id as a parameter, so that both the menu portlet and the content portlet would be synchronized.
    The problem is that inside Portal, I can't seem to get the struts app to work:
    It renders the page just fine, but when I click on a link it obviously sets the browser's URL to one that is not relative to the portal - I suppose because i'm setting the URL mannualy on the "a href".
    (Note that I don't have a Form component in my JSP, just a number of links)
    What I need is to find a way to raise a Struts event so that the current row will be set. I'm trying to do it like this:
    < a href="/portal/menuPage.do?&id=<c:out value="${node2.IdPagina}"/>&event=Select">
    The event is raised and the row is set but I'm (obviously) forwarded to
    http://myServer:myPort/portal/menuPage.do?&id=28&event=Select
    Portal doesn't recognize this address and displays a "404 Not Found" message.
    Is there any other way to raise a struts action with links, or at least, without forms and submit buttons? Because raising it like I'm doing forwards me to a wrong URL.
    I read everything I found on Struts Portlets but still haven't found an answer to my problem.
    Any help?
    Rui Leitão

    When constructing links, you have to use the pdk-specific struts tags, for example:
    <pdk-struts-html:link href="/portal/menuPage.do">Also, you need to use the pdk struts tag library:
    <%@ taglib uri="/WEB-INF/pdk-struts-html.tld" prefix="pdk-struts-html" %>Peter

  • Struts portlet Instance Label problem: Appending the html tags in jsp

    I have created a struts portlet and given it a Instance Label. I have used struts-adapter-html.tld tld in my jsp which is referenced by my struts portlet. But the problem with using this taglib is that the portlet Instance Label is appended to all the html tags on the JSP as a result of which when the page is submitted, formbean will not pick any of the values as the name will not match. Has anyone has faced this kind of problem? How can I prevent the appending of the HTML tags with the portlet Instance Label?
    Please help me overcome this problem..
    Thanks in Advance ...

    1. To begin with, I would not recommend NOT to append portlet instance label to html tags. This is very much required. Take atleast 2 scenarios. If you dropped 2 instances for Same Portlet like News/Articles portlet etc on same page, you need to identify the html fields uniquely for each portlet so that backend java code works properly. Also if you have 2 different portlets assuming you did not give any name to form tag, and if you have html tags with same name, you need to identify them. Remember when portal or desktop is rendered, it is one big html file with html fragmetns from all .portlets files. So I am not sure if there is any option at all, to avoid the appending of instance label value to html tags.
    2. Coming to your usecase, I did had this problem once in 8.1 SPxx long back. All we did was, in the back end code, using BackingFile we could get the intance label value of the portlet. We can get this in pageflow also. Then pass this value and manually append this value to the html field of interest. In your case looks like you have Struts and tld tags. See somehow if you can get portlet instance label in jsp file and pass around to your tag lib code in request parameters etc. This is just one idea. I am not fully aware of your code, so try something along these lines.
    HTH
    Ravi Jegga

  • Struts Portlet to Struts Portlet Communication

    Hello,
    We have two struts portlets (portlet1, portlet2) in our page. We have the following queries:
    1. When user performs some action (submit) in portlet1, can we render the second porlet (portlet2). Second portlet should be visible only after submit in first portlet.
    2. We are trying to pass objects between two struts portlets. Can some one provide an idea on how to achieve this. We are trying to set the objects to be passed in request object, but they are not visible in the second portlet.
    Basically, our requirement is portlet1 will contain the search criteria and when the user clicks on submit, the results should be displayed in another portlet. Both these portlets are struts enabled.

    1. You can create your security manager to dynamically control whether the portlet is displayed or not on the portal page. You can refer to the Portal Developer's Guide to learn more about security managers.
    2. You can use the page parameters and portlet parameters to pass this information from one portlet to the other. The Portal Developer's Guide discusses how to do this.
    If this doesn't work for some reason (the string is way too long - or for any other reason), you can try to save the information to the session context. The session can be shared between two portlets if they belong to the same provider.
    Hope this helps,
    Peter

  • No support (wizard) for JSF & struts portlets

    I can create portlets (JSR 286 & Oracle PDK-Java) in JDevelopers. However I feel the wizard is not mature. I can only create one kind of portlet (JSR 286) using JDeveloper if we consider only standards based portlet - this portlet is called Java portlet in WebLogic. Can't create JSP, URL etc protlets, even no support (wizard) for JSF & struts portlets...
    Is there anyway to enable these features?
    Thanks.

    Check below link if useful
    http://docs.oracle.com/cd/E17904_01/portal.1111/e10238/pdg_java_adv.htm#CHDFAHEC
    http://docs.oracle.com/cd/E12524_01/webcenter.1013/e12434/jpsdg_java_adv.htm#CHDFAHEC
    Edited by: ngsankar on Jun 6, 2012 10:56 AM

  • Invalid Handle Error for WSRP Struts Portlet

    Hi,
    I am in process of modifying our existing struts application so that I can access it as remote portlet. I followed the Integrating Existing Struts Application guide and created a portlet. When I tried to use this portlet, I started getting following error. Does anyone know where I might be going wrong? Thanks.
    Fault: {urn:oasis:names:tc:wsrp:v1:types}InvalidHandle
    The given portletHandle [portlet_1] is invalid or none of the supported portlet containers can handle this portlet.
    2005-04-22T16:32:08.282+01:00com.bea.wsrp.faults.InvalidHandleException: The given portletHandle [portlet_1] is invalid or none of the supported portlet containers can handle this portlet. at com.bea.wsrp.producer.handlers.markup.MarkupServiceHandler.doGetMarkup(MarkupServiceHandler.java:407) at com.bea.wsrp.producer.handlers.markup.MarkupServiceHandler.doService(MarkupServiceHandler.java:306) at com.bea.wsrp.producer.handlers.markup.MarkupServiceHandler.doService(MarkupServiceHandler.java:282) at com.bea.wsrp.producer.handlers.AbstractServiceHandler.service(AbstractServiceHandler.java:78) at com.bea.wsrp.producer.handlers.markup.MarkupServiceHandler.service(MarkupServiceHandler.java:262) at com.bea.wsrp.producer.WsrpServer.processServiceRequest(WsrpServer.java:299) at com.bea.wsrp.producer.WsrpServer.service(WsrpServer.java:198) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at com.bea.wsrp.producer.adapter.pageflow.WsrpPageflowFilter.doFilter(WsrpPageflowFilter.java:73) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724) 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)

    Hi Shanta,
    I have started writing a struts 1.1 based module and expose it as a wsrp portlet. Can you pls help me where and how to start on this?
    Thanks,
    Ravi

  • How to create a portlet for a new web page?

    I create a web page "A" in the remote server and have another page "B" which have a button in it. And when push the button in page "B", I want to use PRC to add a new portlet object linking to page "A" to portal. How should I do this?
    I know it's possible to add a new portlet template using IRemoteSession.GetPortletTemplateManager().CreatePortletTemplate(intparentFolderID, intwebServiceID), but how should I get the webServiceID while it haven't been created for the page "A". Must I create the web service in the portal server by hand? Is there any programmatic method to create a new web service by PRC? Or if there are some other methods to create a portlet for a new page without creating webservice, that would be a prefer.

    Hi Prateek,
    I Did the Things Which is Presented By Michal in This Blog.
    But When I Executed RZ70 With My Gateway Service as "sapgw01" And the Gateway Host As "Server Host Name".
    I Got the Error When I Click on "<b>start Data Collection"</b> After Execution of the Program As Follows
    <b>"Used RFC destination :SLD_NUC"</b>
    <b>"RFC call failed : Error opening an RFC connection"</b>
    <b>"Batch job not scheduled"</b>
    All Other Are Success Like Data Collection ......
    Please let me Know What to Do Now...
    Regards
    Khanna

Maybe you are looking for

  • Error when attaching object link in DMS

    Hi Experts,    I am calling the function module CV110_DOC_CREATE in my program. This program i have attached to a ztransaction.Thus the screen after entering the document type, document version and part in the cv01n transaction appears when my ztrans

  • JDBC driver configuration for sybase in XI 3.0

    my client vendor upgraded sybase database version 8 to 11, then after we are facing connectivity problem. i deployed new JDBC for sybase ver 6.05..  jconn3.jar i am not sure this is the right version to deploy for sybase 11... still have the connecti

  • How can i read the number of lines written - in spreadshee​t array?

    hello NI,                        I am writing file as spreadsheet format continuously, contains date, time, chanel1, channel 2, channel 3..... etc. i just want to know how many lines has been written after file write.... Regards, Balaji DP

  • Some cumbersome task

    I am having problem with my jsp code . wat i done is as follow 1. I created a web page which simply inputs the user information like name,surname etc. 2. I am passing this information to jsp page say first_jsp.jsp 3. There i am using <jsp:useBean> an

  • What should default permissions be of the Groups folder be?

    While trying to sort out our Group shared folders permissions problems I might have changed the permissions of the Group folder (/Volumes/Server/Groups) in Server Admin. Can anyone tell me what the default permissions for that folder should be?