//as this was already asked and resolved from rogers email of early this week

 

//when InvocationContext ValueStack is null usually indicates actionInvocation 
does not yet know of your listener to check
1)
 /**
     * Gets whether this ActionInvocation has executed before.
     * This will be set after the Action and the Result have executed.
     * @return <tt>true</tt> if this ActionInvocation has executed before.
     */
if(ic.isExecuted()==true) //ic is valid (references to VS and other ic 
attributes should be valid)

2)
 /**
     * Register a {...@link PreResultListener} to be notified after the Action 
is executed and
     * before the Result is executed.
     * <p/>
     * The ActionInvocation implementation must guarantee that listeners will 
be called in
     * the order in which they are registered.
     * <p/>
     * Listener registration and execution does not need to be thread-safe.
     *
     * @param listener the listener to add.
     */
    void addPreResultListener(PreResultListener listener);
2)ic.addPreResultListener(this));

Martin--

 

FYI:YOU SPELLED WIRED WRONG
______________________________________________ 
do not intercept or modify this transmission



 


> Date: Fri, 21 May 2010 08:12:34 -0700
> From: rouxe...@yahoo.com
> Subject: Re : Re : Disappearing Labels
> To: user@struts.apache.org
> 
> no
> I have just one war file deployed on tomcat 6
> and when in my action I push my model on the valueStack,
> only my label inside a tag disapeared (eg : <s:textfield 
> label=%{getText('user.address'} .../>
> the labels displayed by a <s:text > work perfeclty
> 
> very very weird...
> 
> fr/
> 
> ____________________________________________ 
> ____________________________________________
> 
> 
> 
> ----- Message d'origine ----
> De : Bhaarat Sharma <bhaara...@gmail.com>
> À : Struts Users Mailing List <user@struts.apache.org>
> Envoyé le : Ven 21 mai 2010, 8h 34min 00s
> Objet : Re: Re : Disappearing Labels
> 
> Were you in an environment where the Xworks.jar was shared by different
> WARs?
> 
> can you share how your <s:text/> tag looked like?
> 
> Thanks
> 
> On Fri, May 21, 2010 at 7:11 AM, François Rouxel <rouxe...@yahoo.com> wrote:
> 
> > I had the same effect when pushing my model on the valueStack...
> > I don't know why, but my labels disappeared too...
> >
> > if anybody had an idea...
> >
> > fr/
> > ____________________________________________
> > ____________________________________________
> >
> >
> >
> > ----- Message d'origine ----
> > De : Bhaarat Sharma <bhaara...@gmail.com>
> > À : Struts Users Mailing List <user@struts.apache.org>
> > Envoyé le : Jeu 20 mai 2010, 23h 31min 38s
> > Objet : Re: Disappearing Labels
> >
> > Thanks for clarifying. I will try stuff and get back
> >
> > On Thu, May 20, 2010 at 11:24 PM, Cimballi <cimba...@cimballi.net> wrote:
> >
> > > I recommend you to try to deploy both applications on separate
> > > servers, as the guy did in your link, and see if you still have the
> > > problem.
> > > For sure the s:text in Struts uses Xworks.
> > >
> > > Cimballi
> > >
> > >
> > > On Thu, May 20, 2010 at 10:10 PM, Bhaarat Sharma <bhaara...@gmail.com>
> > > wrote:
> > > > Hi,
> > > >
> > > > Have not tried that yet. We can not try that because of this error on
> > > > glassfish.
> > > http://www.mail-archive.com/user@struts.apache.org/msg76893.html
> > > > having multiple wars in an ear. this causes wars and ears to not get
> > > > deployed.
> > > >
> > > > I fail to understand why this would happen couple hours after the
> > restart
> > > > when other ppl start doing their work on other war's. what could be
> > > causing
> > > > the labels to just intermittently disappear?
> > > >
> > > > Can someone confirm that Xworks.jar is utilized when getting labels in
> > > code
> > > > like <s:text name="mylabelname.one"/> ?
> > > >
> > > > On Thu, May 20, 2010 at 10:44 PM, Cimballi <cimba...@cimballi.net>
> > > wrote:
> > > >
> > > >> Did you try putting the xworks jar in each project ? I am not sure but
> > > >> I don't think you can share it.
> > > >>
> > > >> Cimballi
> > > >>
> > > >>
> > > >> On Thu, May 20, 2010 at 9:18 PM, Bhaarat Sharma <bhaara...@gmail.com>
> > > >> wrote:
> > > >> > We have a weird problem with multiple Struts2 wars deployed on same
> > > >> > GlassFish server. These wars share the Xworks.jar file and have
> > their
> > > >> own
> > > >> > copy of struts2-core jar files in WEB-INF/lib
> > > >> >
> > > >> > Problem we are experiencing is that once the server is restarted
> > > >> everything
> > > >> > is ok but after couple of hours of people going into their own
> > > >> applications
> > > >> > and doing regular work we notice that one application starts seeing
> > > >> lables
> > > >> > issues.
> > > >> >
> > > >> > In this applications struts.properties the following is defined:
> > > >> > struts.custom.i18n.resources=labelsfile1,labelsfile2
> > > >> >
> > > >> > They use labels in their jsps like so:
> > > >> > <s:text name="somelabelin.labelsfile1"/>
> > > >> >
> > > >> > When the error happens...instead of seeing the actual text
> > > corresponding
> > > >> to
> > > >> > that value...we start seeing the label name. So in this case we see
> > > >> > "somelabelin.labelsfile1" on the front end.
> > > >> >
> > > >> > This issue again goes away after the server is restarted.
> > > >> >
> > > >> > Anyone has any hint on what could be causing this? could other
> > war's
> > > be
> > > >> > overwriting this war's labels configuration? could devMode being
> > true
> > > in
> > > >> > some war's struts.properties file be causing this issue?
> > > >> >
> > > >> > I'd appreciate any hints.
> > > >> >
> > > >>
> > > >>
> > > >>
> > > >> --
> > > >> Cimballi
> > > >> JAVA J2EE Freelance
> > > >> http://cimballi.elance.com/
> > > >>
> > > >> ---------------------------------------------------------------------
> > > >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > > >> For additional commands, e-mail: user-h...@struts.apache.org
> > > >>
> > > >>
> > > >
> > >
> > >
> > >
> > > --
> > > Cimballi
> > > JAVA J2EE Freelance
> > > http://cimballi.elance.com/
> > >
> > > ---------------------------------------------------------------------
> > > 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
> >
> >
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
                                          
_________________________________________________________________
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1

Reply via email to