Struts portlet url posting

Hi all,
I am experimenting with a struts file upload portlet, trying to work around the fact that file upload directly to the PPE is not supported. Things work (quite) fine when I use the Struts HTML form (instead of the PDK Struts HTML) tag for the form element and add target=_new, so the page submits to a new window. This popup can be closed after a succesful file upload and we're (quite) fine.
However, I'd like to submit to a struts (non-portal) page in the same window and return to a portal page afterwards. Using the non-pdk struts tags like mentioned above does already provide me the ability to treat the file as I wish, but I just don't find a way to get back into the portal. I could just try and do with javascript back-navigation, but this is not really desirable as it just takes me back to the form. What I'd like to do is to go to just another struts action from the Action class to which the page is submitted, for example by using a response.sendRedirect() command. The thing is I haven't found a way to get the appropriate URL there. If I could just have it as an extra property of the form I'm submitting, that'd be dead simple, but doing it inside a hidden-tag (or any other) in a JSP document seems to have the side-effect that it's overwritten by the default form value from the form bean (which cannot be page dependent). If I add the value as a plain HTML variable (no struts or other tags at all, just HTML), it doesn't show up in request.getParameter(parname)...
Does anyone have any suggestions on how to take the value of <phtml:rewrite forward="ok" /> or mappings.findForward("ok") into my action class at runtime ?
Or has anyone any better ideas on how to circumvent the upload limitations for java portlets ?
Thanks in advance !
Best regards
Benjamin

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

Similar Messages

  • WLP Ajax Struts Portlet Links not function correctly after refresh

    Hi All,
    I hope this hasn't being answered yet but i couldn't find any previous post on this, let me describe the environment.
    Im working in WLP 10.3.2 Struts Portlet, i had enable:
    Enable Tree Optimization:     True
    Enable ScrollToWindow:     True
    Asynchronous Update Mode:     Desktop
    Enable DISC:     True
    Enable DVT:     True
    During the first request when i entered the (portal url in the browser) all the html:link get replaced with their corresponding: href="javascript:bea.wlp.disc.xie._Service.update('myTargetURL','','')"
    Which is Fine, if you click on it the request will go thru an AJAX submit, however the incoming page also have links on it (navigation link to going back or to apply something else) and those get render as regular link making the whole portal to refresh.
    ps:
    Im using the corresponding BEA Stuts-html instead of struts default
    <%@ taglib uri="http://bea.com/struts/adapter/tags-html" prefix="html"%>
    Thanks
    Edited by: forzaken on Sep 28, 2010 12:18 PM
    Edited by: forzaken on Sep 28, 2010 12:18 PM
    Edited by: forzaken on Sep 28, 2010 12:18 PM

    Problem is here
    :str_name := 'Ongeldig klantnummer';it should be
    str_name := 'Ongeldig klantnummer';":" is regarded as a page item.
    Gary

  • How to build struts portlet for DispatchAction?

    hi,
    I'm building struts portlet which wrap up a struts module, and it works fine for ordinary struts Action class, but for struts DispatchAction class, it doesn't work, the corresponding method never called.
    could any one here help me out?
    thanks

    I am trying to implement your solution.
    I have a portlet for navigation on the left side and the inline rendering on the right. My left side url's keep rendering outside of portal. Also can't figure out how to make the inline rendering portlet grab the url from the navigation portlet. (In your post you mentioned that your portlet would display whatever URL was passed to it.)
    Can you provide more detail on the steps you took to make this happen?
    Thanks

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

  • Portlet Url writing with a Weblogic Server as WSRP Producer

    Hi there,
    I’m having problem to find out which API I have to use to make my producer write the URL using the consumer’s urlTemplate.
    I have a basic Struts portlet with two forward (to a JSP) actions, I need to find a way to use the urlTemplate from the consumer (I do receive the good SOAP message with those templates from the consumer) to make my producer re-write the url (href to next.do in a JSP).
    My consumer is running on a bea Weblogic Portal 8.1 and my WSRP (simple) producer on a Weblogic server 8.1
    I did not find any example in the whole bea documentation and I hope that some of you may have experienced it.
    Thank you.
    Joanny

    If you are using the correct version of Struts taglib, this rewriting
    should happen automatically. Can you check if the taglib tld points to
    com.bea. classes?
    Subbu
    Joanny CHRIST wrote:
    Hi there,
    I???m having problem to find out which API I have to use to make my producer write the URL using the consumer???s urlTemplate.
    I have a basic Struts portlet with two forward (to a JSP) actions, I need to find a way to use the urlTemplate from the consumer (I do receive the good SOAP message with those templates from the consumer) to make my producer re-write the url (href to next.do in a JSP).
    My consumer is running on a bea Weblogic Portal 8.1 and my WSRP (simple) producer on a Weblogic server 8.1
    I did not find any example in the whole bea documentation and I hope that some of you may have experienced it.
    Thank you.
    Joanny

  • CSS for WSRP Struts Portlets

    I have a Struts 1.3 Portlet running in WLP 10.3.2. The css inside JSP displays right in a web-app. But when I expose over WSRP, the css is not getting applied.
    Here is the simple jsp I have:
    test.jsp
    <style type="text/css">
    .test{
    border: 2px solid red;
    background-color : blue;
    </style>
    <span class="test">CSS Testing</span>
    Qn. 2)
    Do I need to have html,head and body tags for Portlets that I want to expose over WSRP?
    Qn3) Do I need to go for render dependencies here..

    Just in case you haven't seen this, I will add in this doc link as well on how to configure render dependencies in the portlet.
    http://download.oracle.com/docs/cd/E15919_01/wlp.1032/e14244/configure.htm#i1073504
    I haven't done this with a struts portlet, but in my example, the .portlet file on the producer would have a
    "lafDependciesUri=/test.dependencies" with the css code you posted in it.
    So the "test.portlet" file on the producer would have something like this:
    <netuix:portlet definitonLabel="myportlet" title="simple test" lafDependenciesUri="/yourpath/test.dependencies">
    </netuix:portlet>
    then on the consumer side, the proxy portlet ".portlet" file would have something like:
    <netuix:proxyPortlet>
    invokeRenderDependencies="true"
    </netuix:proxyPortlet>
    this should allow the proxy portlet to obtain render dependencies from the producer during prerender lifecycle.

  • Struts portlet and request.getQueryString()

    Hi all,
    I've run into what seems like a bug in using struts portlets.
    In my JSP page, I'm attempting to retrieve the query string (parameters) from the request URL, but apparently under the Portal framework, only the first parameter/value in the query string can be retrieved.
    Eg. URL:
    http://www.myportal.com/portal/page?_pageid=11,86282&_dad=portal&_schema=PORTAL&_piref33_92271_33_86282_86282.strutsAction=%2myAction.do?param1=abc&param2=cde&param3=fgh
    When invoking a request.getQueryString() either in my JSP or in the action servlet, only the first part is returned, which is param1=abc. The rest is dropped.
    I should mention that the actual use of these parameters are okay (such as request.getParameter("param2") will return "cde"). Just pulling them out with the getQueryString() method seems not too work.
    The only way to workaround it for me is to use the request.getParameterNames() and run through the enumeration and construct the query string manually. Of course this is ugly running under the Portal framework because I have to filter out all the Portal parameters that begin with the underscore character(eg. page, schema, etc).
    Has anyone else had this problem and worked around it?
    Thanks in advance

    Hi,
    This may help. Use the pdk-struts-html:link tag instead.
    Something like
    <jsp:useBean id="prevDetail" class="java.util.HashMap"/>
    <c:set target="${prevDetail}" property="event_PreviousSet" value="PreviousSet"/>
    <c:set target="${prevDetail}" property="sortref" value="${param.sortref}"/>
    <c:set target="${prevDetail}" property="sortacc" value="${param.sortacc}"/>
    <c:set target="${prevDetail}" property="filteron" value="${param.filteron}"/>
    <pdk-struts-html:link action="portal/something.do" name="prevDetail">
    Good luck, Hernando

  • Struts portlet error

    hi
    When i am working on struts portlet framework,i got this error,here i am sending my log file
    java.lang.ClassCastException: com.sun.portal.portletcontainer.portlet.impl.PortletContextImpl cannot be cast to org.apache.pluto.core.impl.PortletContextImpl
    at com.test.PortalServletContextProvider.getServletContext(PortalServletContextProvider.java:24)
    at org.apache.portals.bridges.struts.StrutsPortlet.getServletContext(StrutsPortlet.java:202)
    at org.apache.portals.bridges.struts.StrutsPortlet.processRequest(StrutsPortlet.java:286)
    at org.apache.portals.bridges.struts.StrutsPortlet.doView(StrutsPortlet.java:274)
    at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
    at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
    at com.sun.portal.portletcontainer.appengine.PortletAppEngineServlet.service(PortletAppEngineServlet.java:393)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
    at com.sun.portal.portletcontainer.appengine.PortletAppEngineFilter.doFilter(PortletAppEngineFilter.java:105)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:873)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723)
    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:679)
    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:594)
    at com.sun.portal.portletcontainer.impl.PortletContainer.invokePAE(PortletContainer.java:818)
    at com.sun.portal.portletcontainer.impl.PortletContainer.invokePAE(PortletContainer.java:695)
    at com.sun.portal.portletcontainer.impl.PortletContainer.getMarkup(PortletContainer.java:209)
    at com.sun.portal.portletcontainer.invoker.WindowInvoker.getPortletContent(WindowInvoker.java:375)
    at com.sun.portal.portletcontainer.invoker.WindowInvoker.render(WindowInvoker.java:249)
    at com.sun.portal.portletcontainer.driver.PortletContent.getContent(PortletContent.java:70)
    at com.sun.portal.portletcontainer.driver.DesktopServlet.getPortletContents(DesktopServlet.java:296)
    at com.sun.portal.portletcontainer.driver.DesktopServlet.getAllPortletContents(DesktopServlet.java:242)
    at com.sun.portal.portletcontainer.driver.DesktopServlet.doGetPost(DesktopServlet.java:121)
    at com.sun.portal.portletcontainer.driver.DesktopServlet.doGet(DesktopServlet.java:90)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
    at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
    at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
    PSPL_PCCTXCSPPCI0006 : Exception thrown while rendering content for portlet window Content Exception
    PSPCD_CSPPD0022 : Number for Portlet Windows Displayed - thin: 0, thick: 3
    i am using open potlet container 2.x and GlassFish server with NetBeans,
    Any body please help me.
    Thanks,

    u r in the wrong forum. if you r using glassfish, u need to visit glassfish.dev.java.net and find out their forum link and post it over there

  • 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

  • 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

  • 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

  • Portlet url

    how to get portlet url (jsp) in oracle portal ... somethin like ... http://www.test.site/portal/page?_pageid=56,1&_dad=portal&_schema=PORTAL not deployment url http://www.test.site/app_name/test.jsp that i can get with getUrl() method

    If you are using the correct version of Struts taglib, this rewriting
    should happen automatically. Can you check if the taglib tld points to
    com.bea. classes?
    Subbu
    Joanny CHRIST wrote:
    Hi there,
    I???m having problem to find out which API I have to use to make my producer write the URL using the consumer???s urlTemplate.
    I have a basic Struts portlet with two forward (to a JSP) actions, I need to find a way to use the urlTemplate from the consumer (I do receive the good SOAP message with those templates from the consumer) to make my producer re-write the url (href to next.do in a JSP).
    My consumer is running on a bea Weblogic Portal 8.1 and my WSRP (simple) producer on a Weblogic server 8.1
    I did not find any example in the whole bea documentation and I hope that some of you may have experienced it.
    Thank you.
    Joanny

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

  • Struts Portlet With Input Parameters

    Hi Everyone,
    Am I able to write a struts portlet that has input parameters? Right now, I have a struts portlet with a provider.xml that looks like this:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <?providerDefinition version="3.1"?>
    <provider class="oracle.portal.provider.v2.DefaultProviderDefinition">
    <session>true</session>
    <passAllUrlParams>true</passAllUrlParams>
    <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
    <id>1</id>
    <name>ManageQuotes</name>
    <title>Manage Quotes Portlet</title>
    <description>Manage Quotes Portlet</description>
    <timeout>40</timeout>
    <showEditToPublic>false</showEditToPublic>
    <hasAbout>false</hasAbout>
    <showEdit>false</showEdit>
    <hasHelp>false</hasHelp>
    <showEditDefault>false</showEditDefault>
    <showDetails>false</showDetails>
    <inputParameter class="oracle.portal.provider.v2.DefaultParameterDefinition">
    <name>encryptedDealerNumber</name>
    <displayName>encryptedDealerNumber</displayName>
    </inputParameter>
    <renderer class="oracle.portal.provider.v2.render.RenderManager">
    <renderContainer>true</renderContainer>
    <renderCustomize>true</renderCustomize>
    <autoRedirect>true</autoRedirect>
    <contentType>text/html</contentType>
    <showPage class="oracle.portal.provider.v2.render.http.StrutsRenderer">
    <defaultAction>/viewquotes.do</defaultAction>
    </showPage>
    </renderer>
    </portlet>
    </provider>
    The <session>true</session> and <passAllUrlParams>true</passAllUrlParams> need to be there to have a struts portlet. The problem is when I put my portlet on a page and then check out 'Page Properties', 'Portlet Parameters', there are no parameters that show up for my portlet. Can anyone help me?
    Thanks
    Cory

    I just went through this two days ago. I ended up logging a TAR/SR with Oracle and it turns out Struts portlets do not support input parameters. Instead you have to set the passAllUrlParams tag to true and then just use portletRequest.getParameter("parameterName") to retrieve page parameters. You have to be careful here because in this older style of doing parameters you have to manage all the uniqueness in naming parameters in case you have more than one portlet on the same page. However, it seems that if all you want to do is read the portal page parameters that unique naming doesn't come into play.
    In my case I have an OmniPortlet setting some Page Parameters via an Event. Then in my struts portlet I just do:
    String foo = "";
    String bar = "";
    PortletRenderRequest portletRequest = (PortletRenderRequest)
    request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    if ( portletRequest != null ) {  
    foo = portletRequest.getParameter("Foo"));
    bar = portletRequest.getParameter("Bar"));
    That seems to work just fine for me, but in my case I will only ever use my portlet once per page so this fine. If you wanted the same portlet to have different page parameters fed to it for different instances on the same page this style won't work since all the portlets would just read the same page parameters since those page parameters names are coded in the implementation code.
    Hope that helps,
    David

  • Strut-Portlets errors in Weblogic 8.1 SP5

    I am getting the below mentioned error when running a portal containing Struts-Portlet in Webloigc 8.1Sp5.
    I have tried everything but not able to resolve it, does anyone know how to resolve and how to successfully run a Struts-Portlet application?
    Thanks in advance.
    -Raj
    The source of this error is com.bea.netuix.nf.UIControlException: For portlet [portlet_1_3], could not retrieve a result for the given action [strutsAction2] in the given PageFlow: [null]. at com.bea.netuix.servlets.controls.content.NetuiContent.preRender()V(NetuiContent.java:365) at com.bea.netuix.nf.ControlLifecycle$7.visit(Lcom/bea/netuix/nf/UIControl;Ljava/lang/Object;)Z(ControlLifecycle.java:443) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(Lcom/bea/netuix/nf/VisitorType;Lcom/bea/netuix/nf/UIControl;Ljava/lang/Object;ZZZ)V(ControlTreeWalker.java:718) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(Lcom/bea/netuix/nf/VisitorType;Lcom/bea/netuix/nf/UIControl;Ljava/lang/Object;ZZZ)V(ControlTreeWalker.java:730) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(Lcom/bea/netuix/nf/VisitorType;Lcom/bea/netuix/nf/UIControl;Ljava/lang/Object;ZZZ)V(ControlTreeWalker.java:730) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(Lcom/bea/netuix/nf/VisitorType;Lcom/bea/netuix/nf/UIControl;Ljava/lang/Object;ZZZ)V(ControlTreeWalker.java:730) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(Lcom/bea/netuix/nf/VisitorType;Lcom/bea/netuix/nf/UIControl;Ljava/lang/Object;ZZZ)V(ControlTreeWalker.java:730) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(Lcom/bea/netuix/nf/VisitorType;Lcom/bea/netuix/nf/UIControl;Ljava/lang/Object;ZZZ)V(ControlTreeWalker.java:730) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(Lcom/bea/netuix/nf/VisitorType;Lcom/bea/netuix/nf/UIControl;Ljava/lang/Object;ZZZ)V(ControlTreeWalker.java:730) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(Lcom/bea/netuix/nf/VisitorType;Lcom/bea/netuix/nf/UIControl;Ljava/lang/Object;ZZZ)V(ControlTreeWalker.java:730) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(Lcom/bea/netuix/nf/VisitorType;Lcom/bea/netuix/nf/UIControl;Ljava/lang/Object;ZZZ)V(ControlTreeWalker.java:730) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(Lcom/bea/netuix/nf/VisitorType;Lcom/bea/netuix/nf/UIControl;Ljava/lang/Object;ZZZ)V(ControlTreeWalker.java:730) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(Lcom/bea/netuix/nf/VisitorType;Lcom/bea/netuix/nf/UIControl;Ljava/lang/Object;ZZZ)V(ControlTreeWalker.java:730) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(Lcom/bea/netuix/nf/VisitorType;Lcom/bea/netuix/nf/UIControl;Ljava/lang/Object;ZZZ)V(ControlTreeWalker.java:730) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(Lcom/bea/netuix/nf/VisitorType;Lcom/bea/netuix/nf/UIControl;Ljava/lang/Object;ZZZ)V(ControlTreeWalker.java:730) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(Lcom/bea/netuix/nf/VisitorType;Lcom/bea/netuix/nf/UIControl;Ljava/lang/Object;ZZZ)V(ControlTreeWalker.java:730) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(Lcom/bea/netuix/nf/VisitorType;Lcom/bea/netuix/nf/UIControl;Ljava/lang/Object;ZZZ)V(ControlTreeWalker.java:730) at com.bea.netuix.nf.ControlTreeWalker.walk(Lcom/bea/netuix/nf/VisitorType;Lcom/bea/netuix/nf/UIControl;Lcom/bea/netuix/nf/concurrency/ControlTreeWalkerPool;)V(ControlTreeWalker.java:181) at com.bea.netuix.nf.Lifecycle.runOutbound(Lcom/bea/netuix/nf/UIContext;Lcom/bea/netuix/nf/concurrency/ControlTreeWalkerPool;)V(Lifecycle.java:204) at com.bea.netuix.nf.Lifecycle.run(Lcom/bea/netuix/nf/UIContext;Lcom/bea/netuix/nf/concurrency/ControlTreeWalkerPool;)V(Lifecycle.java:153) at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(Lcom/bea/netuix/nf/UIContext;Ljavax/servlet/http/HttpServletRequest;)V(UIServlet.java:333) at com.bea.netuix.servlets.manager.UIServlet.doPost(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(UIServlet.java:196) at com.bea.netuix.servlets.manager.PortalServlet.doPost(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(PortalServlet.java:772) at com.bea.netuix.servlets.manager.PortalServlet.doGet(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(PortalServlet.java:671) at com.bea.netuix.servlets.manager.UIServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(UIServlet.java:147) at javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava/lang/Object;(ServletStubImpl.java:1072) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V(ServletStubImpl.java:465) at weblogic.servlet.internal.TailFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(FilterChainImpl.java:27) at com.bea.p13n.servlets.PortalServletFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V(PortalServletFilter.java:293) at weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(FilterChainImpl.java:27)

    What happens in a Struts Portlet is that Portal calls into NetUI to get the action to forward to. The problem appears to be that the struts-config is not getting picked up or registered with NetUI.
    One thing to try is to do inter-op between Struts and NetUI/pageflows first to make sure the struts-config is being picked up and then layer on the Portal layer.
    Connie

Maybe you are looking for

  • Which CPU should I use

    Hello, our company want to buy new computers for the developers. We have to use Windows XP as our OS because of third party products. We develop J2SE + J2EE. So my question: Which CPU should we use? I searched at google but didn't found any usefull s

  • How to edit video frames in Premiere like in Photoshop?

    Hi all!  So I have some videos I need to edit, and I am finally breaking into Premiere, might as well right, since I have CC, and I understand it is an awesome package. I am learning as I go here, but as for right now, my main objective is to edit so

  • Almost 3 months and my refund hasn't been issue

    I cancelled all my services at the beginning of august and I was promised to get my refund 15 days after I cancelled my service.  I called after 15 days and the representative toldme to wait at the end of the cycle after my final bill.  I called latt

  • Visible Property of lable in Webdynpro

    Hi all, I have a lable and a inputfield which are hide. I want that when a select something in my dropdownbykey, this two objects get visible. How can i do that? Regards, Nirali

  • Bad file GridControl_11.1.0.1.0_SolarisSPARC64_2of3.zip

    Hi, second file Oracle Enterprise Grid Control for Solaris 64b: GridControl_11.1.0.1.0_SolarisSPARC64_2of3.zip is wrong. Its size is 175M but it should be 1,7Gb. Regards, Enrique