struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Goncalves <philippe.goncal...@gmail.com>
Subject Re: Beans stay null
Date Thu, 16 Dec 2010 05:27:58 GMT
Thanks for your help maurizio, I found something about my problem: I'm
developping a plugin on the Jive SBS Software. To do this, all the action
class must extend a JiveActionSupport class. I changed by ActionSupport
directly, and my beans are not null anymore. But I can't do this way because
the plugins on Jive must extend JiveActionSupport. I'm gonna send a mail to
their support.

Thanks

On Wed, Dec 15, 2010 at 11:12 PM, Maurizio Cucchiara <
maurizio.cucchiara@gmail.com> wrote:

> It's very strange odd. Could you attach at least your action java file,
> struts.xml and freemarker template?
>
> Maurizio Cucchiara
>
> Il giorno 16/dic/2010 05.06, "Philippe Goncalves" <
> philippe.goncalves@gmail.com> ha scritto:
> > Unfortunately nothing :(
> >
> > On Wed, Dec 15, 2010 at 10:25 PM, Maurizio Cucchiara <
> > maurizio.cucchiara@gmail.com> wrote:
> >
> >> Did you see if you get any exception? (like conversion errors)
> >>
> >> Maurizio Cucchiara
> >>
> >> Il giorno 16/dic/2010 04.21, "Philippe Goncalves" <
> >> philippe.goncalves@gmail.com> ha scritto:
> >> > It's before the redirection.
> >> > I come to my page: Ok, my variables are all here
> >> > I submit my page: when It comes to my Action class (method execute) to
> >> save
> >> > the information submited, my bean objects are all null on the class,
> but
> >> > they are present on my request object. The only variables not null are
> >> the
> >> > simple Objects on my class (String, Integer, etc.). It's like it
> doesn't
> >> > want to deal with my pojo objects...
> >> >
> >> > On Wed, Dec 15, 2010 at 10:13 PM, Maurizio Cucchiara <
> >> > maurizio.cucchiara@gmail.com> wrote:
> >> >
> >> >> As I guess, when struts do a redirect lost your bean parameters.
> >> >> Try to remove and see what happens
> >> >>
> >> >> Maurizio Cucchiara
> >> >>
> >> >> Il giorno 16/dic/2010 04.09, "Philippe Goncalves" <
> >> >> philippe.goncalves@gmail.com> ha scritto:
> >> >> Sure, here it is:
> >> >>
> >> >> <action name="edit-event"
> >> >> class="com.jivesoftware.community.ext.event.action.MyAction">
> >> >> <result name="success"
> >> >> type="redirect">/events/${event.ID}</result>
> >> >> <result name="input"
> >> >>
> >> >>
> >>
> >>
>
> type="freemarker">/plugins/event-type-plugin/resources/templates/edit-event.ftl</result>
> >> >> <result name="cancel"
> >> >> type="redirect">/events/${event.ID}</result>
> >> >> </action>
> >> >>
> >> >>
> >> >> On Wed, Dec 15, 2010 at 10:05 PM, Maurizio Cucchiara <
> >> >> maurizio.cucchiara@gmail.com> wrote:
> >> >>
> >> >> > Coul...
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> > Philippe Goncalves
> >> > http://www.linkedin.com/in/philippegoncalves
> >> > http://www.philippegoncalves.com
> >> > Tel: +15146326816
> >>
> >
> >
> >
> > --
> > Philippe Goncalves
> > http://www.linkedin.com/in/philippegoncalves
> > http://www.philippegoncalves.com
> > Tel: +15146326816
>



-- 
Philippe Goncalves
http://www.linkedin.com/in/philippegoncalves
http://www.philippegoncalves.com
Tel: +15146326816

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message