Author Login
Post Reply
user Digest 14 May 2008 13:00:54 -0000 Issue 8028
Topics (messages 186434 through 186440):
Re: [struts 2] Two forms for one action
186434 by: Milan Milanovic
186435 by: Milan Milanovic
Struts2 with Turbine
186436 by: JKrishna
Re: File upload issue
186437 by: Zoran Avtarovski
186439 by: Zoran Avtarovski
Re: struts2 access session Id
186438 by: Jakub Milkiewicz
interceptors
186440 by: krishna chary
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)
----------------------------------------------------------------------

Attachment:
user_186434.ezm (zipped)Hi,
but how my action class is storing objects which are shown in jsp and also
it store objects inserted through jsp ? This mean that it have state information ?
--
Thx, Milan
----- Original Message ----
From: Jukka Välimaa <valimaa.jukka@(protected)>
To: Struts Users Mailing List <user@(protected)>
Sent: Wednesday, May 14, 2008 7:53:13 AM
Subject: Re: [struts 2] Two forms for one action
Both forms don't call the same *instance* of the action class. Neither does
one form, actually.
For each request, Struts 2 uses a different instance of the same class. Once
the result is
rendered, the action object is no longer used. If you want to retain action
state information, you
must store it somehow-through hidden fields in form or in session, for
example.
On Tue, May 13, 2008 at 6:13 PM, Milan Milanovic <milanmilanovich@(protected)>
wrote:
> Thank you Randy.
> >They could, if it were me I would have different methods on the action
> class
> >to handle the different forms if I were to do it this way. Personally I
> >would create an action class for each form.
>
> No, I cannot do this, because both forms need to work with the same
> objects in
> a action class. First form works with some header data, and the second
> with list
> of data and show table also of such data.
> I asked this, because I wasn't sure if both forms would call the same
> instance of
> action class.
> --
> Thx, Milan Milanovic
> ----- Original Message ----
> From: Randy Burgess <RBurgess@(protected)>
> To: Struts Users Mailing List <user@(protected)>
> Sent: Tuesday, May 13, 2008 5:09:19 PM
> Subject: Re: [struts 2] Two forms for one action
>
> They could, if it were me I would have different methods on the action
> class
> to handle the different forms if I were to do it this way. Personally I
> would create an action class for each form.
>
> Regards,
> Randy Burgess
> Sr. Web Applications Developer
> Nuvox Communications
>
>
>
> > From: Milan Milanovic <milanmilanovich@(protected)>
> > Reply-To: Struts Users Mailing List <user@(protected)>
> > Date: Tue, 13 May 2008 07:58:29 -0700 (PDT)
> > To: Struts Users Mailing List <user@(protected)>
> > Subject: Re: [struts 2] Two forms for one action
> >
> > I have one more question about this, if I define two <s:forms> in one
> page
> > would
> > they work with the same action class ?
> >
> > --
> > Thx, Milan Milanovic
> > ----- Original Message ----
> > From: Jim Kiley <jhkiley@(protected)>
> > To: Struts Users Mailing List <user@(protected)>
> > Sent: Monday, May 12, 2008 6:15:07 PM
> > Subject: Re: [struts 2] Two forms for one action
> >
> > Milan,
> >
> > I'm not a Struts 1 guy, so this advice might not be useful to you
> (because
> > you didn't say whether this was a Struts 1 or 2 situation). But in my
> Struts
> > 2 app I have plenty of places where I have multiple <s:submit> buttons
> each
> > triggering different action methods on the same action class.
> >
> > jk
> >
> >
> > On Mon, May 12, 2008 at 12:10 PM, Milan Milanovic <
> milanmilanovich@(protected)>
> > wrote:
> >
> >> Or maybe I should define two submit buttons for the same form and
> action
> >> class ?
> >> --
> >> Regards, Milan
> >>
> >>
> >> ----- Original Message ----
> >> From: Milan Milanovic <milanmilanovich@(protected)>
> >> To: Struts Users Mailing List <user@(protected)>
> >> Sent: Monday, May 12, 2008 5:57:50 PM
> >> Subject: [struts 2] Two forms for one action
> >>
> >> Hi,
> >> I need to have classic master/detail jsp page, so I need actually two
> >> forms in a jsp page to works with one action class,
> >> one main form that works with main elements of my object (e.g. User
> name,
> >> surname,...) for header and another one which works
> >> with some list that belongs to my main object (e.g., User.privileges)
> >> below such header part. How can I define this ?
> >> --
> >> Thx, Milan Milanovic
> >>
> >>
> >>
> >>
> _____________________________________________________________________________
> >> _______
> >> Be a better friend, newshound, and
> >> know-it-all with Yahoo! Mobile. Try it now.
> >> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> >>
> >>
> >>
> >>
> >>
> _____________________________________________________________________________
> >> _______
> >> Be a better friend, newshound, and
> >> know-it-all with Yahoo! Mobile. Try it now.
> >> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> >>
> >
> >
> >
> > --
> > Jim Kiley
> > Technical Consultant | Summa
> > [p] 412.258.3346 [m] 412.445.1729
> > http://www.summa-tech.com
> >
> >
> >
>
>
>
> This email and any attachments ("Message") may contain legally privileged
> and/or confidential information. If you are not the addressee, or if this
> Message has been addressed to you in error, you are not authorized to read,
> copy, or distribute it, and we ask that you please delete it (including all
> copies) and notify the sender by return email. Delivery of this Message to
> any person other than the intended recipient(s) shall not be deemed a waiver
> of confidentiality and/or a privilege.
>
>
>
>
>

Attachment:
user_186435.ezm (zipped)Actually my question is next, if my form store information to attribs of my action class,
would another form for the same class store information to attribs of the same class (but another
attribs) ?
--
Thx, Milan
----- Original Message ----
From: Milan Milanovic <milanmilanovich@(protected)>
To: Struts Users Mailing List <user@(protected)>
Sent: Wednesday, May 14, 2008 12:05:06 PM
Subject: Re: [struts 2] Two forms for one action
Hi,
but how my action class is storing objects which are shown in jsp and also
it store objects inserted through jsp ? This mean that it have state information ?
--
Thx, Milan
----- Original Message ----
From: Jukka Välimaa <valimaa.jukka@(protected)>
To: Struts Users Mailing List <user@(protected)>
Sent: Wednesday, May 14, 2008 7:53:13 AM
Subject: Re: [struts 2] Two forms for one action
Both forms don't call the same *instance* of the action class. Neither does
one form, actually.
For each request, Struts 2 uses a different instance of the same class. Once
the result is
rendered, the action object is no longer used. If you want to retain action
state information, you
must store it somehow-through hidden fields in form or in session, for
example.
On Tue, May 13, 2008 at 6:13 PM, Milan Milanovic <milanmilanovich@(protected)>
wrote:
> Thank you Randy.
> >They could, if it were me I would have different methods on the action
> class
> >to handle the different forms if I were to do it this way. Personally I
> >would create an action class for each form.
>
> No, I cannot do this, because both forms need to work with the same
> objects in
> a action class. First form works with some header data, and the second
> with list
> of data and show table also of such data.
> I asked this, because I wasn't sure if both forms would call the same
> instance of
> action class.
> --
> Thx, Milan Milanovic
> ----- Original Message ----
> From: Randy Burgess <RBurgess@(protected)>
> To: Struts Users Mailing List <user@(protected)>
> Sent: Tuesday, May 13, 2008 5:09:19 PM
> Subject: Re: [struts 2] Two forms for one action
>
> They could, if it were me I would have different methods on the action
> class
> to handle the different forms if I were to do it this way. Personally I
> would create an action class for each form.
>
> Regards,
> Randy Burgess
> Sr. Web Applications Developer
> Nuvox Communications
>
>
>
> > From: Milan Milanovic <milanmilanovich@(protected)>
> > Reply-To: Struts Users Mailing List <user@(protected)>
> > Date: Tue, 13 May 2008 07:58:29 -0700 (PDT)
> > To: Struts Users Mailing List <user@(protected)>
> > Subject: Re: [struts 2] Two forms for one action
> >
> > I have one more question about this, if I define two <s:forms> in one
> page
> > would
> > they work with the same action class ?
> >
> > --
> > Thx, Milan Milanovic
> > ----- Original Message ----
> > From: Jim Kiley <jhkiley@(protected)>
> > To: Struts Users Mailing List <user@(protected)>
> > Sent: Monday, May 12, 2008 6:15:07 PM
> > Subject: Re: [struts 2] Two forms for one action
> >
> > Milan,
> >
> > I'm not a Struts 1 guy, so this advice might not be useful to you
> (because
> > you didn't say whether this was a Struts 1 or 2 situation). But in my
> Struts
> > 2 app I have plenty of places where I have multiple <s:submit> buttons
> each
> > triggering different action methods on the same action class.
> >
> > jk
> >
> >
> > On Mon, May 12, 2008 at 12:10 PM, Milan Milanovic <
> milanmilanovich@(protected)>
> > wrote:
> >
> >> Or maybe I should define two submit buttons for the same form and
> action
> >> class ?
> >> --
> >> Regards, Milan
> >>
> >>
> >> ----- Original Message ----
> >> From: Milan Milanovic <milanmilanovich@(protected)>
> >> To: Struts Users Mailing List <user@(protected)>
> >> Sent: Monday, May 12, 2008 5:57:50 PM
> >> Subject: [struts 2] Two forms for one action
> >>
> >> Hi,
> >> I need to have classic master/detail jsp page, so I need actually two
> >> forms in a jsp page to works with one action class,
> >> one main form that works with main elements of my object (e.g. User
> name,
> >> surname,...) for header and another one which works
> >> with some list that belongs to my main object (e.g., User.privileges)
> >> below such header part. How can I define this ?
> >> --
> >> Thx, Milan Milanovic
> >>
> >>
> >>
> >>
> _____________________________________________________________________________
> >> _______
> >> Be a better friend, newshound, and
> >> know-it-all with Yahoo! Mobile. Try it now.
> >> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> >>
> >>
> >>
> >>
> >>
> _____________________________________________________________________________
> >> _______
> >> Be a better friend, newshound, and
> >> know-it-all with Yahoo! Mobile. Try it now.
> >> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> >>
> >
> >
> >
> > --
> > Jim Kiley
> > Technical Consultant | Summa
> > [p] 412.258.3346 [m] 412.445.1729
> > http://www.summa-tech.com
> >
> >
> >
>
>
>
> This email and any attachments ("Message") may contain legally privileged
> and/or confidential information. If you are not the addressee, or if this
> Message has been addressed to you in error, you are not authorized to read,
> copy, or distribute it, and we ask that you please delete it (including all
> copies) and notify the sender by return email. Delivery of this Message to
> any person other than the intended recipient(s) shall not be deemed a waiver
> of confidentiality and/or a privilege.
>
>
>
>
>

Attachment:
user_186436.ezm (zipped)
Hi,
We have a turbine web application. We want to add new features using
Struts2.
As struts2 uses servlet filters to serve the requests and the turbine
servlet serves the turbine requests, theortically this should work.
But tomcat gives "startup failed due to previous errors" without any error
messages
Can we use struts2 and turbine in the same application?
thanks in advance,
Krishna
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_186437.ezm (zipped)
Attachment:
user_186439.ezm (zipped)Further digging found that file uploads work fine with all browsers except
Safari Mac. Safari windows is fine as is Opera, IE and the Mozilla Browsers.
Does anybody know a good debugging tool for Safari?
Z.

Attachment:
user_186438.ezm (zipped)I've found the same code on Struts2 web page.
Thanks anyway
2008/5/14 krishna chary <krishnachary.udaram@(protected)>:
> use this code you will get session id
> code is....
>
> ServletActionContext.*getRequest*().getSession().getId();
>

Attachment:
user_186440.ezm (zipped)