JSR Portlets

hi all
can anyone tell me how to create custom portlet modes...
i have defined it in the deployment descriptor portlet.xml as follows
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>edit</portlet-mode>
<portlet-mode>about</portlet-mode>
<portlet-mode>help</portlet-mode>
</supports>
<custom-portlet-mode>
<description>This gives details about the product developers</description>
<name>about</name>
</custom-portlet-mode>
and i have overridden the doDispatch() method to call the doAbout() method but
doesnt work can u tell me y, and please if u can tell me a way of doing it....
thanxxx
charith

Firstly, the doDispatch() method in GenericPortlet is primarily there to
dispatch to different methods based on the current mode. The behavior of
this method change from version to version (in the spec), and so, it is
cleaner to implement the doCustom() method.
The GenericPortlet calls the doCustom() method if the mode is not a
standard mode. This method is similar to doView, doEdit and doHelp
except that it is called for custom modes.
Subbu
Charith Fernando said the following on 10/09/2003 10:05 PM:
hi subbu
thank you very much for the help on portlet modes.... i guess same thing applies
to the window states as well anyway i have a small question from ur description.
why have u told me not to use the doDispatch() method and to use the doCustom
MEthod. and will i be able to know whether there is a method called doCustom exsisting
or do we have create a all new method and where to call it.....currentlly i have
impimented the custom portlet mode inside the doDispatch method and its working
thanxxx
charith
Subbu Allamaraju <[email protected]> wrote:
Charith,
The portlet container does not require you specify custom-portlet-mode
elements to add custom portlet modes. All you have to do are the following:
a. Add those custom modes in the supports element (as in your example)
b. Let the portal framework be aware of how to render toggle buttons
for
those modes. For this, open the netuix-config.xml file (inder WEB-INF
directory) and add entries like
<window-mode name="about">
<activate-image>some image</activate-image>
<deactivate-image>some image here</deactivate-image>
<alt-text>
<locale language="en">
<activate>About</activate>
<deactivate>Leave About</deactivate>
</locale>
</window-mode>
c. Implement the doCustom() method in your portlet. It is better to not
override the doDispatch() method.
Let me know if this helps.
Subbu
Charith Fernando said the following on 10/08/2003 01:19 AM:
hi all
can anyone tell me how to create custom portlet modes...
i have defined it in the deployment descriptor portlet.xml as follows
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>edit</portlet-mode>
<portlet-mode>about</portlet-mode>
<portlet-mode>help</portlet-mode>
</supports>
<custom-portlet-mode>
<description>This gives details about the product developers</description>
<name>about</name>
</custom-portlet-mode>
and i have overridden the doDispatch() method to call the doAbout()method but
doesnt work can u tell me y, and please if u can tell me a way of doingit....
thanxxx
charith

Similar Messages

  • JSR Portlets , removing minimize and maximize

    How can we remove the minmize and maximzie icons for JSR portlets ?
    In weblogic portlets , we can set that in properties can minimize and can maximize,
    But I did not see anything for JSR 168 portlets

    Add the following in your weblogic-portlet.xml file
    <portlet>
    <portlet-name>your_portlet_name</portlet-name>
    <supports>
    <mime-type>text/html</mime-type>
    <excluded-window-state>minimized</excluded-window-state>
    <excluded-window-state>maximized</excluded-window-state>
    </supports>
    </portlet>
    Note that, by default, all Java portlets have normal, minimized and
    maximized states. By adding the above, you can exclude
    minimized/maximized states.
    Subbu
    Srinivas Surapaneni said the following on 02/04/2004 12:02 PM:
    How can we remove the minmize and maximzie icons for JSR portlets ?
    In weblogic portlets , we can set that in properties can minimize and can maximize,
    But I did not see anything for JSR 168 portlets

  • Jsr portlets - remove title bar

    How to remove title bar of a JSR portlet. (portlet.xml or weblogic.portlet.xml?). I have imported few java portlets into my portal and I want to remove the title bar. weblogic.portlet.xml file does not have any entries apart from </weblogic-portlet-app> tag..
    Like for the JPF portlets we can set the refreshAction how to control the initial action for a java portlet.
    thanks

    Sorry, no.
    In fact Apple put them at the top by popular demand!

  • JSR portlet titlebar rendering

    How do we specify a skeleton uri for the titlebar in JSR 168 portlets ?
    In regular weblogic portlets , if we specify skeleton uri, it is placing in portlet
    file with netuix:titlebar ... skeletonUri=....../>

    Our doc team is working on to get these published.
    For now, please look into netuix_system.jar file for the actual schema.
    Subbu
    Srinivas Surapaneni said the following on 02/11/2004 08:11 AM:
    Is there any documentation for weblogic-portlet.xml anywhere on e-docs.bea.com
    Thanks
    Subbu Allamaraju <[email protected]> wrote:
    Here is a sample snippet to describe style/skeleton attributes in
    weblogic-portlet.xml. This examples shows all attributes, but you can
    just specify whatever is required.
    <portlet>
    <portlet-name>myStylishPortlet</portlet-name>
    <supports>
    <mime-type>text/html</mime-type>
    <titlebar-presentation>
    <id>myStylishPortlet-titlebar</id>
    <style>border-style: solid; border-width: 1px;
    border-color: #ff0000;</style>
    <class>bea-portal-window-titlebar-test</class>
    <skeleton-uri>/framework/skeletons/default/titlebar-test.jsp</skeleton-uri>
    <properties>some-arbitrary-property=true</properties>
    <icon-url>window-icon.gif</icon-url>
    </titlebar-presentation>
    <content-presentation>
    <style>border-style: solid; border-width: 1px;
    border-color: #ff0000; overflow: auto;</style>
    <class>bea-portal-window-content-test</class>
    </content-presentation>
    <portlet-mode>
    <name>edit</name>
    <button-presentation>
    <id>myStylishPortlet-edit</id>
    <style>border-style: solid; border-width: 1px;
    border-color: #ff0000;</style>
    <class>bea-portal-button-edit-test</class>
    <skeleton-uri>/framework/skeletons/default/edit-test.jsp</skeleton-uri>
    <properties>some-arbitrary-property=true</properties>
    <activate-image>titlebar-button-edit-test.gif</activate-image>
    <deactivate-image>titlebar-button-edit-exit-test.gif</deactivate-image>
    <activate-rollover-image>titlebar-button-edit-test.gif</activate-rollover-image>
    <deactivate-rollover-image>titlebar-button-edit-exit-test.gif</deactivate-rollover-image>
    <activate-alt-text locale="fr">(fr) Examinez
    Editent</activate-alt-text>
    <activate-alt-text>(default) Test
    Edit</activate-alt-text>
    <activate-alt-text locale="en_US">(en_US) Test
    Edit</activate-alt-text>
    <activate-alt-text locale="en">(en) Test
    Edit</activate-alt-text>
    <deactivate-alt-text>(default) Exit Test
    Edit</deactivate-alt-text>
    </button-presentation>
    </portlet-mode>
    <window-state>
    <name>minimized</name>
    <button-presentation>
    <id>myStylishPortlet-minimized</id>
    <style>border-style: solid; border-width: 1px;
    border-color: #ff0000;</style>
    <class>bea-portal-button-minimized-test</class>
    <skeleton-uri>/framework/skeletons/default/minimize-test.jsp</skeleton-uri>
    <properties>some-arbitrary-property=true</properties>
    <activate-image>titlebar-button-minimize-test.gif</activate-image>
    <deactivate-image>titlebar-button-unminimize-test.gif</deactivate-image>
    <activate-rollover-image>titlebar-button-minimize-test.gif</activate-rollover-image>
    <deactivate-rollover-image>titlebar-button-unminimize-test.gif</deactivate-rollover-image>
    <activate-alt-text locale="en_US">(en_US) Test
    Minimize</activate-alt-text>
    <activate-alt-text locale="en_GB">(en_GB) Test
    Minimize</activate-alt-text>
    <activate-alt-text locale="en">(en) Test
    Minimize</activate-alt-text>
    <deactivate-alt-text>(default) Test
    Restore</deactivate-alt-text>
    </button-presentation>
    </window-state>
    </supports>
    </portlet>
    Srinivas Surapaneni said the following on 02/11/2004 07:57 AM:
    How do we specify a skeleton uri for the titlebar in JSR 168 portlets?
    In regular weblogic portlets , if we specify skeleton uri, it is placingin portlet
    file with netuix:titlebar ... skeletonUri=....../>

  • Passing beans across JSR Portlet Requests

    I'm new to portlet development and having trouble getting my head around the following...
    All I wan't to do is display a simple form, process the data and display some results.
    I would expect to do this through a combination of processAction method and a doView method, however it seems incredibly difficult to get the data created in processAction method into my JSP.
    If I was writing a servlet I'd simply create a bean and store it as an attribute in the request scope, but this doesn't seem posible within portlets.
    The sun examples use setRenderParameter(), but this only takes strings.
    I'd could add the bean to the PortletScope but would rather not as
    1. The bean will hang around for the lifetime of the portlet rather than the lifetime of the request
    2. The Portlet Specification stes that "Attributes stored in the PORTLET_SCOPE are not protected from other web components of the portlet application.
    Surely it can't be this hard to create a bean in the processAction method and access it from the JSP. Please tell me I'm missing something!

    I have the same problem with WebLogic Portal, so I
    think there's a problem of clarification with the spec, and I
    hope this will be clarified once theres a new version of
    the portlet API.
    If attributes set in ActionRequest cannot be seen in
    the render() methods, I simply see no point in defining
    setAttribute() and getAttribute() methods on the base
    PortletRequest interface ( from which both
    RenderRequest and ActionRequest inherit ).
    I've checked JSR 168 and PLT3.1 states that
    "Attributes set in the portlet request are
    available in the included servlet request", but
    from the above it seems that this is only true of
    renderRequests. Is this a bug in my Portal server
    (Vignette 7 Trial Edition)?

  • Integrate JSR Portlets into ColdFusion

    Hi!
    In short: is it possible (and if yes: how?) to deploy JSR 168
    compatible Portlets info ColdFusion / JRUN?
    Thanks,
    Fritz

    You might take a look at this doc -
    http://livedocs.macromedia.com/coldfusion/7/htmldocs/00001557.htm
    HTH,
    Anne Sandstrom
    Senior Technical Writer
    ColdFusion
    Adobe Systems, Inc.

  • JSR portlet works via WSRP locally but not remotely

    Dear gurus,
    I have Webcenter with WebLogic Server Version 10.3.4.0 and I'm trying to deploy a portlet so it can be consumed from another Webcenter instance remotely.
    I have deployed a JSR 268 portlet from a WAR file using JDeveloper and the following steps:
    1. Import portlet from WAR file
    2. Follow http://download.oracle.com/docs/cd/E12839_01/webcenter.1111/e10273/portlets.htm#BEIDHGGE to deploy the portlet as a WSRP producer. Obtain WSDL.
    3. In the administration page for a portal, register the WSRP producer using the supplied WSDL.
    4. Add the portlet to a page on the portal. This works if the portal page is on the same Webcenter instance as the producer.
    However, if I try to consume this portlet from a remote Webcenter instance and follow step 3, "Test Connection" reports success, but the portlet does not appear in the list of available portlets in Step 4.
    Could you please advise what I have missed?
    Thanks in advance,
    Linda Postniece

    cross check again,
    it shouldn't happen in your case.
    earlier i have consumed remote portlets via wsrp and it was working fine for me.
    No,in your case I think you should register the portlet producer in the remote domain's em-> in service cofiguration page ->portlet producer->
    and check it out.

  • How to read Standard JSR Portlet Web.xml's context-param

    Hi
    I am completely new to Java.
    I want to keep some configuration in Web.xml in Context param. My Web.xml looks like
    <context-param>
    <param-name>ConfigUrl</param-name>
    <param-value>http://localhost:8083/</param-value>
    </context-param>
    How can I read these values? Can I read these values directly in my JSP file or will I have to read it in my Portlet Class in some function.
    Thanks

    As soon as I use portletConfig, it gives me NullPointerException. I am definitely using <portlet:defineObjects/>
    My Jsp looks as :
    <%@ page contentType = "text/html; charset=windows-1252"
    pageEncoding = "windows-1252"
    import = "javax.portlet.*, java.util.*, port.Port, port.resource.PortBundle,javax.portlet.PortletContext"%>
    <%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
    <portlet:defineObjects/>
    <%
    PortletContext ctx = portletConfig.getPortletContext();
    String configpath = "Hello";
    %>
    <label>Welcome</label>
    <label><%=configpath%></label>

  • How to create a login Jsr portlet?

    Hi
    I'm trying to work with portlets at the Oracle WSRP Verification Portal
    I want to make a portlet that could log in to a site I have made (the site is based on jsp pages and java beans).
    Is there any advice or direction from where to start, because I haven't found any relative material yet!
    Any advice will be greatly appreciated!

    Hi Peter
    The site I want to login uses a bean that is responsible for the verification of user name and password and it provides then a userID, which I add to a session object along with some other info, and then I use a redirect to a page of my site. This page checks the info that exist in the session object and lets you have access.
    About your question for the users identities I believe that I just need to use one user identity on my remote system for every Oracle Portal user.
    If based on the above you have to give me some advice-directions I would be gratefull!
    Thanks
    Stratos

  • Jsr portlet exceptions

    Any idea about this exception ?
    javax.portlet.PortletException at com.bea.portlet.container.PortletRequestDispatcherImpl.include(Ljavax.portlet.RenderRequest;Ljavax.portlet.RenderResponse;)V(PortletRequestDispatcherImpl.java:143) at com.exide.troy.portlets.testing.doView(Ljavax.portlet.RenderRequest;Ljavax.portlet.RenderResponse;)V(testing.java:26) at javax.portlet.GenericPortlet.doDispatch(Ljavax.portlet.RenderRequest;Ljavax.portlet.RenderResponse;)V(GenericPortlet.java:235) at javax.portlet.GenericPortlet.render(Ljavax.portlet.RenderRequest;Ljavax.portlet.RenderResponse;)V(GenericPortlet.java:163) at com.bea.portlet.container.PortletStub.render(Lcom.bea.portlet.context.ContainerRequest;Ljavax.portlet.RenderRequest;Ljavax.portlet.RenderResponse;)V(PortletStub.java:378) at com.bea.portlet.container.AppContainer.renderStub(Lcom.bea.portlet.container.PortletStub;Lcom.bea.portlet.context.ContainerRequest;Lcom.bea.portlet.context.ContainerRenderResponse;Ljavax.portlet.RenderRequest;Ljavax.portlet.RenderResponse;)V(AppContainer.java:610) at com.bea.portlet.container.AppContainer.invokeRender(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;Ljava.lang.String;Lcom.bea.portlet.context.ContainerRenderRequest;)Lcom.bea.portlet.context.ContainerRenderResponse;(AppContainer.java:541) at com.bea.netuix.servlets.controls.content.JavaPortletContent.fireRender()Lcom.bea.portlet.context.ContainerRenderResponse;(JavaPortletContent.java:237) at com.bea.netuix.servlets.controls.content.JavaPortletContent.renderInternal()Lcom.bea.portlet.context.ContainerRenderResponse;(JavaPortletContent.java:157) at com.bea.netuix.servlets.controls.content.JavaPortletContent.beginRender(Ljava.io.Writer;)Z(JavaPortletContent.java:116) at com.bea.netuix.nf.ControlLifecycle$6.visit(Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)Z(ControlLifecycle.java:441) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)V(ControlTreeWalker.java:433) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)V(ControlTreeWalker.java:443) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)V(ControlTreeWalker.java:443) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)V(ControlTreeWalker.java:443) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)V(ControlTreeWalker.java:443) 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:175) at com.bea.netuix.nf.ControlTreeWalker.walk(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;)V(ControlTreeWalker.java:95) at com.bea.netuix.nf.Lifecycle.run(Lcom.bea.netuix.nf.UIControl;

    cross check again,
    it shouldn't happen in your case.
    earlier i have consumed remote portlets via wsrp and it was working fine for me.
    No,in your case I think you should register the portlet producer in the remote domain's em-> in service cofiguration page ->portlet producer->
    and check it out.

  • Conversion of existing webapplication to JSR , WSRP portlets

    Hi,
    I am very new to Oracle Portal and I have to work on conversion of existing jsp to oracle JSR portlets.
    so please Suggest me the process.
    Thanks inadvance

    Please post this question in the Portal forum: Oracle Application Server Portal

  • Images used inside the Portlets are not getting displayed on Oracle Portal

    I am registering my JSR Portlet producer on Oracle Portal server but when its rendered on the portal page its not showing images.It just shows a red cross mark showing image is not loaded.Can anyone help me out please samt thing is happening with CSS also.Please reply soon

    I'd check the image properties (right click the x and choose properties) and see what the path is for the image. If it is a relative path, you need to make sure that the file is in that location on the Application Server. /images/myImage.jpg would mean the file should be in $ORACLE_HOME/portal/images on the midtier.

  • OMNI portlet preference store issue

    Hi,
    Application is running on Staging environment and I want to move it to UAT clustered environment. Portlet application as well consumer application (Portal) deployed successfully. After that I have run persistancemigration tool for WSRP portlet preferences and copy them to UAT. At this stage, my portal and WSRP/JSR portlet start running. After that i tried to run migration tool to export omni portlet preferences in following way:-
    1. I have set classpath for MigrationTool.
    2. Test the classpath as follow:-
    C:\>echo %classpath%
    .;D:\Program Files\J-Integra\Exchange\lib\jintegra.jar;D:\Program Files\J-Integr
    a\Exchange\lib\cdo.jar;.;D:\Program Files\J-Integra\Exchange\lib\jintegra.jar;D:
    \Program Files\J-Integra\Exchange\lib\cdo.jar;D:/OracleAS/OracleSOA/jdbc/lib/ojd
    bc14dms.jar; D:/OracleAS/OracleSOA/portal/jlib/pdkjava.jar; D:/OracleAS/OracleSO
    A/portal/jlib/ptlshare.jar;
    3. When i run the command its giving me ClassDefFoundErrro error:-
    C:\>java oracle.portal.provider.v2.preference.MigrationTool -mode filetofile -pr
    ef1UseHashing true -pref1RootDirectory D:/OracleAS/OracleSOA/portal/portletdata/
    tools/omniPortlet -pref2RootDirectory D:/temp/omni
    Exception in thread "main" java.lang.NoClassDefFoundError: oracle/portal/provide
    r/v2/preference/MigrationTool
    I have also run above command in this way but its also not worked for me:-
    set classpath=D:/OracleAS/OracleSOA/jdbc/lib/ojdbc14dms.jar; D:/OracleAS/OracleSOA/portal/jlib/pdkjava.jar; D:/OracleAS/OracleSOA/portal/jlib/ptlshare.jar
    java oracle.portal.provider.v2.preference.MigrationTool -mode filetofile -pref1UseHashing true -pref1RootDirectory D:/OracleAS/OracleSOA/portal/portletdata/tools/omniPortlet -pref2RootDirectory D:/temp/omni
    Kindly do let me know what is the issue?
    2ndly, i copied omni portlet preferences (without running above tool) and pasted in UAT environment, OC4J is throwing following exceptions when i called them from Portal:-
    HTTPClient.HTTPConnection
    java.lang.ClassCastException: HTTPClient.HTTPConnection
    at
    oracle.portlet.client.connection.web.WebProducerRuntimeAdapterImpl.doHttpClientCall(WebProducerRunti
    meAdapterImpl.java:402)
    at
    oracle.portlet.client.connection.web.WebProducerRuntimeAdapterImpl._showPortlet(WebProducerRuntimeAd
    apterImpl.java:188)
    at
    oracle.portlet.client.connection.web.WebProducerRuntimeAdapterImpl.showPortlet(WebProducerRuntimeAda
    pterImpl.java:156)
    at
    oracle.portlet.client.connection.web.WebProducerInteraction.showPortlet(WebProducerInteraction.java:
    130)
    at oracle.portlet.client.techimpl.web.WebPortletRenderPipe.pre(WebPortletRenderPipe.java:84)
    at oracle.portlet.client.service.pipeline.PipeContext.internalExecute2(PipeContext.java:519)
    at oracle.portlet.client.service.pipeline.PipeContext.internalExecute(PipeContext.java:406)
    at oracle.portlet.client.service.pipeline.PipeContextRunnable.run(PipeContextRunnable.java:23)
    at
    edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:431)
    at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
    at
    oracle.portlet.client.service.pipeline.ModifiedThreadPoolExecutor$Worker.runTask(ModifiedThreadPoolE
    xecutor.java:398)
    at
    oracle.portlet.client.service.pipeline.ModifiedThreadPoolExecutor$Worker.run(ModifiedThreadPoolExecu
    tor.java:423)
    at java.lang.Thread.run(Thread.java:595)
    I have also changed the connection.xml to point to some stagin server URL where these omni portlets are running but having same exception. What can be the issue?
    Thanks in advance.
    Regards,
    Imran

    This issue is related to the Shared library in th server.xml. I also had the same issue. the import for oracle.http.client shared library would be missing in your oracle.wsrp shared lib description.
    Update that and you will be free of this error

  • Is parallel rendering of portlets available in Cisco Cloud Portal (CCP)

    Hi,
    Is parallel rendering of portlets available in Cisco Cloud Portal (CCP)? If yes, then how to configure it?
    I am displaying 3 JSR portlets in single portal page. It is taking long time to load the page with portlets as one of the portlet is taking long time to respond.
    Thanks,
    Parveen

    Hi,
    Is parallel rendering of portlets available in Cisco Cloud Portal (CCP)? If yes, then how to configure it?
    I am displaying 3 JSR portlets in single portal page. It is taking long time to load the page with portlets as one of the portlet is taking long time to respond.
    Thanks,
    Parveen

  • Interportlet communication JSR 168

    I have two JSR portlets that use jsp files in their doView() methods. One portlet is menu and the other
    portlet performs some action in response to selection in menu portlet.
    My idea was to do the following menu.jsp for MyMenu portlet:
    <%@ page import="some.package.MyMenuPortlet"%>
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
    <%@ taglib uri="http://www.bea.com/servers/portal/tags/netuix/render" prefix="render"%>
    <p><b>Menu:</b></p>
    <render:windowUrl var="windowUrl">
    <render:param name="SELECTION" value="SOME_SELECTION_VALUE"/>
    </render:windowUrl>
    <netui:anchor href="<%=windowUrl%>"></netui:anchor><br>
    This creates a one option menu with a href identical to the calling http request with addition of
    SELECTION parameter at the end.
    As a next step I wanted to do follwoing doView() method in secon portlet.
    public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException
    response.setContentType("text/html");
    String menuSelectionValue = request.getParameter("SELECTION");
    if (menuSelectionValue == "SOME_SELECTION_VALUE")
         /* do something regardind thin selection */
    The proble is that request.getParameter("SELECTION") returns null. I think it takes parameters only from
    context of portlet whom the doView() we are in.
    Is there any way to retrieve parameter from http request?
    Or is there any other way to compose request in a MyMenu.jsp? <portlet:renderURL> doesn´t work either.
    It is visible only in MYMenuPortlet.doView() and not in MyOtherPortlet.doView(). Clearly a portlet scope
    issue.
    Is there any way to do this?
    Another option is to use <portlet:actionURL> which would invoke MyMenuPortlet.processAction(). I could
    then store selection value in user session (APPLICATION_SCOPE) and this would then be visible to my
    other portlet.
    Any suggestions?
    Thanx

    You have the following alternatives...
    Sure, the portlet session with APPLICATION_SCOPE
    Or,
    you can get the HttpServletRequest from the request like the following:
    request.getAttribute("javax.servlet.request");
    I have two JSR portlets that use jsp files in their
    doView() methods. One portlet is menu and the other
    portlet performs some action in response to selection
    in menu portlet.
    My idea was to do the following menu.jsp for MyMenu
    portlet:
    <%@ page import="some.package.MyMenuPortlet"%>
    <%@ taglib uri="netui-tags-html.tld"
    prefix="netui"%>
    <%@ taglib uri="http://java.sun.com/portlet"
    prefix="portlet"%>
    <%@ taglib
    uri="http://www.bea.com/servers/portal/tags/netuix/ren
    der" prefix="render"%>
    <p><b>Menu:</b></p>
    <render:windowUrl var="windowUrl">
    <render:param name="SELECTION"
    ION" value="SOME_SELECTION_VALUE"/>
    </render:windowUrl>
    <netui:anchor
    href="<%=windowUrl%>"></netui:anchor><br>
    This creates a one option menu with a href identical
    to the calling http request with addition of
    SELECTION parameter at the end.
    As a next step I wanted to do follwoing doView()
    method in secon portlet.
    public void doView(RenderRequest request,
    RenderResponse response) throws PortletException,
    IOException
    response.setContentType("text/html");
    String menuSelectionValue =
    e = request.getParameter("SELECTION");
    if (menuSelectionValue == "SOME_SELECTION_VALUE")
         /* do something regardind thin selection */
    The proble is that request.getParameter("SELECTION")
    returns null. I think it takes parameters only from
    context of portlet whom the doView() we are in.
    Is there any way to retrieve parameter from http
    request?
    Or is there any other way to compose request in a
    MyMenu.jsp? <portlet:renderURL> doesn´t work either.
    It is visible only in MYMenuPortlet.doView() and not
    in MyOtherPortlet.doView(). Clearly a portlet scope
    issue.
    Is there any way to do this?
    Another option is to use <portlet:actionURL> which
    would invoke MyMenuPortlet.processAction(). I could
    then store selection value in user session
    (APPLICATION_SCOPE) and this would then be visible to
    my
    other portlet.
    Any suggestions?
    Thanx

Maybe you are looking for

  • Sales org doubts

    Hi Gurus, Could any one help me where exactly if we maintained the Address in Sales Organisation and shipping point will Impact. Where can i see if i maintained the address. Will it appear in any docs e.g. PO, billing doc, Sale Order ? Cheers Edie Ed

  • Line protocol down

    what are all possibilities for having line protocol down status.pls discuss in detail.

  • Skype stopped working.

    Since yesterday Skype stopped working , though there's no problem with net or nythng still it doesn't work.....

  • Single Switch for multiple clusters

    We currently have multiple independent RAC clusters, each with a low cost switch for the interconnect. For example server1 and server2 is the development RAC. Server3 and server4 are the test RAC and server5 and server6 are the production rac. Can a

  • My windows is missing

    some how all of my windows have been erased off my computer and my disk has been taken so could you please let me know if their is any way to retreave them i have windows 98 can you help