you dont have a PortletSession?

are you implementing the org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher

dispatcher identified as portlet-class thru portlet.xml?
portlet.xml contents:

<?xml version="1.0" encoding="UTF-8"?>

<portlet-app
   version="1.0"
   xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd 
http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd";
   id="bookmark-portlet">

   <portlet id="HelloPortlet">
      <description xml:lang="EN">Simple hello world portlet</description>
      <portlet-name>HelloPortlet</portlet-name>
      <display-name xml:lang="EN">bookmark-portlet</display-name>
                
      
<portlet-class>org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher</portlet-class>
http://struts.apache.org/2.0.14/docs/struts-2-portlet-tutorial.html
?
Martin Gainty 
______________________________________________ 
Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de 
déni et de confidentialité 
This message is confidential. If you should not be the intended receiver, then 
we ask politely to report. Each unauthorized forwarding or manufacturing of a 
copy is inadmissible. This message serves only for the exchange of information 
and has no legal binding effect. Due to the easy manipulation of emails we 
cannot take responsibility over the the contents.
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.






> Date: Thu, 16 Apr 2009 21:25:30 +0200
> Subject: Re: Struts 2 Portlet/Oracle Portal Problems
> From: nil...@gmail.com
> To: user@struts.apache.org
> 
> Not sure why this should have anything to do with the problem, but
> anyway, calling clear() on the map would invalidate the session.
> 
> Nils-H
> 
> On Thu, Apr 16, 2009 at 9:15 PM, Stephen Turner <stur...@mit.edu> wrote:
> > On Thu, 16 Apr 2009 12:24:13 -0400, Martin Gainty <mgai...@hotmail.com>
> > wrote:
> >
> >>
> >> 30 second solution seems to indicate session variables are auto-populating
> >> url
> >> so last statement(s) in doView method should invalidate your
> >> PortletSession
> >>
> >> // Code fragment from class implementing SessionAware containing the
> >> // session map in a instance variable "session". Attempting to invalidate
> >>
> >>    org.apache.struts2.portlet.servlet.PortletSession session;
> >>
> >> try {
> >>        ((org.apache.struts2.dispatcher.SessionMap) session).invalidate();
> >>    } catch (Exception e) {
> >>        logger.error(msg, e);
> >>    }
> >>
> >> out of curiosity are you implementing with METHOD="GET" or METHOD="POST"
> >> ?
> >> Martin
> >>
> >
> > Thanks for the reply Martin - I didn't get too far though.
> >
> > Implementing SessionAware gives me a simple Map object, not a PortletSession
> > object. Also casting PortletSession to SessionMap doesn't seem to please my
> > JVM.
> >
> > The form action uses a POST method.
> >
> > Thanks,
> > Steve
> >
> > --
> > Stephen Turner
> > Senior Programmer/Analyst - SAIS
> > MIT IS&T
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 

_________________________________________________________________
Rediscover Hotmail®: Get quick friend updates right in your inbox. 
http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Updates2_042009

Reply via email to