Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

user Digest 14 May 2008 17:33:07 -0000 Issue 8029

user-digest-help

2008-05-14


Author LoginPost Reply

user Digest 14 May 2008 17:33:07 -0000 Issue 8029

Topics (messages 186441 through 186458):

Struts Annotation
 186441 by: Felipe Lorenz
 186442 by: Ian Roughley
 186444 by: Felipe Lorenz
 186445 by: Ian Roughley

Re: Spring Security and Struts2 Using tiles
 186443 by: Alberto A. Flores

[Struts 2] Dojo datetimepicker - simple
 186446 by: Milan Milanovic
 186448 by: Milan Milanovic
 186449 by: Milan Milanovic
 186450 by: Milan Milanovic
 186452 by: Randy Burgess
 186455 by: Milan Milanovic

Re: [struts 2] Table question
 186447 by: Milan Milanovic

Missing @Result in 2.1.x
 186451 by: Lukasz Lenart
 186453 by: Musachy Barroso
 186457 by: Lukasz Lenart

[Struts 2] Pass value between two action classes
 186454 by: Milan Milanovic

Re: <s:actionerror > Tag Data Rendering Issue
 186456 by: Himanshu Rathore

Re: [struts 2] Two forms for one action
 186458 by: Jukka Välimaa

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_186441.ezm (zipped)
Hi.

Im try to use annotations for action results.

but, the annotations is for a class, not for each method in an class...

fallow this idea, for each CRUD operations i need one actions class??? Or
have other way to do one action class for CRUD operations?

Felipe A. lorenz
www.idealogic.com.br

Attachment: user_186442.ezm (zipped)
Results are annotated at the class level, see
http://struts.apache.org/2.0.6/docs/annotations.html

/Ian

Felipe Lorenz wrote:
> Hi.
>
> Im try to use annotations for action results.
>
> but, the annotations is for a class, not for each method in an class...
>
> fallow this idea, for each CRUD operations i need one actions class??? Or
> have other way to do one action class for CRUD operations?
>
> Felipe A. lorenz
> www.idealogic.com.br
>
>  


Attachment: user_186444.ezm (zipped)
Yes.. told it in my question... i need to know if have some different way to
use one class to implement CRUD methods!!

On Wed, May 14, 2008 at 10:08 AM, Ian Roughley <ian@(protected):

> Results are annotated at the class level, see
> http://struts.apache.org/2.0.6/docs/annotations.html
>
> /Ian
>
>
> Felipe Lorenz wrote:
>
>> Hi.
>>
>> Im try to use annotations for action results.
>>
>> but, the annotations is for a class, not for each method in an class...
>>
>> fallow this idea, for each CRUD operations i need one actions class??? Or
>> have other way to do one action class for CRUD operations?
>>
>> Felipe A. lorenz
>> www.idealogic.com.br
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment: user_186445.ezm (zipped)
So all the action results are defined at the class level and used per
CRUD method. So if you define "input", "success", "page1", etc. at the
top, each of the CRUD methods can then choose which result to return.

Did you mean that you want annotations that map the action name to the
CRUD method? This case is not currently supported via the zero config
setup (a convention is used). You might want to check out the
convention plug-in.

/Ian

Felipe Lorenz wrote:
> Yes.. told it in my question... i need to know if have some different way to
> use one class to implement CRUD methods!!
>
> On Wed, May 14, 2008 at 10:08 AM, Ian Roughley <ian@(protected):
>
>  
>> Results are annotated at the class level, see
>> http://struts.apache.org/2.0.6/docs/annotations.html
>>
>> /Ian
>>
>>
>> Felipe Lorenz wrote:
>>
>>  
>>> Hi.
>>>
>>> Im try to use annotations for action results.
>>>
>>> but, the annotations is for a class, not for each method in an class...
>>>
>>> fallow this idea, for each CRUD operations i need one actions class??? Or
>>> have other way to do one action class for CRUD operations?
>>>
>>> Felipe A. lorenz
>>> www.idealogic.com.br
>>>
>>>
>>>
>>>    
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>  
>
>  


Attachment: user_186443.ezm (zipped)
After further testing, it looks like even without tiles, the strut2
action mapping is not secured with Acegi/Spring Security (as of version
2.0.1, Struts version 2.0.11). As far as I can tell, it has to do with
the FilterDispatcher (Struts2) always forwarding to ActionProxy class to
process work (hence the Spring Security Filter never knows of the request)

Antonio Petrelli wrote:
> 2008/5/13 Alberto A. Flores <aaflores@(protected)>:
>> I would, but it seems to me like there is little that can be done on the
>> Struts2 side (unless a plugin of some sort is written). Essentially, when
>> control is forwarded to the tile, Spring security can not do much (or maybe
>> I'm missing something).
>
> I see...
>
>> The Spring Security team is well aware of (as far as forwards), that
>> resources are not secured on forwards (which sucks, really, unless I'm doing
>> something terribly wrong).
>
> Great, at least the bug is not at Struts or Tiles side :-)
>
>> I'll see if I can create a subset of my current app describing the problem.
>> Probably would post a war file? Is that what you meant?
>
> Exactly, with the source.
>
> Antonio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

--

Alberto A. Flores
http://www.linkedin.com/in/aflores


Attachment: user_186446.ezm (zipped)
Hi,
I have in my action class Date field with get/set methods, and when I try to show
datetimepicker in my jsp, like this:
<s:datetimepicker name="fromDate" value="fromDate" id="fromDate" displayFormat="dd.MM.yyyy" label="From date"/>
It show only NaN.NaN.0NaN information in place of datetimepicker, and this debug info:
DEBUG: invalid date string: pregled.odPeriod
DEBUG: DEPRECATED: dojo.widget.DropdownDatePicker date attributes must be passed in Rfc3339 format -- will be removed in version: 0.5
What is the problem ? I created Date before showing this page: fromDate = new Date();
--
Thx, Milan Milanovic


   

Attachment: user_186448.ezm (zipped)
Hi,

I have in my action class Date field with get/set methods, and when I try to show
datetimepicker in my jsp, like this:

<s:datetimepicker name="fromDate" value="fromDate" id="fromDate" displayFormat="dd.MM.yyyy" label="From date"/>
It show only NaN.NaN.0NaN information in place of datetimepicker, and this debug info:

DEBUG: invalid date string: fromDate
DEBUG: DEPRECATED: dojo.widget.DropdownDatePicker date attributes must be passed in Rfc3339 format -- will be removed in version: 0.5

What is the problem ? I created Date before showing this page: fromDate = new Date();

--
Thx, Milan Milanovic


   

Attachment: user_186449.ezm (zipped)
I also get this exception for this:java.text.ParseException: Unparseable date: "fromDate"at java.text.DateFormat.parse(Unknown Source)
at org.apache.struts2.components.DateTimePicker.format(
at org.apache.struts2.components.DateTimePicker.evaluateParams(
at org.apache.struts2.components.UIBean.end(
at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(DateTimePicker.java:309)DateTimePicker.java:202)UIBean.java:481)ComponentTagSupport.java:43)
...
--
Milan


----- Original Message ----
From: Milan Milanovic <milanmilanovich@(protected)>
To: Struts Users Mailing List <user@(protected)>
Sent: Wednesday, May 14, 2008 3:57:19 PM
Subject: [Struts 2] Dojo datetimepicker - simple

Hi,

I have in my action class Date field with get/set methods, and when I try to show
datetimepicker in my jsp, like this:

<s:datetimepicker name="fromDate" value="fromDate" id="fromDate" displayFormat="dd.MM.yyyy" label="From date"/>
It show only NaN.NaN.0NaN information in place of datetimepicker, and this debug info:

DEBUG: invalid date string: fromDate
DEBUG: DEPRECATED: dojo.widget.DropdownDatePicker date attributes must be passed in Rfc3339 format -- will be removed in version: 0.5

What is the problem ? I created Date before showing this page: fromDate = new Date();

--
Thx, Milan Milanovic


   

Attachment: user_186450.ezm (zipped)
When I removed value part then it works. I don't need value part at all?
One more question, if I have two <s:datetimepicker-s> in <s:form> how
can I format them to be shown one along another in jsp, and not one below another as default ?


--
Thx, Milan
----- Original Message ----
From: Milan Milanovic <milanmilanovich@(protected)>
To: Struts Users Mailing List <user@(protected)>
Sent: Wednesday, May 14, 2008 4:14:41 PM
Subject: Re: [Struts 2] Dojo datetimepicker - simple

I also get this exception for this:java.text.ParseException: Unparseable date: "fromDate"at java.text.DateFormat.parse(Unknown Source)
at org.apache.struts2.components.DateTimePicker.format(
at org.apache.struts2.components.DateTimePicker.evaluateParams(
at org.apache.struts2.components.UIBean.end(
at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(DateTimePicker.java:309)DateTimePicker.java:202)UIBean.java:481)ComponentTagSupport.java:43)
...
--
Milan


----- Original Message ----
From: Milan Milanovic <milanmilanovich@(protected)>
To: Struts Users Mailing List <user@(protected)>
Sent: Wednesday, May 14, 2008 3:57:19 PM
Subject: [Struts 2] Dojo datetimepicker - simple

Hi,

I have in my action class Date field with get/set methods, and when I try to show
datetimepicker in my jsp, like this:

<s:datetimepicker name="fromDate" value="fromDate" id="fromDate" displayFormat="dd.MM.yyyy" label="From date"/>
It show only NaN.NaN.0NaN information in place of datetimepicker, and this debug info:

DEBUG: invalid date string: fromDate
DEBUG: DEPRECATED: dojo.widget.DropdownDatePicker date attributes must be passed in Rfc3339 format -- will be removed in version: 0.5

What is the problem ? I created Date before showing this page: fromDate = new Date();

--
Thx, Milan Milanovic


   

Attachment: user_186452.ezm (zipped)
I don't have direct experience with this particular tag but normally setting
the theme to simple will remove the generated <tr><td> tags.

<s:datetimepicker theme="simple"/>

Have you viewed the generated source? That will show you what is being
generated for you.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Milan Milanovic <milanmilanovich@(protected)>
> Reply-To: Struts Users Mailing List <user@(protected)>
> Date: Wed, 14 May 2008 07:29:33 -0700 (PDT)
> To: Struts Users Mailing List <user@(protected)>
> Subject: Re: [Struts 2] Dojo datetimepicker - simple
>
> When I removed value part then it works. I don't need value part at all?
> One more question, if I have two <s:datetimepicker-s> in <s:form> how
> can I format them to be shown one along another in jsp, and not one below
> another as default ?
>
>
> --
> Thx, Milan
> ----- Original Message ----
> From: Milan Milanovic <milanmilanovich@(protected)>
> To: Struts Users Mailing List <user@(protected)>
> Sent: Wednesday, May 14, 2008 4:14:41 PM
> Subject: Re: [Struts 2] Dojo datetimepicker - simple
>
> I also get this exception for this:java.text.ParseException: Unparseable date:
> "fromDate"at java.text.DateFormat.parse(Unknown Source)
> at org.apache.struts2.components.DateTimePicker.format(
> at org.apache.struts2.components.DateTimePicker.evaluateParams(
> at org.apache.struts2.components.UIBean.end(
> at
> org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(DateTimePicker.java:
> 309)DateTimePicker.java:202)UIBean.java:481)ComponentTagSupport.java:43)
> ...
> --
> Milan
>
>
> ----- Original Message ----
> From: Milan Milanovic <milanmilanovich@(protected)>
> To: Struts Users Mailing List <user@(protected)>
> Sent: Wednesday, May 14, 2008 3:57:19 PM
> Subject: [Struts 2] Dojo datetimepicker - simple
>
> Hi,
>
> I have in my action class Date field with get/set methods, and when I try to
> show
> datetimepicker in my jsp, like this:
>
> <s:datetimepicker name="fromDate" value="fromDate" id="fromDate"
> displayFormat="dd.MM.yyyy" label="From date"/>
> It show only NaN.NaN.0NaN information in place of datetimepicker, and this
> debug info:
>
> DEBUG: invalid date string: fromDate
> DEBUG: DEPRECATED: dojo.widget.DropdownDatePicker date attributes must be
> passed in Rfc3339 format -- will be removed in version: 0.5
>
> What is the problem ? I created Date before showing this page: fromDate = new
> Date();
>
> --
> Thx, Milan Milanovic
>
>
>    



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_186455.ezm (zipped)
Hi Randy,
yes, I already do that. Thx.
--
Milan


----- Original Message ----
From: Randy Burgess <RBurgess@(protected)>
To: Struts Users Mailing List <user@(protected)>
Sent: Wednesday, May 14, 2008 6:10:14 PM
Subject: Re: [Struts 2] Dojo datetimepicker - simple

I don't have direct experience with this particular tag but normally setting
the theme to simple will remove the generated <tr><td> tags.

<s:datetimepicker theme="simple"/>

Have you viewed the generated source? That will show you what is being
generated for you.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Milan Milanovic <milanmilanovich@(protected)>
> Reply-To: Struts Users Mailing List <user@(protected)>
> Date: Wed, 14 May 2008 07:29:33 -0700 (PDT)
> To: Struts Users Mailing List <user@(protected)>
> Subject: Re: [Struts 2] Dojo datetimepicker - simple
>
> When I removed value part then it works. I don't need value part at all?
> One more question, if I have two <s:datetimepicker-s> in <s:form> how
> can I format them to be shown one along another in jsp, and not one below
> another as default ?
>
>
> --
> Thx, Milan
> ----- Original Message ----
> From: Milan Milanovic <milanmilanovich@(protected)>
> To: Struts Users Mailing List <user@(protected)>
> Sent: Wednesday, May 14, 2008 4:14:41 PM
> Subject: Re: [Struts 2] Dojo datetimepicker - simple
>
> I also get this exception for this:java.text.ParseException: Unparseable date:
> "fromDate"at java.text.DateFormat.parse(Unknown Source)
> at org.apache.struts2.components.DateTimePicker.format(
> at org.apache.struts2.components.DateTimePicker.evaluateParams(
> at org.apache.struts2.components.UIBean.end(
> at
> org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(DateTimePicker.java:
> 309)DateTimePicker.java:202)UIBean.java:481)ComponentTagSupport.java:43)
> ...
> --
> Milan
>
>
> ----- Original Message ----
> From: Milan Milanovic <milanmilanovich@(protected)>
> To: Struts Users Mailing List <user@(protected)>
> Sent: Wednesday, May 14, 2008 3:57:19 PM
> Subject: [Struts 2] Dojo datetimepicker - simple
>
> Hi,
>
> I have in my action class Date field with get/set methods, and when I try to
> show
> datetimepicker in my jsp, like this:
>
> <s:datetimepicker name="fromDate" value="fromDate" id="fromDate"
> displayFormat="dd.MM.yyyy" label="From date"/>
> It show only NaN.NaN.0NaN information in place of datetimepicker, and this
> debug info:
>
> DEBUG: invalid date string: fromDate
> DEBUG: DEPRECATED: dojo.widget.DropdownDatePicker date attributes must be
> passed in Rfc3339 format -- will be removed in version: 0.5
>
> What is the problem ? I created Date before showing this page: fromDate = new
> Date();
>
> --
> Thx, Milan Milanovic
>
>
>     



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.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)



Attachment: user_186447.ezm (zipped)
Hi Jim,
>I am unfamiliar with the various tags that can be used to display chunks of
>a table.  I know they're out there (the display tag library comes to mind).
>The most recent time I had to do this I rolled my own; it was pretty
>painless.  I held the data in a List of data objects, and then used
>List.subList() in my action method to determine the precise chunk of the
>List that I wanted to show.
Could you post here or send me an example for showing table pagination ?
--
Thx, Milan Milanovic 


----- Original Message ----
From: Jim Kiley <jhkiley@(protected)>
To: Struts Users Mailing List <user@(protected)>
Sent: Tuesday, May 13, 2008 3:34:58 PM
Subject: Re: [struts 2] Table question

I have to admit that in your first instance I would cheat -- I would dummy
up a method somewhere on my action class or my POJO that returned the
desired string, rather than trying to compose the string within the JSP.

I am unfamiliar with the various tags that can be used to display chunks of
a table.  I know they're out there (the display tag library comes to mind).
The most recent time I had to do this I rolled my own; it was pretty
painless.  I held the data in a List of data objects, and then used
List.subList() in my action method to determine the precise chunk of the
List that I wanted to show.

Hope this helps.

jk

On Tue, May 13, 2008 at 9:30 AM, Milan Milanovic <milanmilanovich@(protected)>
wrote:

> Hi,
> first I'll ask again my earlier question, is there possibility to show in
> a combo box
> two values, for example I want to show id and name of the every fruit: 1
> Apple ?
> The second question is, my struts 2 application on one jsp page will have
> 5 combo
> boxes, 4 text boxes, two buttons and two datetime pickers, and below all
> these controls a table
> that will show what is entered using controls above. The problem is that
> my table will have
> about 100-120 records (rows) to show, and I think that is very much for
> one jsp page, and
> also I want user to see about last 10 rows, because he need to see if
> there is any error.
> How can I do this, can I use table pagination (how) ?
> --
> Thx in advance, Milan Milanovic
>
>
>




--
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com




Attachment: user_186451.ezm (zipped)
Hi,

I'm trying to use annotation to configure my action, but as I noticed, is
only available in Struts 2.0.x. What about 2.1.x? The only option is to use
Codebehind plugin?


Thanks in advance
--
Lukasz

http://www.linkedin.com/in/lukaszlenart
http://jdn.pl/blog/416
http://www.lenart.org.pl/

Attachment: user_186453.ezm (zipped)
Yes

On Wed, May 14, 2008 at 12:05 PM, Lukasz Lenart
<lukasz.lenart@(protected):
> Hi,
>
> I'm trying to use annotation to configure my action, but as I noticed, is
> only available in Struts 2.0.x. What about 2.1.x? The only option is to use
> Codebehind plugin?
>
>
> Thanks in advance
> --
> Lukasz
>
> http://www.linkedin.com/in/lukaszlenart
> http://jdn.pl/blog/416
> http://www.lenart.org.pl/
>



--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment: user_186457.ezm (zipped)
>
> Yes
>

;-)

So, than, how can I use different methods from my Action class? Is it
possible?


Thanks in advance
--
Lukasz

http://www.linkedin.com/in/lukaszlenart
http://jdn.pl/blog/416
http://www.lenart.org.pl/

Attachment: user_186454.ezm (zipped)
Hi,
because my jsp would be too complicated, I decided to move some controls to
another page. Actually I have just one object where I store data in my action class (e.g., Fruit),
where in first jsp user enter about half information, and in second he enter rest of the information
(but I want to use the same Fruit object, because I need to have data from the first jsp).
How can I do this ?
--
Thx, Milan


   

Attachment: user_186456.ezm (zipped)
Hi Laurie,

A silly mistake at my end. Had included a TD in CSS wherein text-transform
was set to capitalise. And I didn't pay much attention to this particular
attribute assuming that nothing would be there.

Thanks for your help

On Tue, May 13, 2008 at 10:32 PM, Laurie Harper <laurie@(protected):

> Himanshu Rathore wrote:
>
>> When using <s:actionerror > tag, the first character of error message is
>> automatically getting converted to upper case. I haven't set any
>> "text-transform" property in my CSS.
>>
>> If I do "View Source", I see proper text but on JSP its behaving weirdly.
>>
>> My CSS:
>> ..errorMessage {
>> color: red;
>> font: 10px verdana, arial, helvetica, sans-serif;
>> }
>>
>> In "View Source"
>> <ul>
>> <li><span class="errorMessage">Please enter User Id</span></li>
>> </ul>
>>
>> But on JSP, it is displayed as
>> Please Enter User Id
>>
>> I have included struts.properties in my project classpath and have set *
>> struts.ui.theme=simple*
>>
>> What could be the reason of this behaviour?
>>
>
> Sounds like *something* is applying a text-transform to the text. When you
> view source, what stylesheets do you see referenced? Are there any <style>
> blocks, or inline styles in the markup? You might try using the Web
> Developer or Firebug extensions for Firefox to examine the DOM and determine
> what styles are really being applied to that element of some additional
> insight into what's going on.
>
> L.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment: user_186458.ezm (zipped)
The action class does not have state information. Each request is handled by
a different object. If there are appropriate form input fields in the jsp,
struts params interceptor will call the getters and setters on form submit,
calling constructors and instantiating new objects for action fields if they
have not already been created. This can create illusion of persistence of
objects themselves.

As for storing information in two forms; two forms can store different
information, and set it into the action when they are submitted. But you
should remember that you can only submit one of the forms at a time.
Normally this means that you can't use the information in the other any more
as a new page is loaded.

On Wed, May 14, 2008 at 1:16 PM, Milan Milanovic <milanmilanovich@(protected)>
wrote:

> 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.
> >
> >
> >
> >
> >
>
>
>
>
©2008 gg3721.com - Jax Systems, LLC, U.S.A.