Re: Latest version release notes and install documentation

2010-09-12 Thread phillips1021

Go here:

http://struts.apache.org/2.2.1/docs/create-struts-2-web-application-with-artifacts-in-web-inf-lib-and-use-ant-to-build-the-application.html

to see a list of Jar files needed on the class path to run a Struts 2.2.1
application.

Bruce



Dave Evans-12 wrote:
 
 On Thu, Sep 9, 2010 at 12:58 PM, Dave Newton davelnew...@gmail.com
 wrote:
 
 Thanks for the reply. Do you (or anyone else) know what set of jars is
 the minimum requirement to use Struts? I'm only using the framework,
 no plugins, no tags.
 
 I doubt maven is really necessary for my purposes. I already have my
 own skeletal application starter, I just need to copy the minimal
 collection of jars into the lib directory. If maven can do that, I
 guess that would be helpful. Probably the fact that I don't know maven
 figures into my reluctance.
 
 Dave
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Latest-version-release-notes-and-install-documentation-tp29670716p29689992.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Array Input Fields

2010-09-12 Thread adam pinder

 

OP :-

 

I thought when the input field name contained [] that struts effectively 
replaced them with () - so in my input field

 

user[0].name

 

for example, would become getUser(0).setName(...) etc..

 

I checked the list object contains elements and it does (i retrieve them before 
the update page is displayed and stored in the session - the get/set of the 
list object accesses the session to retrieve the object), i also included a 
system out in the getUser(int occ) method and it never gets called so its not 
because the getUser(0) returns null or the list is null.

 

i've had this before and i took the params off the request myself in the action 
and updated the list - just thought i'd try and get to the bottom of it this 
time.

 

i think it must be down to the input names i'm using or the methods i need to 
have available to the params interceptor to call.

 

adam


 
 Date: Sat, 11 Sep 2010 19:52:48 -0400
 Subject: Re: Array Input Fields
 From: davelnew...@gmail.com
 To: user@struts.apache.org
 
 Depends. The OP wasn't using index notation (parens instead of
 brackets) so there'd need to be a getUsers.
 
 On Saturday, September 11, 2010, Chris Mawata
 chris_mawata_str...@mathcove.net wrote:
   On 9/10/2010 1:08 PM, adam pinder wrote:
 
  public User getUser(int occ)
 
 
  Should the getter not return the collection rather than a single User?
  Chris
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
  

Re: Array Input Fields

2010-09-12 Thread Dave Newton
Look at the type conversion docs: there's a difference between using
[] and () in the JSP names.

On Sunday, September 12, 2010, adam pinder apin...@hotmail.co.uk wrote:



 OP :-



 I thought when the input field name contained [] that struts effectively 
 replaced them with () - so in my input field



 user[0].name



 for example, would become getUser(0).setName(...) etc..



 I checked the list object contains elements and it does (i retrieve them 
 before the update page is displayed and stored in the session - the get/set 
 of the list object accesses the session to retrieve the object), i also 
 included a system out in the getUser(int occ) method and it never gets called 
 so its not because the getUser(0) returns null or the list is null.



 i've had this before and i took the params off the request myself in the 
 action and updated the list - just thought i'd try and get to the bottom of 
 it this time.



 i think it must be down to the input names i'm using or the methods i need to 
 have available to the params interceptor to call.



 adam



 Date: Sat, 11 Sep 2010 19:52:48 -0400
 Subject: Re: Array Input Fields
 From: davelnew...@gmail.com
 To: user@struts.apache.org

 Depends. The OP wasn't using index notation (parens instead of
 brackets) so there'd need to be a getUsers.

 On Saturday, September 11, 2010, Chris Mawata
 chris_mawata_str...@mathcove.net wrote:
   On 9/10/2010 1:08 PM, adam pinder wrote:
 
  public User getUser(int occ)
 
 
  Should the getter not return the collection rather than a single User?
  Chris
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org