Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

user Digest 15 Jun 2008 05:04:29 -0000 Issue 8088

user-digest-help

2008-06-15


Author LoginPost Reply

user Digest 15 Jun 2008 05:04:29 -0000 Issue 8088

Topics (messages 187568 through 187595):

What can you do with S2?
 187568 by: Al Sutton
 187570 by: Al Sutton
 187571 by: Al Sutton
 187572 by: Owen Berry
 187575 by: Musachy Barroso
 187583 by: Al Sutton
 187586 by: Musachy Barroso
 187587 by: Frank W. Zammetti
 187589 by: Dave Newton

[OT] Re: [JPA more than Struts 2] Two action classes ?
 187569 by: Al Sutton

Re: adding a header in a struts 2 interceptor
 187573 by: Page
 187574 by: Dave Newton

Re: struts 2 datetimepicker does not fire events
 187576 by: Ramesh K

Looking for some more troubleshooting resources
 187577 by: Karr, David
 187578 by: Alberto A. Flores
 187579 by: Dave Newton
 187584 by: Al Sutton

Re: Response already committed when using ActionTag
 187580 by: Jeromy Evans
 187582 by: David.W.Larson.mhn.com
 187590 by: Jeromy Evans
 187591 by: Dave Newton

DatePicker Button not generated
 187581 by: StrutsUser
 187588 by: Dave Newton

problem with configuration wiht annotations
 187585 by: Marco Mistroni

[S2] using <s:iterator> for a sequence of integers
 187592 by: Pierre Thibaudeau
 187593 by: Dave Newton
 187594 by: Pierre Thibaudeau

How can i user Swing as "V" in the Struts MVC
 187595 by: (¯`·.k ! k !.·´¯)

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_187568.ezm (zipped)
Well, OK, S2.1 (but the title wouldn't sound so catchy).

A push is being made for a high quality 2.1 GA release, and in order to
do this the codebase needs a jolly good thrashing in every way
imaginable, and the best way of doing this is to write S2.1 apps (and
don't worry, the codebase loves a good thrashing).

So, in the space of 5 working days, what can you produce that uses S2.1?

On Monday I started writing a webapp that you can now play with at
http://www.lifefeed.info/, so it's possible to write at least something
in that amount of time :).

So come on, show us what you can do!!!!

Al.

P.S. For those who are interested, in order to cut down on the coding
time I used Hibernate, Sitemesh, and the S2.1 REST plugin. Feel like
trying a better combination?

Attachment: user_187570.ezm (zipped)
OK, small hitch atm, Jetty in it's infinite wisdom is adding a
jsessionid to all requests which is screwing over the REST plugin....

arggghhhhh!!!!!!



Al Sutton wrote:
> Well, OK, S2.1 (but the title wouldn't sound so catchy).
>
> A push is being made for a high quality 2.1 GA release, and in order
> to do this the codebase needs a jolly good thrashing in every way
> imaginable, and the best way of doing this is to write S2.1 apps (and
> don't worry, the codebase loves a good thrashing).
>
> So, in the space of 5 working days, what can you produce that uses S2.1?
>
> On Monday I started writing a webapp that you can now play with at
> http://www.lifefeed.info/, so it's possible to write at least
> something in that amount of time :).
>
> So come on, show us what you can do!!!!
>
> Al.
>
> P.S. For those who are interested, in order to cut down on the coding
> time I used Hibernate, Sitemesh, and the S2.1 REST plugin. Feel like
> trying a better combination?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>


Attachment: user_187571.ezm (zipped)
OK, Problem solved (switched to using apache and tomcat).

Now, as I was saying... can you do better that http://www.lifefeed.info/ ?

Al.

Al Sutton wrote:
> OK, small hitch atm, Jetty in it's infinite wisdom is adding a
> jsessionid to all requests which is screwing over the REST plugin....
>
> arggghhhhh!!!!!!
>
>
>
> Al Sutton wrote:
>> Well, OK, S2.1 (but the title wouldn't sound so catchy).
>>
>> A push is being made for a high quality 2.1 GA release, and in order
>> to do this the codebase needs a jolly good thrashing in every way
>> imaginable, and the best way of doing this is to write S2.1 apps (and
>> don't worry, the codebase loves a good thrashing).
>>
>> So, in the space of 5 working days, what can you produce that uses S2.1?
>>
>> On Monday I started writing a webapp that you can now play with at
>> http://www.lifefeed.info/, so it's possible to write at least
>> something in that amount of time :).
>>
>> So come on, show us what you can do!!!!
>>
>> Al.
>>
>> P.S. For those who are interested, in order to cut down on the coding
>> time I used Hibernate, Sitemesh, and the S2.1 REST plugin. Feel like
>> trying a better combination?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>


Attachment: user_187572.ezm (zipped)
Just so you know that there is some kind of response to this; although
I can't show you what I'm working on because it's an intranet type
application for work, I am using version 2.1.2 and will file any bugs
I come across. Actually, I've already filed one and it's already
marked as fixed in 2.1.3. Good work, Struts developers!

Owen

On Fri, Jun 13, 2008 at 1:10 PM, Al Sutton <al.sutton@(protected):
> Well, OK, S2.1 (but the title wouldn't sound so catchy).
>
> A push is being made for a high quality 2.1 GA release, and in order to do
> this the codebase needs a jolly good thrashing in every way imaginable, and
> the best way of doing this is to write S2.1 apps (and don't worry, the
> codebase loves a good thrashing).
>
> So, in the space of 5 working days, what can you produce that uses S2.1?
>
> On Monday I started writing a webapp that you can now play with at
> http://www.lifefeed.info/, so it's possible to write at least something in
> that amount of time :).
>
> So come on, show us what you can do!!!!
>
> Al.
>
> P.S. For those who are interested, in order to cut down on the coding time I
> used Hibernate, Sitemesh, and the S2.1 REST plugin. Feel like trying a
> better combination?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment: user_187575.ezm (zipped)
I just hit the same problem, I think the REST plugin doesn't handle
that case very well.

musachy

On Fri, Jun 13, 2008 at 2:15 PM, Al Sutton <al.sutton@(protected):
> OK, Problem solved (switched to using apache and tomcat).
>
> Now, as I was saying... can you do better that http://www.lifefeed.info/ ?
>
> Al.
>
> Al Sutton wrote:
>>
>> OK, small hitch atm, Jetty in it's infinite wisdom is adding a jsessionid
>> to all requests which is screwing over the REST plugin....
>>
>> arggghhhhh!!!!!!
>>
>>
>>
>> Al Sutton wrote:
>>>
>>> Well, OK, S2.1 (but the title wouldn't sound so catchy).
>>>
>>> A push is being made for a high quality 2.1 GA release, and in order to
>>> do this the codebase needs a jolly good thrashing in every way imaginable,
>>> and the best way of doing this is to write S2.1 apps (and don't worry, the
>>> codebase loves a good thrashing).
>>>
>>> So, in the space of 5 working days, what can you produce that uses S2.1?
>>>
>>> On Monday I started writing a webapp that you can now play with at
>>> http://www.lifefeed.info/, so it's possible to write at least something in
>>> that amount of time :).
>>>
>>> So come on, show us what you can do!!!!
>>>
>>> Al.
>>>
>>> P.S. For those who are interested, in order to cut down on the coding
>>> time I used Hibernate, Sitemesh, and the S2.1 REST plugin. Feel like trying
>>> a better combination?
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail: user-help@(protected)
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>



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

Attachment: user_187583.ezm (zipped)
Is it a REST thing or a Jetty thing?

My view would be that as Jetty is adding the jsessionid Jetty should
also recognize it, strip it off, and not pass it to the underlying
webapp because it's part of the webapp magic of session to request mapping.

Al.

Musachy Barroso wrote:
> I just hit the same problem, I think the REST plugin doesn't handle
> that case very well.
>
> musachy
>
> On Fri, Jun 13, 2008 at 2:15 PM, Al Sutton <al.sutton@(protected):
>  
>> OK, Problem solved (switched to using apache and tomcat).
>>
>> Now, as I was saying... can you do better that http://www.lifefeed.info/ ?
>>
>> Al.
>>
>> Al Sutton wrote:
>>  
>>> OK, small hitch atm, Jetty in it's infinite wisdom is adding a jsessionid
>>> to all requests which is screwing over the REST plugin....
>>>
>>> arggghhhhh!!!!!!
>>>
>>>
>>>
>>> Al Sutton wrote:
>>>    
>>>> Well, OK, S2.1 (but the title wouldn't sound so catchy).
>>>>
>>>> A push is being made for a high quality 2.1 GA release, and in order to
>>>> do this the codebase needs a jolly good thrashing in every way imaginable,
>>>> and the best way of doing this is to write S2.1 apps (and don't worry, the
>>>> codebase loves a good thrashing).
>>>>
>>>> So, in the space of 5 working days, what can you produce that uses S2.1?
>>>>
>>>> On Monday I started writing a webapp that you can now play with at
>>>> http://www.lifefeed.info/, so it's possible to write at least something in
>>>> that amount of time :).
>>>>
>>>> So come on, show us what you can do!!!!
>>>>
>>>> Al.
>>>>
>>>> P.S. For those who are interested, in order to cut down on the coding
>>>> time I used Hibernate, Sitemesh, and the S2.1 REST plugin. Feel like trying
>>>> a better combination?
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>> For additional commands, e-mail: user-help@(protected)
>>>>
>>>>      
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail: user-help@(protected)
>>>
>>>    
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>  
>
>
>
>  


Attachment: user_187586.ezm (zipped)
I haven't looked into it yet, but I don't like how it uses a colon
(";jsessionid=xwy"), which might be valid, not sure. For the moment I
am using glassfish, which starts really quick:

https://maven-glassfish-plugin.dev.java.net/

musachy

On 6/14/08, Al Sutton <al.sutton@(protected):
> Is it a REST thing or a Jetty thing?
>
> My view would be that as Jetty is adding the jsessionid Jetty should also
> recognize it, strip it off, and not pass it to the underlying webapp because
> it's part of the webapp magic of session to request mapping.
>
> Al.
>
>
> Musachy Barroso wrote:
>
> > I just hit the same problem, I think the REST plugin doesn't handle
> > that case very well.
> >
> > musachy
> >
> > On Fri, Jun 13, 2008 at 2:15 PM, Al Sutton <al.sutton@(protected):
> >
> >
> > > OK, Problem solved (switched to using apache and tomcat).
> > >
> > > Now, as I was saying... can you do better that http://www.lifefeed.info/
> ?
> > >
> > > Al.
> > >
> > > Al Sutton wrote:
> > >
> > >
> > > > OK, small hitch atm, Jetty in it's infinite wisdom is adding a
> jsessionid
> > > > to all requests which is screwing over the REST plugin....
> > > >
> > > > arggghhhhh!!!!!!
> > > >
> > > >
> > > >
> > > > Al Sutton wrote:
> > > >
> > > >
> > > > > Well, OK, S2.1 (but the title wouldn't sound so catchy).
> > > > >
> > > > > A push is being made for a high quality 2.1 GA release, and in order
> to
> > > > > do this the codebase needs a jolly good thrashing in every way
> imaginable,
> > > > > and the best way of doing this is to write S2.1 apps (and don't
> worry, the
> > > > > codebase loves a good thrashing).
> > > > >
> > > > > So, in the space of 5 working days, what can you produce that uses
> S2.1?
> > > > >
> > > > > On Monday I started writing a webapp that you can now play with at
> > > > > http://www.lifefeed.info/, so it's possible to write at least
> something in
> > > > > that amount of time :).
> > > > >
> > > > > So come on, show us what you can do!!!!
> > > > >
> > > > > Al.
> > > > >
> > > > > P.S. For those who are interested, in order to cut down on the
> coding
> > > > > time I used Hibernate, Sitemesh, and the S2.1 REST plugin. Feel like
> trying
> > > > > a better combination?
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> user-unsubscribe@(protected)
> > > > > For additional commands, e-mail: user-help@(protected)
> > > > >
> > > > >
> > > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> user-unsubscribe@(protected)
> > > > For additional commands, e-mail: user-help@(protected)
> > > >
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> user-unsubscribe@(protected)
> > > For additional commands, e-mail: user-help@(protected)
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


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

Attachment: user_187587.ezm (zipped)
Musachy Barroso wrote:
> I haven't looked into it yet, but I don't like how it uses a colon
> (";jsessionid=xwy"), which might be valid, not sure. For the moment I
> am using glassfish, which starts really quick:
>
> https://maven-glassfish-plugin.dev.java.net/
>
> musachy
>  
I don't think use of a semicolon is too unusual (although I can't
comment on it's standards compliance)... I seem to remember Websphere
doing that as well (I could be wrong, I don't have an install here to
check, but that's what I remember seeing).

Frank

--
Frank W. Zammetti
Author of "Practical DWR 2 Projects"
and "Practical JavaScript, DOM Scripting and Ajax Projects"
and "Practical Ajax Projects With Java Technology"
for info: apress.com/book/search?searchterm=zammetti&act=search
Java Web Parts - javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!
My "look ma, I have a blog too!" blog: zammetti.com/blog


On 6/14/08, Al Sutton <al.sutton@(protected):
>> Is it a REST thing or a Jetty thing?
>>
>> My view would be that as Jetty is adding the jsessionid Jetty should also
>> recognize it, strip it off, and not pass it to the underlying webapp because
>> it's part of the webapp magic of session to request mapping.
>>
>> Al.
>>
>>
>> Musachy Barroso wrote:
>>
>>  
>>> I just hit the same problem, I think the REST plugin doesn't handle
>>> that case very well.
>>>
>>> musachy
>>>
>>> On Fri, Jun 13, 2008 at 2:15 PM, Al Sutton <al.sutton@(protected):
>>>
>>>
>>>    
>>>> OK, Problem solved (switched to using apache and tomcat).
>>>>
>>>> Now, as I was saying... can you do better that http://www.lifefeed.info/
>>>>      
>> ?
>>  
>>>> Al.
>>>>
>>>> Al Sutton wrote:
>>>>
>>>>
>>>>      
>>>>> OK, small hitch atm, Jetty in it's infinite wisdom is adding a
>>>>>      
>> jsessionid
>>  
>>>>> to all requests which is screwing over the REST plugin....
>>>>>
>>>>> arggghhhhh!!!!!!
>>>>>
>>>>>
>>>>>
>>>>> Al Sutton wrote:
>>>>>
>>>>>
>>>>>      
>>>>>> Well, OK, S2.1 (but the title wouldn't sound so catchy).
>>>>>>
>>>>>> A push is being made for a high quality 2.1 GA release, and in order
>>>>>>        
>> to
>>  
>>>>>> do this the codebase needs a jolly good thrashing in every way
>>>>>>        
>> imaginable,
>>  
>>>>>> and the best way of doing this is to write S2.1 apps (and don't
>>>>>>        
>> worry, the
>>  
>>>>>> codebase loves a good thrashing).
>>>>>>
>>>>>> So, in the space of 5 working days, what can you produce that uses
>>>>>>        
>> S2.1?
>>  
>>>>>> On Monday I started writing a webapp that you can now play with at
>>>>>> http://www.lifefeed.info/, so it's possible to write at least
>>>>>>        
>> something in
>>  
>>>>>> that amount of time :).
>>>>>>
>>>>>> So come on, show us what you can do!!!!
>>>>>>
>>>>>> Al.
>>>>>>
>>>>>> P.S. For those who are interested, in order to cut down on the
>>>>>>        
>> coding
>>  
>>>>>> time I used Hibernate, Sitemesh, and the S2.1 REST plugin. Feel like
>>>>>>        
>> trying
>>  
>>>>>> a better combination?
>>>>>>
>>>>>>
>>>>>>        
>> ---------------------------------------------------------------------
>>  
>>>>>> To unsubscribe, e-mail:
>>>>>>        
>> user-unsubscribe@(protected)
>>  
>>>>>> For additional commands, e-mail: user-help@(protected)
>>>>>>
>>>>>>
>>>>>>
>>>>>>        
>> ---------------------------------------------------------------------
>>  
>>>>> To unsubscribe, e-mail:
>>>>>      
>> user-unsubscribe@(protected)
>>  
>>>>> For additional commands, e-mail: user-help@(protected)
>>>>>
>>>>>
>>>>>
>>>>>      
>> ---------------------------------------------------------------------
>>  
>>>> To unsubscribe, e-mail:
>>>>      
>> user-unsubscribe@(protected)
>>  
>>>> For additional commands, e-mail: user-help@(protected)
>>>>
>>>>
>>>>
>>>>
>>>>      
>>>
>>>
>>>
>>>    
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>  
>
>
>  

Attachment: user_187589.ezm (zipped)
Not sure about WAS, but don't (at least) Tomcat and Resin do that (a) before it knows if cookies are enabled, and (b) if cookies aren't enabled?

I agree, though, I don't think it's that unusual.


--- On Sat, 6/14/08, Frank W. Zammetti <fzlists@(protected):

> From: Frank W. Zammetti <fzlists@(protected)>
> Subject: Re: What can you do with S2?
> To: "Struts Users Mailing List" <user@(protected)>
> Date: Saturday, June 14, 2008, 2:05 PM
> Musachy Barroso wrote:
> > I haven't looked into it yet, but I don't like
> how it uses a colon
> > (";jsessionid=xwy"), which might be valid,
> not sure. For the moment I
> > am using glassfish, which starts really quick:
> >
> > https://maven-glassfish-plugin.dev.java.net/
> >
> > musachy
> >  
> I don't think use of a semicolon is too unusual
> (although I can't
> comment on it's standards compliance)... I seem to
> remember Websphere
> doing that as well (I could be wrong, I don't have an
> install here to
> check, but that's what I remember seeing).
>
> Frank
>
> --
> Frank W. Zammetti
> Author of "Practical DWR 2 Projects"
>  and "Practical JavaScript, DOM Scripting and Ajax
> Projects"
>  and "Practical Ajax Projects With Java
> Technology"
>  for info:
> apress.com/book/search?searchterm=zammetti&act=search
> Java Web Parts - javawebparts.sourceforge.net
> Supplying the wheel, so you don't have to reinvent it!
> My "look ma, I have a blog too!" blog:
> zammetti.com/blog
>
>
> On 6/14/08, Al Sutton <al.sutton@(protected):
> >> Is it a REST thing or a Jetty thing?
> >>
> >> My view would be that as Jetty is adding the
> jsessionid Jetty should also
> >> recognize it, strip it off, and not pass it to the
> underlying webapp because
> >> it's part of the webapp magic of session to
> request mapping.
> >>
> >> Al.
> >>
> >>
> >> Musachy Barroso wrote:
> >>
> >>  
> >>> I just hit the same problem, I think the REST
> plugin doesn't handle
> >>> that case very well.
> >>>
> >>> musachy
> >>>
> >>> On Fri, Jun 13, 2008 at 2:15 PM, Al Sutton
> <al.sutton@(protected):
> >>>
> >>>
> >>>    
> >>>> OK, Problem solved (switched to using
> apache and tomcat).
> >>>>
> >>>> Now, as I was saying... can you do better
> that http://www.lifefeed.info/
> >>>>      
> >> ?
> >>  
> >>>> Al.
> >>>>
> >>>> Al Sutton wrote:
> >>>>
> >>>>
> >>>>      
> >>>>> OK, small hitch atm, Jetty in it's
> infinite wisdom is adding a
> >>>>>      
> >> jsessionid
> >>  
> >>>>> to all requests which is screwing over
> the REST plugin....
> >>>>>
> >>>>> arggghhhhh!!!!!!
> >>>>>
> >>>>>
> >>>>>
> >>>>> Al Sutton wrote:
> >>>>>
> >>>>>
> >>>>>      
> >>>>>> Well, OK, S2.1 (but the title
> wouldn't sound so catchy).
> >>>>>>
> >>>>>> A push is being made for a high
> quality 2.1 GA release, and in order
> >>>>>>        
> >> to
> >>  
> >>>>>> do this the codebase needs a jolly
> good thrashing in every way
> >>>>>>        
> >> imaginable,
> >>  
> >>>>>> and the best way of doing this is
> to write S2.1 apps (and don't
> >>>>>>        
> >> worry, the
> >>  
> >>>>>> codebase loves a good thrashing).
> >>>>>>
> >>>>>> So, in the space of 5 working
> days, what can you produce that uses
> >>>>>>        
> >> S2.1?
> >>  
> >>>>>> On Monday I started writing a
> webapp that you can now play with at
> >>>>>> http://www.lifefeed.info/, so
> it's possible to write at least
> >>>>>>        
> >> something in
> >>  
> >>>>>> that amount of time :).
> >>>>>>
> >>>>>> So come on, show us what you can
> do!!!!
> >>>>>>
> >>>>>> Al.
> >>>>>>
> >>>>>> P.S. For those who are interested,
> in order to cut down on the
> >>>>>>        
> >> coding
> >>  
> >>>>>> time I used Hibernate, Sitemesh,
> and the S2.1 REST plugin. Feel like
> >>>>>>        
> >> trying
> >>  
> >>>>>> a better combination?
> >>>>>>
> >>>>>>
> >>>>>>        
> >>
> ---------------------------------------------------------------------
> >>  
> >>>>>> To unsubscribe, e-mail:
> >>>>>>        
> >> user-unsubscribe@(protected)
> >>  
> >>>>>> For additional commands, e-mail:
> user-help@(protected)
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>        
> >>
> ---------------------------------------------------------------------
> >>  
> >>>>> To unsubscribe, e-mail:
> >>>>>      
> >> user-unsubscribe@(protected)
> >>  
> >>>>> For additional commands, e-mail:
> user-help@(protected)
> >>>>>
> >>>>>
> >>>>>
> >>>>>      
> >>
> ---------------------------------------------------------------------
> >>  
> >>>> To unsubscribe, e-mail:
> >>>>      
> >> user-unsubscribe@(protected)
> >>  
> >>>> For additional commands, e-mail:
> user-help@(protected)
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>      
> >>>
> >>>
> >>>
> >>>    
> >>
> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail:
> user-unsubscribe@(protected)
> >> For additional commands, e-mail:
> user-help@(protected)
> >>
> >>
> >>  
> >
> >
> >  
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail:
> user-help@(protected)

Attachment: user_187569.ezm (zipped)
Milan,

Please read the EntityManager JavaDoc at
http://java.sun.com/javaee/5/docs/api/javax/persistence/EntityManager.html
and http://www.oracle.com/technology/pub/articles/gupta-jpa.html You'll
see these explain why you can't simply put the object into a session and
keep using it.

You need to store the ID in the web page, refetch the object, then
update with the data posted from the form whilst ensuring your security
constraints are not violated.

Al.


Milan Milanovic wrote:
> Yes, EntityManager will be closed, but it always closes whenevery you do
> something (read/write) your object from database, isn't it ? When I read for
> example Fruit (id=1) from database, change it and try to save it will know
> with new EntityManager instance to save it because of id number ?
>
> --
> Thx, Milan
>
>
> Al Sutton wrote:
>  
>> If you're using a persistence framework (Hibernate, JPA, etc.) then No.
>>
>> During after the first request the EntityManager will be closed, so when
>> you access it during the second request updates will not be propagated
>> to the database.
>>
>> Al.
>>
>> Milan Milanovic wrote:
>>  
>>> But could I pass object through session object ?
>>>
>>>
>>> newton.dave wrote:
>>>  
>>>    
>>>> --- On Fri, 6/13/08, Milan Milanovic <milanmilanovich@(protected):
>>>>  
>>>>      
>>>>> Yes that's what I want. The first action search in database and show
>>>>> the
>>>>> list of Fruits. Then user click on one and that concrete Fruit object
>>>>> is
>>>>> passed to other action for editing.
>>>>>    
>>>>>      
>>>> All you can pass in an HTTP request is a string.
>>>>
>>>> You can *use* that string to create or retrieve an object.
>>>>
>>>> Dave
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>> For additional commands, e-mail: user-help@(protected)
>>>>
>>>>
>>>>
>>>>  
>>>>      
>>>  
>>>    
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>>  
>
>  


Attachment: user_187573.ezm (zipped)


Thanks for you help Dave, that was exactly what I needed and all is working!
--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_187574.ezm (zipped)
Glad to hear it :)


--- On Fri, 6/13/08, Page <jpage@(protected):

> From: Page <jpage@(protected)>
> Subject: Re: adding a header in a struts 2 interceptor
> To: user@(protected)
> Date: Friday, June 13, 2008, 4:09 PM
> Thanks for you help Dave, that was exactly what I needed and
> all is working!
> --
> View this message in context:
> http://www.nabble.com/adding-a-header-in-a-struts-2-interceptor-tp17808069p17831109.html
> Sent from the Struts - User mailing list archive at
> Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail:
> user-help@(protected)

Attachment: user_187576.ezm (zipped)

Hi Dave,

 I had a new problem. the date specified in that control is not retrieved
in the action. so it is null. How can I retrieve that date value in action?

Ramesh K


Ramesh K wrote:
>
> Hi Everyone,
>  
>   I faced a tedious problem in manipuluating s:datetimepicker in my
> page. It hasn't focus set and events are not fired.
>
>  Anyone help me to give the solution.
>
>
> Regards,
>
> Ramesh K
>

--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_187577.ezm (zipped)
I'm starting to do some simple experiments with Struts2 (those who know
me would wonder what took me so long :) ). I have one blocking problem,
but I would more appreciate hints on how to diagnose particular kinds of
problems, as opposed to just giving me the answer.

In this case I'm getting the infamous "No result defined for action
<Action> and result input". The problem is I'm pretty sure I HAVE an
input result in my action.

My struts.xml is very simple:
-----------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts
Configuration 2.0//EN" "struts-2.0.dtd" >
<struts>
  <constant name="struts.devMode" value="true" />
  <package extends="struts-default" name="main" namespace="/main">
    <action name="Form" class="com.wamu.strutsform.FormAction">
       <result name="input">/form.jsp</result>
       <result name="success">/form.jsp</result>
    </action>
  </package>
</struts>
-------------------

So, for instance, what pieces of information could I look at that could
give me hints on what I'm doing wrong here?

Attachment: user_187578.ezm (zipped)
Check the HTML form that is submitted to the server. Understanding
namespaces is a bit tricky in the beginning. Also check the "slashes"
configuration attribute as part of the mapping name.

On Fri, Jun 13, 2008 at 10:08 PM, Karr, David <david.karr@(protected):

> I'm starting to do some simple experiments with Struts2 (those who know
> me would wonder what took me so long :) ). I have one blocking problem,
> but I would more appreciate hints on how to diagnose particular kinds of
> problems, as opposed to just giving me the answer.
>
> In this case I'm getting the infamous "No result defined for action
> <Action> and result input". The problem is I'm pretty sure I HAVE an
> input result in my action.
>
> My struts.xml is very simple:
> -----------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts
> Configuration 2.0//EN" "struts-2.0.dtd" >
> <struts>
>   <constant name="struts.devMode" value="true" />
>   <package extends="struts-default" name="main" namespace="/main">
>     <action name="Form" class="com.wamu.strutsform.FormAction">
>        <result name="input">/form.jsp</result>
>        <result name="success">/form.jsp</result>
>     </action>
>   </package>
> </struts>
> -------------------
>
> So, for instance, what pieces of information could I look at that could
> give me hints on what I'm doing wrong here?
>



--
Alberto
http://www.linkedin.com/in/aflores

Attachment: user_187579.ezm (zipped)
In addition to Alberto's answer when I'm using XML config I'll pop into the config-browser for a simple sanity check.

Dave


--- On Fri, 6/13/08, Karr, David <david.karr@(protected):

> From: Karr, David <david.karr@(protected)>
> Subject: Looking for some more troubleshooting resources
> To: "Struts Users Mailing List" <user@(protected)>
> Date: Friday, June 13, 2008, 10:08 PM
> I'm starting to do some simple experiments with Struts2
> (those who know
> me would wonder what took me so long :) ). I have one
> blocking problem,
> but I would more appreciate hints on how to diagnose
> particular kinds of
> problems, as opposed to just giving me the answer.
>
> In this case I'm getting the infamous "No result
> defined for action
> <Action> and result input". The problem is
> I'm pretty sure I HAVE an
> input result in my action.
>
> My struts.xml is very simple:
> -----------------------
> <?xml version="1.0"
> encoding="UTF-8"?>
> <!DOCTYPE struts PUBLIC "-//Apache Software
> Foundation//DTD Struts
> Configuration 2.0//EN" "struts-2.0.dtd" >
> <struts>
>   <constant name="struts.devMode"
> value="true" />
>   <package extends="struts-default"
> name="main" namespace="/main">
>      <action name="Form"
> class="com.wamu.strutsform.FormAction">
>         <result
> name="input">/form.jsp</result>
>         <result
> name="success">/form.jsp</result>
>      </action>
>   </package>
> </struts>
> -------------------
>
> So, for instance, what pieces of information could I look
> at that could
> give me hints on what I'm doing wrong here?

Attachment: user_187584.ezm (zipped)
Can you post the HTML for your page.

Ta,

Al.

Karr, David wrote:
> I'm starting to do some simple experiments with Struts2 (those who know
> me would wonder what took me so long :) ). I have one blocking problem,
> but I would more appreciate hints on how to diagnose particular kinds of
> problems, as opposed to just giving me the answer.
>
> In this case I'm getting the infamous "No result defined for action
> <Action> and result input". The problem is I'm pretty sure I HAVE an
> input result in my action.
>
> My struts.xml is very simple:
> -----------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts
> Configuration 2.0//EN" "struts-2.0.dtd" >
> <struts>
>   <constant name="struts.devMode" value="true" />
>   <package extends="struts-default" name="main" namespace="/main">
>      <action name="Form" class="com.wamu.strutsform.FormAction">
>         <result name="input">/form.jsp</result>
>         <result name="success">/form.jsp</result>
>      </action>
>   </package>
> </struts>
> -------------------
>
> So, for instance, what pieces of information could I look at that could
> give me hints on what I'm doing wrong here?
>
>  


Attachment: user_187580.ezm (zipped)
David.W.Larson@(protected):
> I have a JSP that uses an ActionTag <s:action> to call a Struts 2 action
> class directly from the JSP. But in the action class, the HTTP response
> has already been committed. This makes it impossible for me to set cookies
> from my action class.
>
> I tested this by calling HttpServletResponse.isCommitted() is my execute()
> method of my action class, and it returns true.
>
> Is this a bug? Why is the response committed if the JSP hasn't finished
> rendering?
>  

Struts2 ActionInvocations are not designed to be nested, but the
s:action tag attempts to do this. It works most of the time, but not all
Results can be executed within another page, and not pages can handle
changes to the ActionContext by the nest invocation. The Action tag is
quite dodgy for this reason but there is currently no better alternative
in S2.

The problem is your case is with the Result that was executed. I
presume it has executed a ServletRedirectResult which assumes it can
commit the response (and does). TilesResult also has the same problem.
Try a different Result type.


Attachment: user_187582.ezm (zipped)
Hi Jeromy, thanks for the respose.

The response is already committed in the action class (before the Result is
executed). In the execute() method, the result of 'response.isCommitted()'
is true. So I think the response is committed even before getting to the
Result.

According to J2EE documentation, when using
RequestDispatcher.include(rquest, response), you can't set headers in the
response, which means you can't set cookies. That's the problem I'm having
- I can't set a cookie in the action class called via s:action. So perhaps
that's what s:action does, it does an include.


David





                                                 
        Jeromy Evans                                
        <jeromy.evans@(protected)                              
        eskyminds.com.au>                            To
                         Struts Users Mailing List      
        06/13/2008 10:04       <user@(protected)>        
        PM                                      cc
                                                 
                                            Subject
        Please respond to      Re: Response already committed when
         "Struts Users       using ActionTag              
         Mailing List"                              
        <user@(protected)                              
           he.org>                                
                                                 
                                                 
                                                 




David.W.Larson@(protected):
> I have a JSP that uses an ActionTag <s:action> to call a Struts 2 action
> class directly from the JSP. But in the action class, the HTTP response
> has already been committed. This makes it impossible for me to set
cookies
> from my action class.
>
> I tested this by calling HttpServletResponse.isCommitted() is my
execute()
> method of my action class, and it returns true.
>
> Is this a bug? Why is the response committed if the JSP hasn't finished
> rendering?
>

Struts2 ActionInvocations are not designed to be nested, but the
s:action tag attempts to do this. It works most of the time, but not all
Results can be executed within another page, and not pages can handle
changes to the ActionContext by the nest invocation. The Action tag is
quite dodgy for this reason but there is currently no better alternative
in S2.

The problem is your case is with the Result that was executed. I
presume it has executed a ServletRedirectResult which assumes it can
commit the response (and does). TilesResult also has the same problem.
Try a different Result type.


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





---------------------------------------------------------------------
This message, together with any attachments, is
intended only for the use of the individual or entity
to which it is addressed. It may contain information
that is confidential and prohibited from disclosure.
If you are not the intended recipient, you are hereby
notified that any dissemination or copying of this
message or any attachment is strictly prohibited. If
you have received this message in error, please notify
the original sender immediately by telephone or by
return e-mail and delete this message, along with any
attachments, from your computer. Thank you.

---------------------------------------------------------------------

Attachment: user_187590.ezm (zipped)
David.W.Larson@(protected):
> Hi Jeromy, thanks for the respose.
>
> The response is already committed in the action class (before the Result is
> executed). In the execute() method, the result of 'response.isCommitted()'
> is true. So I think the response is committed even before getting to the
> Result.
>
> According to J2EE documentation, when using
> RequestDispatcher.include(rquest, response), you can't set headers in the
> response, which means you can't set cookies. That's the problem I'm having
> - I can't set a cookie in the action class called via s:action. So perhaps
> that's what s:action does, it does an include.
>
>
> David
>  
Okay, that makes sense. I didn't think it did an include though as that
was this tag's main distinction from the include tag (in that it invokes
an action directly). But as you're already within a result (rendering
JSP) perhaps the parent result has already prevented you from setting
the headers?




Attachment: user_187591.ezm (zipped)
My impression was that ActionComponent executed the action via an action proxy (although I'm looking at trunk).

But the <s:action...> tag is in a JSP page that will have already been writing, at which point I don't think you'd be able to modify the headers (I've never used response.reset, I don't know if that would help or not).

Dave

--- On Sat, 6/14/08, Jeromy Evans <jeromy.evans@(protected):

> From: Jeromy Evans <jeromy.evans@(protected)>
> Subject: Re: Response already committed when using ActionTag
> To: "Struts Users Mailing List" <user@(protected)>
> Date: Saturday, June 14, 2008, 10:01 PM
> David.W.Larson@(protected):
> > Hi Jeromy, thanks for the respose.
> >
> > The response is already committed in the action class
> (before the Result is
> > executed). In the execute() method, the result of
> 'response.isCommitted()'
> > is true. So I think the response is committed even
> before getting to the
> > Result.
> >
> > According to J2EE documentation, when using
> > RequestDispatcher.include(rquest, response), you
> can't set headers in the
> > response, which means you can't set cookies.
> That's the problem I'm having
> > - I can't set a cookie in the action class called
> via s:action. So perhaps
> > that's what s:action does, it does an include.
> >
> >
> > David
> >  
> Okay, that makes sense. I didn't think it did an
> include though as that
> was this tag's main distinction from the include tag
> (in that it invokes
> an action directly). But as you're already within a
> result (rendering
> JSP) perhaps the parent result has already prevented you
> from setting
> the headers?
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail:
> user-help@(protected)

Attachment: user_187581.ezm (zipped)

Hi,
I have defined datepicker in my JSP as
<s:datetimepicker name="pharmacy.pharmacyDrugLicenceDate" label="Format
(yyyy-MM-dd)" displayFormat="yyyy-MM-dd"/>

But when the page is launched only the label is getting displayed. The
button for the picker is not displayed. Could you anyone please help me out
on this?
Thanks
I have given below the generated scripts for the date picker
-------------
<div id="wwgrp_savePharmacy_pharmacy_pharmacyDrugLicenceDate" class="wwgrp">  
 <div      id="wwlbl_savePharmacy_pharmacy_pharmacyDrugLicenceDate"
class="wwlbl">
<label valign="middle" for="savePharmacy_pharmacy_pharmacyDrugLicenceDate"
class="desc">        Format (yyyy-MM-dd)
</label>     </div>

<div id="wwctrl_savePharmacy_pharmacy_pharmacyDrugLicenceDate"
class="wwctrl">
<script type="text/javascript">
  dojo.require("dojo.widget.DatePicker");
</script>
<div
  dojoType="dropdowndatepicker"  
id="savePharmacy_pharmacy_pharmacyDrugLicenceDate"  
name="dojo.pharmacy.pharmacyDrugLicenceDate"  
inputName="pharmacy.pharmacyDrugLicenceDate"   displayFormat="yyyy-MM-dd"
saveFormat="rfc"></div></div> </li>

--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_187588.ezm (zipped)
Do you have Dojo debugging turned on in your <s:head...> tag? Are there any error messages shown? Is your S2 filter mapped so that S2 can serve its copy of Dojo?

Dave

--- On Sat, 6/14/08, StrutsUser <ajaykumar.r@(protected):

> From: StrutsUser <ajaykumar.r@(protected)>
> Subject: DatePicker Button not generated
> To: user@(protected)
> Date: Saturday, June 14, 2008, 2:09 AM
> Hi,
> I have defined datepicker in my JSP as
> <s:datetimepicker
> name="pharmacy.pharmacyDrugLicenceDate"
> label="Format
> (yyyy-MM-dd)"
> displayFormat="yyyy-MM-dd"/>
>
> But when the page is launched only the label is getting
> displayed. The
> button for the picker is not displayed. Could you anyone
> please help me out
> on this?
> Thanks
> I have given below the generated scripts for the date
> picker
> -------------
> <div
> id="wwgrp_savePharmacy_pharmacy_pharmacyDrugLicenceDate"
> class="wwgrp">  
>   <div    
> id="wwlbl_savePharmacy_pharmacy_pharmacyDrugLicenceDate"
> class="wwlbl">
> <label valign="middle"
> for="savePharmacy_pharmacy_pharmacyDrugLicenceDate"
> class="desc">        Format (yyyy-MM-dd)
> </label>     </div>
>
> <div
> id="wwctrl_savePharmacy_pharmacy_pharmacyDrugLicenceDate"
> class="wwctrl">
> <script type="text/javascript">
>   dojo.require("dojo.widget.DatePicker");
> </script>
> <div
>    dojoType="dropdowndatepicker"  
> id="savePharmacy_pharmacy_pharmacyDrugLicenceDate"
>  
> name="dojo.pharmacy.pharmacyDrugLicenceDate"  
> inputName="pharmacy.pharmacyDrugLicenceDate"  
> displayFormat="yyyy-MM-dd"
> saveFormat="rfc"></div></div>
> </li>
>
> --
> View this message in context:
> http://www.nabble.com/DatePicker-Button-not-generated-tp17836292p17836292.html
> Sent from the Struts - User mailing list archive at
> Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail:
> user-help@(protected)

Attachment: user_187585.ezm (zipped)
hi all,
i have a struts application that i am trying to 'rewrite' using
annotiations..
I am doing it little by little, so i still have a struts-config.xml file

i have annotated the following two actions like this@

@Results({
  @Result(name="success", value="/WEB-INF/freemarker/login.ftl",
type=FreemarkerResult.class)
})

public class Index extends ActionSupport {

  private static final long serialVersionUID = 1L;
  private static Logger log = Logger.getLogger(Index.class);

  public String execute() {
    log.debug("----- in index action..");

    return SUCCESS;
  }
}

@Results({
  @Result(name="input", value="/WEB-INF/freemarker/login.ftl",
type=FreemarkerResult.class),
  @Result(name="success", value="/WEB-INF/freemarker/hello/hello.ftl",
type=FreemarkerResult.class)
})
public class Login extends ActionSupport
            implements SessionAware {


i have also setup a filter in web.xml


<filter>
      <filter-name>struts2</filter-name>

<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
      <init-param>
       <param-name>actionPackages</param-name>

<param-value>com.mm.budgetweb.action.admin,com.mm.budgetweb.action,com.mm.budgetweb.ajax,com.mm.budgetweb.tasks</param-value>
      </init-param>
  </filter>

this was the original struts-config.xml for the two classes

<action name="login" class="com.mm.budgetweb.action.admin.Login">
    <result name="input"
type="freemarker">/WEB-INF/freemarker/login.ftl</result>
    <result name="success"
type="freemarker">/WEB-INF/freemarker/hello/hello.ftl</result>

  </action>

  <action name="index" class="com.mm.budgetweb.action.admin.Index">
    <result name="success"
type="freemarker">/WEB-INF/freemarker/login.ftl</result>
  </action>


they were associated with no package........ the iNdex action and
LoginAction were invoked with following URL

http://localhost:port/BudgetWeb/

for some reasons, i am getting an exception in my selenium tests...
when i deployed app and checked problems i got this excepiton in the
background

There is no Action mapped for namespace / and action name index. - [unknown
location]
    at
com.opensymphony.xwork2.DefaultActionProxy.prepare (DefaultActionProxy.java:186)
    at
org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy (StrutsActionProxyFactory.java:41)
    at
org.apache.struts2.dispatcher.Dispatcher.serviceAction (Dispatcher.java:494)
    at
org.apache.struts2.dispatcher.FilterDispatcher.doFilter (FilterDispatcher.java:419)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:202)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:173)
    at
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage (PageFilter.java:119)
    at
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter (PageFilter.java:55)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:202)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:173)
    at
org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter (ActionContextCleanUp.java:99)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:202)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:173)
    at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter (ReplyHeaderFilter.java:96)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:202)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:173)
    at
org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:213)
    at
org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:178)
    at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke (SecurityAssociationValve.java:175)
    at
org.jboss.web.tomcat.security.JaccContextValve.invoke (JaccContextValve.java:74)
    at
org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:126)
    at
org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105)
    at
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
    at
org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:107)
    at
org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:148)
    at
org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:869)
    at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (PoolTcpEndpoint.java:527)
    at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run (MasterSlaveWorkerThread.java:112)
    at java.lang.Thread.run (Thread.java:595)

anyone could tell me what i am doing wrong?

thanks and regards
marco

Attachment: user_187592.ezm (zipped)
Is there a simple syntax with <s:iterator> or <s:generator> for displaying a
sequence of integers from 0 to N-1 ?
(The value of N is not known at compile time.)

At the moment, the only way I can think of doing this is not very appealing:
Within the action, create an ArrayList and populate it with the sequence of
integers. Then iterate over that list with <s:iterator>.

Is there an easier way? Something that would not involve the action?

Attachment: user_187593.ezm (zipped)
I usually just use <c:forEach...> which has clean support for for/next type iteration. <s:iterator...> doesn't currently implement similar usage, AFAIK.

Dave

--- On Sat, 6/14/08, Pierre Thibaudeau <pierre.thibaudeau@(protected):

> From: Pierre Thibaudeau <pierre.thibaudeau@(protected)>
> Subject: [S2] using <s:iterator> for a sequence of integers
> To: "Struts Users Mailing List" <user@(protected)>
> Date: Saturday, June 14, 2008, 10:26 PM
> Is there a simple syntax with <s:iterator> or
> <s:generator> for displaying a
> sequence of integers from 0 to N-1 ?
> (The value of N is not known at compile time.)
>
> At the moment, the only way I can think of doing this is
> not very appealing:
> Within the action, create an ArrayList and populate it with
> the sequence of
> integers. Then iterate over that list with
> <s:iterator>.
>
> Is there an easier way? Something that would not involve
> the action?

Attachment: user_187594.ezm (zipped)
Good point. Thank you!

2008/6/14 Dave Newton <newton.dave@(protected)>:

> I usually just use <c:forEach...> which has clean support for for/next type
> iteration. <s:iterator...> doesn't currently implement similar usage, AFAIK.
>

Attachment: user_187595.ezm (zipped)
Hi .. i m going to build a struts based application but i dont want to use JSP's&nbsp; instead of JSP's i want to use Swing GUI .. how can i communicate Swing GUI with struts app and how i will get the response back .. e.g. search results ........

waiting for reply ....

©2008 gg3721.com - Jax Systems, LLC, U.S.A.