RE: [S2] Getting DAO from Spring in Struts Action

2007-06-14 Thread Wesslan
Maybe http://struts.apache.org/2.x/docs/spring-plugin.html can be of some
help.

Cheers,
Peter 

-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: den 14 juni 2007 13:59
To: Struts Users Mailing List
Subject: Re: [S2] Getting DAO from Spring in Struts Action

--- M. Bitner [EMAIL PROTECTED] wrote:
 [...] Spring is picking up the beans defined in applicationContext and 
 instantiating them. How do I get them into my actions to use them for 
 data
access?

Two main ways:

1) Wire them up by hand (define your actions as beans in a Spring context
file, wire everything by hand)

2) Use by-name auto-wiring, tell S2 to use Spring as its object factory,
and provide getters/setters in your action with the same name as the bean.

d.



 


Bored stiff? Loosen up... 
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [ANN] Starting with Struts2 Book

2007-05-29 Thread Wesslan
Yes, we don't to have to tell them to read Webwork in Action anymore... :) 

-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED] 
Sent: den 29 maj 2007 20:01
To: Struts Users Mailing List
Subject: Re: [ANN] Starting with Struts2 Book

Good job! Finally a book to recommend to new users :)

musachy

On 5/29/07, James Mitchell [EMAIL PROTECTED] wrote:

 Ian,  Nice job!  I don't need the paper copy, but I'd like you to get 
 the full price of the book.  Do you have a Paypal account that I could 
 donate some funds to?


 --
 James Mitchell



 On May 29, 2007, at 12:13 PM, Henri Yandell wrote:

  The registration system at InfoQ is pretty slow; so I downloaded 
  directly from lulu.com.
 
  Great work Ian, I hope it becomes the 'Thinking in Struts2' and is a 
  big success.
 
  Hen
 
  On 5/25/07, Ted Husted [EMAIL PROTECTED] wrote:
  Is anyone else having trouble logging into the InfoQ site?
 
  On 5/24/07, Ian Roughley [EMAIL PROTECTED] wrote:
   I am pleased to announce the release of the mini-book Starting
  with
   Struts2 from InfoQ.com.
  
   Starting with Struts2 is aimed at those who are new to Strut2,
  and
   those familiar with MVC frameworks but unfamiliar with Struts2.  
   It provides everything you need to know to get up and running 
   using Struts2, and can be used as a starting point to explore the
more
   intricate features of the Struts2 framework.   Topics include
   architecture and configuration, how to implementing actions, and 
   supporting infrastructure such as validation and
  internationalization.
   Also included are productivity tips, providing a practical
  introduction
   on how best to use the framework.
  
   The eBook can be found at http://www.infoq.com/minibooks/
  starting-struts2
  
   /Ian
 
  ---
  -- To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  
  - To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




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

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts 2 with jetty

2007-03-04 Thread Wesslan
I use Jetty as web container to deploy my Struts2 projects (Struts 2.0.3)
and I also use the Maven-Jetty-plugin without any problems. I don't recall
any special configuration to get it running.
What's the error message and your version of Struts2?

Cheers,
Peter

-Original Message-
From: alex xander [mailto:[EMAIL PROTECTED] 
Sent: den 5 mars 2007 02:47
To: user@struts.apache.org
Subject: Struts 2 with jetty

does anyone use jetty as web server with struts 2.
i'm using struts 2 with tomcat 5.x and it's work.
but when i try it with jetty, it doesn't work.
it seems the struts 2 doesn't start
is there any configuration with jetty 6.x.
this is my first time using jetty.
thx

 
-
Now that's room service! Choose from over 150,000 hotels in 45,000
destinations on Yahoo! Travel to find your fit.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [S2] doubt working with dates in brazilian format (dd/MM/yyyy)

2007-02-24 Thread Wesslan
 I really like -MM-DD because that's the way we always write dates in
Sweden... :)

-Original Message-
From: Stefan [mailto:[EMAIL PROTECTED] 
Sent: den 24 februari 2007 22:40
To: Struts Users Mailing List
Subject: Re: [S2] doubt working with dates in brazilian format (dd/MM/)

Daniel Amadei schrieb:
 Hi All,

 I'm working with dates but I'm not able to convert dates to be 
 displayed automatically using the brazilian format (e. g. dd/MM/).
 Also I'd like to know how to validate my dates using this format and 
 not the standard.

 If somebody could point me to the docs where I can find some info 
 about those 2 items it would be great!

 BTW: I`m not using the datetimepicker.

 Thanks,
 Daniel

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


Hi Daniel,

not exactly what you asked. Just as an idea/opinion about international date
formats:
http://www.w3.org/QA/Tips/iso-date

Regards
Stefan

-- 

Stefan Riegel
TELIG GmbH



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts 2 Reference notes, guides/tutorial and justification

2007-01-22 Thread Wesslan
Struts 2 isn't an updated version of Struts 1, it's an updated version of
Webwork 2.2. They're so similar that all you need to do to switch from
Webwork 2.2 to Struts 2(.0.0) is rename some packages and property-files.
What I mean to say is that it's, correct me if I'm wrong, nearly impossible
to tell what has changed from Struts 1 to Struts 2 because they have
different code bases.

Ian Roughley has written a tutorial on InfoQ Migrating Struts Apps to
Struts 2 that maybe can be useful for you.
http://www.infoq.com/articles/converting-struts-2-part1
http://www.infoq.com/articles/migrating-struts-2-part2
http://www.infoq.com/articles/migrating-struts-2-part3

Hth,
Peter


-Original Message-
From: Don Don [mailto:[EMAIL PROTECTED] 
Sent: den 22 januari 2007 11:18
To: user@struts.apache.org
Subject: Struts 2 Reference notes, guides/tutorial and justification 

Hi all, 
   
  It seems there's been a major change form struts 1.2.x to struts 2x and
the way it will be utilized or implemented by struts developers when
building web applications.  From what I can gather from developers using the
snapshot or pre GA versions, there is a complete change from the action
implementations to the struts tags etc as well as the support for popular
techs like AJAX etc.  Is there any resource out there that identifies these
heavy changes made either in the form of a reference guide, tutorial or book
?  All materials I've seen still concentrate on struts 1.2.x. 
   
  I've had a look at the release notes for struts 2 on the Apache website,
although it does mention the changes made and the once being made...but I
don't think they address the issues regarding the changes properly, an
example of each change, how it would have been done in previous versions and
the reasons for the change will have made the release notes/documents a good
reference point for people who are willing to move to struts 2.
   
  I am being face with making a decision on whether my developers switch to
struts 2 or carry on with struts 1.2.x and without a proper documentation
and justification of struts 2 I will find that very difficult to propose.
   
  What are your thoughts ?
   
  Regards.

 
-
Access over 1 million songs - Yahoo! Music Unlimited.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [s2] Struts Dependency Injection and EJB3 - support ? or how can i Do it?

2007-01-22 Thread Wesslan
I've never used it either but I know from other peoples experience that it
works great for EJB 2.1.
I don't know how good it supports Ejb 3 though but you can always ask at 
http://forum.springframework.org/forumdisplay.php?f=29.

Cheers,
Peter

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joe
Germuska
Sent: den 22 januari 2007 15:47
To: Struts Users Mailing List
Subject: Re: [s2] Struts Dependency Injection and EJB3 - support ? or how
can i Do it?

While I have not used it, the Spring Framework provides strategies for
defining Spring Beans which are EJB factories (or something like that.)
Struts 2 works quite nicely using Spring as the Action Factory, which can
take care of resolving all Action dependencies whether or not they are EJBs.

See
http://cwiki.apache.org/S2PLUGINS/spring-plugin.html
for more on using Spring as your object factory

and this Spring documentation on EJBs:
http://www.springframework.org/docs/reference/ejb.html

Hope that helps.

Joe


On 1/22/07, Paris Apostolopoulos [EMAIL PROTECTED] wrote:

 Hi again.

 Ian thank you for your reply.

 If I understood well, please pardon me...if it is wrong the following 
 you said

 1) implement your custom ejb3 annotations into struts ok I wonder the 
 @EJB annotations are not going to work (I guess). I had a look @ some 
 glassfish FAQ..

 2)Then implement Struts interceptors that are going to do the JNDI 
 lookup?right?

 I have to admit I am bit confused


 My first attempt was to implement the classical ServiceLocator Pattern 
 and stick it with delegates, though the pattern does not fit well with 
 EJB3.

 Any hint from the Struts team ..is there any intention to implement 
 that kind of support to Struts (Struts 2+ EJB3) integration? Or do you 
 know any other extention project that is targeting this way..maybe we 
 could contribute.

 At the moment this kind of problem does not make me fee confortable, I 
 am a great Struts supporter(picked Struts as the web framework for our 
 new j2ee web app) and its a pitty EJB3.0 is targeted towards either 
 plain servlets or JSF for Dependency Injection etc etc.

 Any more hints if possible would be much appreciated!

 Thanks




 Stas Ostapenko wrote:
  Hi !
 
  Ian, can you provide some kind of example source code to play with ?
  I'm interesting in Struts 2 and EJB 3 interoperability, but I can't 
  figure out how to get started. Thanks !
 
 
  On 1/22/07, Ian Roughley [EMAIL PROTECTED] wrote:
  Currently there is no EJB3 support in Struts, however I have done 
  this on a couple of projects.  I used a custom annotation to mark 
  action setters as ejb3 then a custom interceptor that looks for the
 annotation,
  looks up the ejb3 and injects it into the action.  Doing it this 
  way is less than a days work.
 
  Another option would be to replace the ObjectFactory (the class 
  that does the dependency injection) with a a custom implementation 
  that does
  EJB3 dependency injection.
 
  /Ian
 
  --
  From Down  Around, Inc.
  Innovative IT Solutions
  Software Architecture * Design * Development 
  ~
  web:  www.fdar.com
  email [EMAIL PROTECTED]
  phone:617.821.5430
  ~
 
 
 
  papo wrote:
   Hello
  
   I am trying to find a way of calling efficienlty from Struts 
   Actions
   - SLSBs EJB3. I have made a question before.
  
   - Doing JNDI calls all the time through every action works though 
   its a very primitive way of doing it.
   -Tried to implement the Service locator pattern though the 
   semantics on EJB3 are different (how to cache Intefaces, which 
   interfaces)
  
   I know tha EJB3 on the web layer Serlvets/ JSF supports 
   Dependency Injection for EJB3.
  
  
   Will Struts 2.0 support such a feature if NOT can anyone point me 
   the mechanics so to (try) doing it on my own.
  
   I am bit stuck for days at this very point of efficiently 
   glue-ing Struts and my EJB3 Business layer
  
   Any hint would be much appreciated!
  
  
  
  
   -
    To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
  ---
  -- To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  
  - To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
Joe Germuska
[EMAIL PROTECTED] * http://blog.germuska.com

The truth is that we learned from João forever to be out of tune.
-- Caetano Veloso


RE: [S2] How to separate Action from FormBean

2007-01-08 Thread Wesslan
To answer that part: not that I know of, but the existing WebWork in Action
from Manning is very good, and applies equally well to Struts 2 with minor
adjustments for package renaming etc.

Maybe it's time to create a web forum for Struts 2 and make a sticky thread
that says Read Webwork in Action - it's a really good book for Struts 2!.
:)

Jokes aside, a web forum(like the one that Webwork has) would be great. Any
plans for that?

Cheers,
Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [S2] - access to the action from a JSP page

2006-12-20 Thread Wesslan
You can access all your actions public getters (and setters) from your JSP
with something like s:property value=nameOfGetterWithoutPrefixGet/.

Action:
Public String getPetName() {
   return Dinky;
}

JSP:
s:property value=petName/

Or did I misunderstand you?

Hth,
Peter

-Original Message-
From: Dariusz Wojtas [mailto:[EMAIL PROTECTED] 
Sent: den 20 december 2006 22:29
To: Struts Users Mailing List
Subject: [S2] - access to the action from a JSP page

Hi,

Can somebody help me and give an example how to access the 'parent'
action from a JSP page?

Lets say I have MyTestAction which redirects to 'page.jsp'.
How do I get access to the action (it's properties?)

%
  MyTestAction act = ...   ?
%

Darek

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: STRUTS 2 . Populating values in Action

2006-12-06 Thread Wesslan
I thought that was just what Andrew did? :)
If I'm not mistaken, Struts2 showcase has some examples of conversion.

Hth,
Peter 

-Original Message-
From: Juan Espinosa [mailto:[EMAIL PROTECTED] 
Sent: den 6 december 2006 14:57
To: 'Struts Users Mailing List'
Subject: RE: STRUTS 2 . Populating values in Action

Yes i see this but its hard to understandmaybe if you know something
that i can read...

Hel!!!
 

-Mensaje original-
De: Andrew Stepanenko [mailto:[EMAIL PROTECTED]
Enviado el: Miércoles, 06 de Diciembre de 2006 09:38 a.m.
Para: Struts Users Mailing List
Asunto: Re: STRUTS 2 . Populating values in Action

Hello,

have you looked at Type Conversion mechanism:
http://cwiki.apache.org/WW/type-conversion.html ?

Regards,
Andrew Stepanenko,
http://unf.tane.edu.ua

On 12/6/06, Juan Espinosa [EMAIL PROTECTED] wrote:
 Hi to all, i have a cuestion about populatin values in an action. I 
 have an action that implements the interface ModelDriven. The object 
 CUSTOMER has some string properties and a collection of users

 class MyAction implements ModelDriven{

 Customer customer = null

 public Object getModel(){
 return new Customer();
 }

 }

 And a form with some text boxes

 s:textbox name=age/
 s:textbox name=address/
 s:textbox name=users(0).userName/
 s:textbox name=users(0).password/

 The problem that im having is that i want to populate a user in the 
 collection of users, like the framework populates the value string i 
 want also populate in the collection a object of type User with the 
 values userName and password in it

 Anyone knows how to populate this kinds of values.

 Regards,

 Juan

 --
 No virus found in this outgoing message.
 Checked by AVG Free Edition.
 Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 
 05/12/2006
 04:07 p.m.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006
04:07 p.m.
 

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006
04:07 p.m.
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: STRUTS 2 . Populating values in Action

2006-12-06 Thread Wesslan
Webwork in action have a 20-page chapter on Type conversion. 

-Original Message-
From: Andrew Stepanenko [mailto:[EMAIL PROTECTED] 
Sent: den 6 december 2006 14:13
To: Struts Users Mailing List
Subject: Re: STRUTS 2 . Populating values in Action

Hello,

there is also a lot of posts on Type Conversion subject in the WebWork
forum:
http://forums.opensymphony.com/forum.jspa?forumID=1
AFAIK, type conversion belongs to XWork which WebWork and Struts2 use, so
you may find the answer in WW forum too.

Regards,
Andrew

On 12/6/06, Juan Espinosa [EMAIL PROTECTED] wrote:
 Yes i see this but its hard to understandmaybe if you know 
 something that i can read...

 Hel!!!


 -Mensaje original-
 De: Andrew Stepanenko [mailto:[EMAIL PROTECTED]
 Enviado el: Miércoles, 06 de Diciembre de 2006 09:38 a.m.
 Para: Struts Users Mailing List
 Asunto: Re: STRUTS 2 . Populating values in Action

 Hello,

 have you looked at Type Conversion mechanism:
 http://cwiki.apache.org/WW/type-conversion.html ?

 Regards,
 Andrew Stepanenko,
 http://unf.tane.edu.ua

 On 12/6/06, Juan Espinosa [EMAIL PROTECTED] wrote:
  Hi to all, i have a cuestion about populatin values in an action. I 
  have an action that implements the interface ModelDriven. The object 
  CUSTOMER has some string properties and a collection of users
 
  class MyAction implements ModelDriven{
 
  Customer customer = null
 
  public Object getModel(){
  return new Customer();
  }
 
  }
 
  And a form with some text boxes
 
  s:textbox name=age/
  s:textbox name=address/
  s:textbox name=users(0).userName/ s:textbox 
  name=users(0).password/
 
  The problem that im having is that i want to populate a user in the 
  collection of users, like the framework populates the value string i 
  want also populate in the collection a object of type User with the 
  values userName and password in it
 
  Anyone knows how to populate this kinds of values.
 
  Regards,
 
  Juan
 
  --
  No virus found in this outgoing message.
  Checked by AVG Free Edition.
  Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date:
  05/12/2006
  04:07 p.m.
 
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 --
 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 
 05/12/2006
 04:07 p.m.


 --
 No virus found in this outgoing message.
 Checked by AVG Free Edition.
 Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 
 05/12/2006
 04:07 p.m.



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: how to learn Struts 2

2006-12-04 Thread Wesslan
This list has numerous posts with this question so search the archives.

Webwork in action is a good resource because Struts 2 pretty much is
Webwork(with a bunch of new features).

Hth,
Peter

-Original Message-
From: Nuwan Chandrasoma [mailto:[EMAIL PROTECTED] 
Sent: den 5 december 2006 11:22
To: Struts Users Mailing List
Subject: Re: how to learn Struts 2

http://struts.apache.org/2.x/docs/home.html

go through the tutorials and other sections.


- Original Message -
From: red phoenix [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Tuesday, December 05, 2006 1:13 AM
Subject: how to learn Struts 2


I am a newer of Struts 2,I find my application of Struts1 are can't run
 under Struts 2.I want to know Struts 2,but I don't know how to learn
 Struts2,would you give me some advice or material to learn?
 
 Thanks


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Parameters not being set on Action in Struts 2

2006-11-25 Thread Wesslan
See the following thread:
http://www.nabble.com/-S2--Duty-now-for-the-future--%28was-Re%3A-Question-ab
out-struts2%29-tf2559552.html#a7132875

Struts2 also depends on a beta(snapshot) release of XWork2.

Hth,
Peter

-Original Message-
From: Tarek Nabil [mailto:[EMAIL PROTECTED] 
Sent: den 26 november 2006 06:41
To: Struts Users Mailing List
Subject: RE: Parameters not being set on Action in Struts 2

Thanks Ted.

I renamed my method to execute and changed the URL to remove the !setup
part.

I also changed the struts.xml file accordingly, so now it's like that (note
that I removed the input result, just in case it's causing any problems).


action
name=dod1
class=packagename.ActionClassName
result name=page/jsp/billCreation/PageName.jsp/result
/action

I was pretty sure that the correct method was being executed, because I had
some logging statements inside. One of those statements is the one that
attempts to log the parameter Map and it's still giving the same result; an
empty Map.

I know you guys are doing a great effort trying to get this framework out,
but if I have a project starting in one month and delivering four months
later, would you recommend Struts 2 for that?

Please note that means that most development will be done using a
pre-release version, so do you think this version is stable enough to be
used by a team of 30 to 40 people where delays could cause a great damage?

And, although I know this question is very difficult to answer for OS
projects, do you think this framework will be ready for prime time in 5
months? The application is a heavy transactional one and is required to
scale for thousands of transactions per day.

Your advice is greatly appreciated.


-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]
Sent: Saturday, November 25, 2006 5:25 PM
To: Struts Users Mailing List
Subject: Re: Parameters not being set on Action in Struts 2

First, simplify the problem. Right now, the code seems to be calling an
alternative method, setup. What happens if you try the same thing with the
default execute method?

If your application is based on the blank application, it may turned the !
syntax off, since it can conflict with using wildcards. To use the Check the
struts.properties file for the line struts.enable.DynamicMethodInvocation,
and set it to true.

We're working on some new code for Struts 2 that will extend the !
syntax so that it can happily coexist with wildcards.

-Ted.

On 11/23/06, Tarek Nabil [EMAIL PROTECTED] wrote:
 Hi,

 I'm experimenting with Struts 2, and I'm facing a problem with request 
 parameters being populated on the Action. I checked out the source to 
 make sure that the behavior I expect is the correct one, and judging
by
 the source, it is, but it's not happening.


 I have an action that has a method

 public void setType(Integer type) {
 // some code
 }

 I declared the action in Struts.xml as follows

 action
 name=dod1
 method=setup
 class=somePackageName.someClassName
 result name=page/jsp/someFolder/someJSP.jsp/result
 result name=input type=chaindod1!setup/result
 /action

 In the setup method, I put the following line

 logger.debug(getContext().getParameters());

 In the URL, I call the following

 http://server/application/namespace/dod1!setup.action?type=1

 The result is that the parameters map is logged as {} and in my method 
 when I attempt to access the type field, I find it to be null!

 Could someone please point me to what could be wrong?

 Thanks,
 Tarek Nabil
DISCLAIMER**
**
This email and any files transmitted with it are confidential and contain
privileged or copyright information. If you are not the intended recipient
you must not copy, distribute or use this email or the information contained
in it for any purpose other than to notify us of the receipt thereof.
If you have received this message in error, please notify the sender
immediately, and delete this email from your system.

Please note that e-mails are susceptible to change.The sender shall not be
liable for the improper or incomplete transmission of the information
contained in this communication,nor for any delay in its receipt or damage
to your system.The sender does not guarantee that this material is free from
viruses or any other defects although due care has been taken to minimise
the risk.

**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts 2.0 Application Lifecycle

2006-11-04 Thread Wesslan
A REALLY simple architecture overview picture:
http://cwiki.apache.org/WW/home.html
A more detailed architecture overview:
http://cwiki.apache.org/WW/architecture.html

Hth,
Peter

-Original Message-
From: Mike Duffy [mailto:[EMAIL PROTECTED] 
Sent: den 4 november 2006 18:04
To: user@struts.apache.org
Subject: Struts 2.0 Application Lifecycle

I've done a quick scan of the Struts 2.0 documentation.  I did not find a
reference to the Struts 2.0 application life cycle.

Does anyone know of a reference that would be similar to the JSF article at
the link below?

http://www-128.ibm.com/developerworks/java/library/j-jsf2/

Thx.

Mike


 


Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates
(http://voice.yahoo.com)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [S2] Duty now for the future? (was Re: Question about struts2)

2006-11-02 Thread Wesslan
We are using quite the same setup as Mark and have had no problems at all.
I've also been a member of the Webwork forums for quite some time and I
don't recall anyone having problems using Spring 2 instead of Spring 1.

Cheers,
Peter

-Original Message-
From: Mark Menard [mailto:[EMAIL PROTECTED] 
Sent: den 2 november 2006 14:59
To: Struts Users Mailing List
Subject: Re: [S2] Duty now for the future? (was Re: Question about struts2)

On 11/2/06 8:50 AM, Bruno Melloni [EMAIL PROTECTED] wrote:

 I can't wait to start using Struts 2.0.  The only thing holding me 
 back is Struts 2.0 default use of Spring 1.x instead of the current
Spring
 2.0.   I know it is supposed to work with Spring 2.0 just fine, but
 call me paranoid... I'll probably wait until Struts 2.0 uses Spring 
 2.0 by default.  I suspect many others are waiting for the same event.

I would get over the paranoia and just get on with it. At least set up a
test bed and play with it. I'm using Spring 2, JPA, Spring's new xml
configuration, and likely other things I'm forgetting and all is fine.

Mark

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts Assistant in IDEA 6

2006-11-01 Thread Wesslan
 I wonder how long it would take them if I opened a ticket complaining that
it doesn't support  Struts 2... :)

Exactly my thought too... :)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts 2 and Webwork

2006-10-30 Thread Wesslan
To convert from Webwork 2.2 to Struts 2 is really about changing some
package names and filenames. That's how equal they are. 

Cheer,
Peter

-Original Message-
From: Li [mailto:[EMAIL PROTECTED] 
Sent: den 31 oktober 2006 03:10
To: Struts Users Mailing List
Subject: Re: Struts 2 and Webwork

Thanks a lot for your anwser Ted.

On 10/31/06, Ted Husted [EMAIL PROTECTED] wrote:

 On 10/30/06, Li [EMAIL PROTECTED] wrote:
  As we known, struts 2 is struts 1 + webwork 2 which seems bigger 
  than
 either
  of those two frameworks.

 No, that's not quite right. There are a few compatibility classes, but 
 Struts 2 is essentially WebWork 2. It's just that WW2 was already like 
 an improved Struts 1.


  * What will be the development direction of struts2, will it covers 
  all
 the
  function of webwork in future releases?

 We're continuing where WebWork 2.2 leaves off.


  * How many components or packages is very struts but not webwork or 
  webwork-like?

 There's a Struts 1 plugin, and some new features, but everything else 
 came straight from WebWork, meaing it's proven, battle-tested code.


  * Will struts 2 gradually replace webwork, which means webwork will 
  gradually stop development ?

 The best place to ask that might be the WebWork user forum.


 
  Looking forward to have your anwser ...
 

 -Ted.

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
When we invent time, we invent death.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts2 Basic Questions

2006-10-27 Thread Wesslan
The switch from Webwork 2.2 to Struts 2 is almost painless. Have a look at
http://cwiki.apache.org/confluence/display/WW/Migration+Guide (seems to down
for the moment) or http://forums.opensymphony.com/thread.jspa?threadID=44773
for the steps involved.
I know/guess you haven't an application that uses Webwork yet but the guide
above shows how similiar WW 2.2 and Struts 2 are.

Hth,
Peter

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ted
Husted
Sent: den 27 oktober 2006 14:57
To: Struts Users Mailing List
Subject: Re: Struts2 Basic Questions

Yes.

The exact changes between WW2 and S2 are detailed in the Struts 2.0.0
release notes.

-T.

On 10/27/06, Jim Reynolds [EMAIL PROTECTED] wrote:
 So basically not to beat a dead horse ...if I learn WebWork2 and get 
 through the WebWork in Action then I should easily be able to pick up 
 on Struts2 without much issue?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Unable to Download Struts2

2006-10-25 Thread Wesslan
Same here. 

-Original Message-
From: Matthew J. Vincent [mailto:[EMAIL PROTECTED] 
Sent: den 24 oktober 2006 20:45
To: user@struts.apache.org
Subject: Unable to Download Struts2

Hi all,

I get a connection timeout everytime I try to download:

http://people.apache.org/builds/struts/2.0.1/struts-2.0.1-all.zip

Anyone else getting this?

Thanks!

Matt



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts2 Showcase Example and Eclipse

2006-10-18 Thread Wesslan
Try http://maven.apache.org/.
http://maven.apache.org/download.html#installation for installation
instructions.

Hth,
Peter

-Original Message-
From: Jim Reynolds [mailto:[EMAIL PROTECTED] 
Sent: den 18 oktober 2006 19:49
To: Struts Users Mailing List
Subject: Re: Struts2 Showcase Example and Eclipse

Don,
Where do I run the mvn command from? From the exploded code in Tomcat?
Or from the download? Sorry, a bit lost here.

Thanks,

On 10/18/06, Don Brown [EMAIL PROTECTED] wrote:
 Simply type, from the command line, mvn eclipse:eclipse and Maven
 will generate all the Eclipse-related project files.  Add the
 '-Dwtpversion=1.0' flag to also generate Web Tools Project files.

 For running the thing, I've had good experiences using the Jetty Maven
 2 plugin.  See our Bootstrap tutorial -
 http://cwiki.apache.org/confluence/display/WW/Bootstrap

 I also found this useful:

http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven+Jetty+Plugin
+inside+Eclipse

 Don

 On 10/18/06, Jim Reynolds [EMAIL PROTECTED] wrote:
  I have downloaded and deployed the showcase examples for Struts2 as a
  learning tool. I have been going through the code file by file, and
  was wondering if there was a better way to handle this. I have Eclipse
  IDE and was wondering if the project could be imported into Eclipse,
  so I can walk the classes easier. I am new with Eclipse and also
  Struts2. So I am looking for advice on how I could configure this and
  also be able to make changes and see the changes within the web app.
 
  Make sense? Thanks,
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts2 Showcase Example and Eclipse

2006-10-18 Thread Wesslan
Maybe I should add that the excellent Maven has support for creating
project-files for IDEA IntelliJ also.

Cheers,
Peter

-Original Message-
From: Wesslan [mailto:[EMAIL PROTECTED] 
Sent: den 18 oktober 2006 20:02
To: 'Struts Users Mailing List'
Subject: RE: Struts2 Showcase Example and Eclipse

Try http://maven.apache.org/.
http://maven.apache.org/download.html#installation for installation
instructions.

Hth,
Peter

-Original Message-
From: Jim Reynolds [mailto:[EMAIL PROTECTED] 
Sent: den 18 oktober 2006 19:49
To: Struts Users Mailing List
Subject: Re: Struts2 Showcase Example and Eclipse

Don,
Where do I run the mvn command from? From the exploded code in Tomcat?
Or from the download? Sorry, a bit lost here.

Thanks,

On 10/18/06, Don Brown [EMAIL PROTECTED] wrote:
 Simply type, from the command line, mvn eclipse:eclipse and Maven
 will generate all the Eclipse-related project files.  Add the
 '-Dwtpversion=1.0' flag to also generate Web Tools Project files.

 For running the thing, I've had good experiences using the Jetty Maven
 2 plugin.  See our Bootstrap tutorial -
 http://cwiki.apache.org/confluence/display/WW/Bootstrap

 I also found this useful:

http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven+Jetty+Plugin
+inside+Eclipse

 Don

 On 10/18/06, Jim Reynolds [EMAIL PROTECTED] wrote:
  I have downloaded and deployed the showcase examples for Struts2 as a
  learning tool. I have been going through the code file by file, and
  was wondering if there was a better way to handle this. I have Eclipse
  IDE and was wondering if the project could be imported into Eclipse,
  so I can walk the classes easier. I am new with Eclipse and also
  Struts2. So I am looking for advice on how I could configure this and
  also be able to make changes and see the changes within the web app.
 
  Make sense? Thanks,
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Java mail

2006-10-14 Thread Wesslan
This would be a great place to start:
http://java.sun.com/products/javamail/downloads/index.html

You also maybe want to take a look at Commons Email because it REALLY
simplifies the task of sending email with Java!
Commons Email: http://jakarta.apache.org/commons/email/

Hth,
Peter


-Original Message-
From: Raghuveer [mailto:[EMAIL PROTECTED] 
Sent: den 14 oktober 2006 16:17
To: 'Dongyi Liu'; 'Struts Users Mailing List'
Subject: RE: Java mail

From where can i download this.

I am using jdk1.4,servlets 2.3, struts1.2.8

-Original Message-
From: Dongyi Liu [mailto:[EMAIL PROTECTED]
Sent: Saturday, October 14, 2006 7:43 PM
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: RE: Java mail


You may need the mail.jar (java mail api) and activation.jar (java
activation framework).

-Original Message-
From: Raghuveer [mailto:[EMAIL PROTECTED] 
Sent: 14 October 2006 14:26
To: user@struts.apache.org
Subject: Java mail

 What jar file i need to use for implementing mailing for my struts
application.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [Struts2] Canonical application-based, role-based authentication.

2006-10-11 Thread Wesslan
I don't know the answer to your question but Acegi *is* a Spring subproject
and will be renamed Spring security. So now you only use ONE new
technology... :)

-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: den 11 oktober 2006 17:50
To: Struts Users Mailing List
Subject: [Struts2] Canonical application-based, role-based authentication.

What *is* the canonical way to do app- and role-based authentication
like I used to with a custom RequestProcessor in Struts1?

The way I have it now is via an action param with a csv list of roles
and an interceptor that expects all actions to implement a getter for
that parameter.
 
I know there's the Acegi route, but I'm already getting yelled at
because they found out Struts2 uses Spring and I was only allowed to use
one new technology :/ 

I think Acegi might make them cut out their own spleens, but if it's the
best option then I'll hand 'em the knife myself.

TIA,
Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: setup file

2006-10-10 Thread Wesslan
Or try Maven, http://maven.apache.org/.

Hth,
Peter

-Original Message-
From: RAJESH THIHARIE [mailto:[EMAIL PROTECTED] 
Sent: den 11 oktober 2006 07:25
To: Struts Users Mailing List
Subject: RE: setup file

Use Ant. http://ant.apache.org is where you should head.

-Original Message-
From: Medicherla Lakshmi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 11 October 2006 3:17 PM
To: user@struts.apache.org
Subject: setup file


Hi All,
   
  Can anyone plz tel me how to create a setup file for a java web
application?
  It needs to deploy everything the war and database scripts also.
   
  Thanks in Advance.
   
  Thanks and Regards,
  Lakshmi MSV.


-
 Find out what India is talking about on  - Yahoo! Answers India 
 Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get
it NOW
NOTICE
The information in this email and or any of the attachments may contain;
a. Confidential information of Cuscal Limited ('Cuscal') or third parties;
and or
b. Legally privileged information of Cuscal or third parties; and or
c. Copyright material of Cuscal or third parties.
If you are not an authorised recipient of this email, please contact Cuscal
immediately by return email or by telephone on 61-2-8299 9000 and delete the
email from your system.
We do not accept any liability in connection with any computer virus, data
corruption, interruption or any damage generally as a result of transmission
of this email.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Is there a Maven2-repo for Struts2-snapshots?

2006-10-09 Thread Wesslan
I hoped to avoid buliding from source but that turned out to be a breeze. :)
Thanks Wend!

Cheers,
Peter

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: den 8 oktober 2006 03:30
To: Struts Users Mailing List
Subject: Re: Is there a Maven2-repo for Struts2-snapshots?

On 10/6/06, Wesslan [EMAIL PROTECTED] wrote:

 Well, the subject says it all, doesn't it? :-)

 I've recently switched from Webwork to Struts2 and I like to use the
nightly
 builds with Maven2. Is there a repository for this?

The snapshot repository is here:
http://people.apache.org/repo/m2-snapshot-repository/

I thought Continuum was publishing snapshots, but apparently not.  If
you're already using Maven for your own project, building Struts 2
from source shouldn't be too difficult.  (If it is, let us know. :) )

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Is there a Maven2-repo for Struts2-snapshots?

2006-10-07 Thread Wesslan
Well, the subject says it all, doesn't it? :-)

 

I've recently switched from Webwork to Struts2 and I like to use the nightly
builds with Maven2. Is there a repository for this?

 

Cheers,

Peter