Source to struts2 tutorial editPerson.action ?

2007-06-07 Thread String Larson


Does anyone have access to the source for this:

http://www.planetstruts.org/struts2-showcase/person/editPerson.action

or any other example of editing a collection of objects.

The view sources link is busted.


Thanks.




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



Re: Source to struts2 tutorial editPerson.action ?

2007-06-07 Thread String Larson


On Jun 7, 2007, at 8:49 PM, Dave Newton wrote:


--- String Larson <[EMAIL PROTECTED]> wrote:

Does anyone have access to the source for this:


http://www.planetstruts.org/struts2-showcase/person/editPerson.action

You could either download the source or browse the
source repository.

http://svn.apache.org/viewvc/struts/struts2/tags/STRUTS_2_0_8/apps/ 
showcase/src/main/java/org/apache/struts2/showcase/person/ 
EditPersonAction.java?view=markup


So to answer the question, yes, we all do!


Thanks... yeah, I'm a mensa.
d'oh

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



FileUploadInterceptor not intercepting

2007-02-27 Thread String Larson


I'm trying to get file upload working (struts 2.0.5).
It seems that FilterDispatcher.prepareAndWrapRequest is not creating  
the MultiPartRequestWrapper as required by FileUploadInterceptor.


prepareAndWrapRequest is just skipping the wrapping.

Is this a configuration issue ?

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



Re: moving on to Hibernate with S2...

2007-05-11 Thread String Larson

That's what we're using as well.
Plus using EJB3/Annotations (over Hibernate3) for persistence.
Works well. No show stoppers thus far.

If don't expect your web app to be too complex, I'd recommend a hard  
look at Ruby on Rails.
The whole S2, Spring, Hibernate thing is very powerful. However, it  
is getting too

bulky w/configuration and dependencies for less complex projects.


On May 11, 2007, at 4:29 PM, Josh Vickery wrote:


Spring has several components, but the one I use (and the one I think
is the most popular) is the Inversion of Control (IOC) framework.
Struts 2 (when it was Web Work) had some IOC support, but it wasn't as
full featured as what Spring offers.

Spring also has an MVC, which is a direct competitor to Struts 2.  I
personally don't like Spring MVC, and would much rather use Struts 2.

Josh

On 5/11/07, Rick Schumeyer <[EMAIL PROTECTED]> wrote:
Let me ask you a question that I've never really received a good  
answer
to.  Keep in mind that my knowledge of Java web programming is  
some S1,

and just starting with S2.  I have never really looked at Spring.

I understand that S2 and Spring somehow work together.  What I don't
understand is: why would I want to use both of them?  If Spring is so
great, why don't I just buy a copy of Spring in Action and forget  
about

S2?

I guess I'm looking for answer to: what problem does Spring solve  
that

S2 does not?  And vice-versa.

Musachy Barroso wrote:
> Have you tried using Spring?. It plays nicely with Struts and  
hibernate,

> plus there are some examples around I think.
>
> musachy
>
> On 5/11/07, Rick Schumeyer <[EMAIL PROTECTED]> wrote:
>>
>> Now I'm trying to configure Hibernate with S2, which many  
others have
>> done.  I was trying to follow the example in WebWork in Action,  
but

>> things have obviously changed since then.
>>
>> To be clear, the problem is to create a SessionFactory once in  
such a
>> way that all my actions can easily have access to it.  The  
approach in
>> WWiA uses IoC.  As far as I know, it would work in S2 but would  
need
>> many modifications because package names have changed.  And  
perhaps

>> other mods would be needed?
>>
>> I'm not sure if the best approach is:
>>
>> a) Use the strategy in WWiA, but change the import statements  
to match

>> the current jars (and perhaps make other changes to match S2)
>>
>> or
>>
>> b) Something else.
>>
>> Perhaps someone could point me to a complete solution?
>>
>>  
-

>> 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]