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

Similar Messages

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

  • How to set the contentType for JSF Content Portlet.

    Hi,
    When I tried to get the data from data base and construct a downloadable .csv appending the html at the end of the actual csv content. Please find the below given code for reference.
    JSP Code :
    <f:view>
    <h:form id = "test">
              <h:commandButton immediate="true" value = "Download CSV" actionListener="#{myManagedBean.downloadCSV}">
              </h:commandButton>
    </h:form>
    </f:view>
    Managed Bean method (Listener Method):
         public void downloadCSV(ActionEvent event) {
              FacesContext.getCurrentInstance().responseComplete();
              OutputStream os = null;
              try {
                   HttpServletResponse response = (HttpServletResponse) FacesContext
                             .getCurrentInstance().getExternalContext().getResponse();
                   response.setHeader("Content-Disposition","attachment;filename=report.csv");
                   response.setContentType("application/download");
                   os = response.getOutputStream();
                   StringBuffer buffer = new StringBuffer();
                   //following code has to be replaced by records retrieved from database.
                   for (int i = 0; i < 1000; i++) {
                        for (int j = 0; j < 100; j++) {
                             if (j == 0) {
                                  buffer.append("Test " + j);
                             } else {
                                  buffer.append(",").append("Test " + j);
                        buffer.append("\n");
                   System.out.println("Get Content Type :==>"+response.getContentType()); // always returning text/html;
                   os.write(buffer.toString().getBytes());
              } catch (Exception e) {
                   e.printStackTrace();
              } finally {
                   if(os != null){
                        try {
                             os.close();
                        } catch (IOException e) {
                             // TODO Auto-generated catch block
                             e.printStackTrace();
    The above given code is appending the html content at the end of the actual content. I noticed one thing, even though I am setting the content type to application/download (or) text/csv when i am printing the content type it is always returning "text/html".
    Thanks.

    Hello,
    The portal will not allow you to change the content-type of a single portlet's response. Since each portlet is rendered onto a single HTML page along with other portlets, the content-type of the whole page (and therefore of each portlet) must be HTML-- you can't have a different content-type for just a portion of the page.
    This means that you cannot render non-HTML content for a portlet within the portal framework. However, you can render non-HTML content as a separate "resource" outside of the portal context- for example, if you create a resource URL in your portlet that points at a servlet, the servlet can serve up any content-type you wish.
    The JSR329 JSF portlet bridge (and the JSR286 portlet specification it is based on) even have a special "portlet-served resource" mechanism that allows you to serve non-HTML content while still having access to all of the portal context (all of your portlet state). From the code you posted, it looks like you are not using the JSR329 portlet bridge, but you might want to take a look at it.
    Kevin

  • 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

  • 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

  • Struts Support: "Cannot  parse the struts configuration file" when using the Struts Portlet Wizard

    I'm currently trying to deploy the struts-example webapp from Struts 1.1 RC1 into
    Weblogic Portal 8.1 using the Struts Portlet wizard made available by the "JSR
    168 and Struts Support" patch.
    I select the struts module successfully "struts-example" and am prompted for the
    location of name mangled configuration file (i.e "struts-config.xml" for struts-example
    becomes "jpf-struts-config-struts-example.xml").
    As soon as I hit next, I am prompted with a dialog informing that me that [Workbench]
    "Cannot parse the struts configuration file."
    Given that this is a file supplied with the struts distro and that I can deploy
    the struts-example to Vanilla WLS 8.1 without problems I suspect this is a problem
    with my attempt to use the Struts Portlet.
    Can anyone please help?
    Thanks,
    --Andy Hull

    I'm currently trying to deploy the struts-example webapp from Struts 1.1 RC1 into
    Weblogic Portal 8.1 using the Struts Portlet wizard made available by the "JSR
    168 and Struts Support" patch.
    I select the struts module successfully "struts-example" and am prompted for the
    location of name mangled configuration file (i.e "struts-config.xml" for struts-example
    becomes "jpf-struts-config-struts-example.xml").
    As soon as I hit next, I am prompted with a dialog informing that me that [Workbench]
    "Cannot parse the struts configuration file."
    Given that this is a file supplied with the struts distro and that I can deploy
    the struts-example to Vanilla WLS 8.1 without problems I suspect this is a problem
    with my attempt to use the Struts Portlet.
    Can anyone please help?
    Thanks,
    --Andy Hull

  • "Cannot  parse the struts configuration file" when using the Struts Portlet Wizard

    I'm currently trying to deploy the struts webapp from Struts 1.1 into
    Weblogic Portal 8.1 using the Struts Portlet wizard.
    I select the struts module successfully and am prompted for the
    location of configuration file.
    As soon as I hit next, I am prompted with a dialog informing "Cannot parse the
    struts configuration file."
    I have 't started my server.
    Thanks
    Kicha

    I'm currently trying to deploy the struts webapp from Struts 1.1 into
    Weblogic Portal 8.1 using the Struts Portlet wizard.
    I select the struts module successfully and am prompted for the
    location of configuration file.
    As soon as I hit next, I am prompted with a dialog informing "Cannot parse the
    struts configuration file."
    I have 't started my server.
    Thanks
    Kicha

  • 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

  • Is WSRP supported in Adobe CQ for accessing Remote Portlet?

    Hello, I wanted to know if WSRP is supported in Adobe CQ for accesssing remote portlet? or alternate ways to access remote portlets on Adobe CQ pages. Pointers in this direction would be helpful.
    Thanks

    AFAIK we don't have WSRP producer OR consumer. Using [1] might help to meet your need.
    [1] http://dev.day.com/docs/en/cq/current/administering/cq_as_portal.html#CQ%20Portal%20Direct or

  • Any IDE support for JSF

    hi all;
    i am looking for IDE support for JSF.
    i dont mind downloading evaluation versions or beta versions of IDEs.
    any IDE support out there?

    Great, you can register to be informed when the free early version is released ! And you can win, guess what ? A workstation ! Thanks Sun !
    http://see.sun.com/Apps/DCS/mcp?q=ST1D003TFMRg9a6

  • 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

  • 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

  • JSF & Struts

    After reading several articles about JSF and Struts,
    where opinions concur and also differ,
    I would like to get an opinion from this list regarding starting a new project.
    If I start a new project, should I even bother to
    consider Struts, or should I just use JSF?
    Most of the comments that I've seen are about recommendations for migrating Struts to JSF (specially the
    html part). How about starting a brand new project?
    Will it be OK if I only use JSF? Will there be
    a lot of work if I start with JSF and later decide
    to replace some of the pieces with Struts?
    I'd appreciate some comments.
    gs

    I think any project started today with implementation schedule early next year should be focused on Struts (like Jonathan said earlier). If you are in the exploritory stages of an implementation that will probably finaly deliver in '05 then I'd say JSF is the way to go. My reasoning is based on the industry support that was apparent at JavaOne and all the buzz. Most, if not all, J2EE servers will have JSF by sometime in '04 and I susspect that by late '05 many execs will be wondering why they allowed Struts to be used...
    Not that there is anything wrong with Struts. Its great and has a lot of mind share (books, knowledge base etc), its really cool, and fun to work with, it does a reasonable job of separating the view from the model etc. Its good stuff. But since out of the box app servers will support JSF, Struts will be less and less important from an enterprise perspective. I susspect that this will really happen in full force when JSF becomes part of the J2EE spec (just speculation on my part, but it seems reasonable given the 'http://java.sun.com/j2ee/javaserverfaces' url :-).
    This is of course only my $0.02 worth...
    TTFN,
    -bd-
    http://bill.dudney.net/roller/page/bill

  • Struts Portlet -- helpPage

    I'm trying to get a portlet to forward to a struts action (helpPage.do for example) when the user clicks on the portlet "Help" button.
    What do I need to put in the provider.xml file to accomplish this?
    I tried:
    <helpPage class="...StrutsRenderer"> <defaultAction>/helpPage.do</defaultAction>
    </helpPage>
    which is similar to what I did for the showPage (which does work). But this doesn't accomplish the desired task. Instead it just forwards to the showPage.

    Hello
    The current JPDK/Struts integration does not support action for the other mode than SHOW mode.
    We are currently fixing this issue and you will be able to achieve this in a later release.
    Regards
    Tugdual Grall

  • Struts portlet integration

    Hi,
    sorry I'm new to weblogic but had used different app servers before. I have to do such a project until next week where you need to put the coffee machine directly beside your computer. ;-o
    I already had implement my entity beans and session beans in a xdoclet / maven environment.
    Now I need to do the view tier and integrate it in a existing porlat as portlet.
    Here my questions:
    Should I do my UI via Struts since I'm familar with struts and it would be staight forward. Should I as last step import the final struts & ejb application as portlet to workshop? What and how much work is to do to make a strus application to a portlet?
    Or may alternativly should i realize my UI directly in workshop and do this jpf stuff?
    As you can see I'm fishing for experimence reports about integration struts / ejb in existing portal workshop projects.
    Thanks a lot for any hints.
    Stefan

    glad to hear im not the only one struggling with integrating ADF with Portal.
    ADF consists of 3 layers,
    1) Business Layer (model/bc4j)
    2) Controler Layer (struts)
    3) View Layer (uix/jsp/jsf)
    A portlet ussualy takes care of the Controler Layer and the View Layer, it should be possible to use BC4J within your portlets, but not using layers 2 and 3.
    But I guess this is not what we want, we want to create an ADF application within
    JDeveloper and deploy it either standalone or as a portlet.
    I wonder if this is possible with JSF, it doesnt contain struts anymore, so perhaps the
    layered complexity is less?
    An option is always to use the webclipping portlet, but this is not ideal.
    Im curious how Oracle is going to address this, we now have 2 platforms we can develop
    applications for, Portal and Standalone (ADF). Its kinda a waste that portlet development
    is like developing a servlet, not using a luxery framework like ADF.

Maybe you are looking for

  • IndDesign CS2 Anchored objects issue

    I am working on a 400 pg yearbook-like doc. I've got pictures with captions(grouped with paragraph and object styles)that need to stay with the text where I insert them. As I work though the pages inserting objects, they appear to adjust prior page l

  • NW2004s Connect to Message Server Host Failed - BW to Portals connection

    Hi, I am trying to connect a SAP BW NW2004s Patch 8 system to a NW2004s Portal. All of the checks in RSPOR_SETUP are successful. However when I try to launch a query from Bex Query it fails with the following message. "Connect to message server host

  • Error when user hits Cancel in File Dialog Box

    Error 43 occurs when the user hits cancel about saving a file. I have a simple state machine, and when the user hits "RUN", the dialog box comes up. What if they change their mind? I have tried to use the "exception code" in the General Error Handler

  • LR 4.4 Edit in PS CS6

    Recently I moved from LR3.6 and PS CS5 to LR 4.4 and PS CS6. And I was upleasantly surpized how long it take to send image from LR to PS:previously it took around 3-5 sec, and now it take 13 secs. Images are RAWs from Canon 5D MKII, PC consists of i5

  • Did Oracle remove OSB project support from OEPE (Eclipse) 12

    Sorry, I have been out of the loop for a year. Helping out a project get some code done. Tried to import a project into my old version of Helios based OEPE and it failed... version not supported. Installed the new Indigo based version and there is no