Struts 2.1.6 Test Examples

2009-05-13 Thread Doug Pham
Hi All,
 In the main page one of the bullet point is:
Easy-to-test Actions - Test Struts2 Actions directly, without resorting to mock 
HTTP objects.

I would love to see a few examples of these.

Cheers,
Doug



  

Re: Any hint of JQuery on struts2 tutorial, thanks!

2009-04-29 Thread Doug Pham
Wes,
 When will the book be ready?  About a year ago, I tried the basic S2, 
Spring  Hibernate and I have the hardest of time to do things as the 
connection keep getting closed before I could update things.  Hopefully, your 
book will help me understand why that was.  I have been using S2, Hibernate  
Sitemesh which is doing OK for me.  Hopefully, you have some unit testing setup 
and strategy as that is my main weakness.

Cheers,
Doug

--- On Tue, 4/28/09, Wes Wannemacher w...@wantii.com wrote:
From: Wes Wannemacher w...@wantii.com
Subject: Re: Any hint of JQuery on struts2 tutorial, thanks!
To: Struts Users Mailing List user@struts.apache.org
Date: Tuesday, April 28, 2009, 9:05 AM

On Tue, Apr 28, 2009 at 9:52 AM, Martin Gainty mgai...@hotmail.com
wrote:

 Struts2 in Practice book from manning

 http://www.manning.com/wannemacher

 feel free to Ping wes or myself offline for any
questions/comments/tutorials

 Thanks,
 Martin Gainty


Checking in! Did I hear my name?

Yeah, I have quite a bit of JQuery coverage, but it's a moving target.
It is likely that we'll have a fair amount of JQuery integration
within Struts by the time the book is published (coincidence?) If you
join the MEAP program and read it as I go, there is at least one
chapter already with a decent JQuery + Spring + JPA example.

-Wes

-- 
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

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




  

Unit Testing Struts 2 Action

2009-01-17 Thread Doug Pham
Hi All,
    I am putting together Struts 2, Hibernate  Sitemesh.  Where can I find 
information on how to unit test my new application actions?

Thanks,
Doug



  

Using Struts2 Template

2008-06-22 Thread Doug Pham
Hi All,
 Do I have to include anything special to use the Freemarker templates?

Thanks,
Doug



  

Re: Using Struts2 Template

2008-06-22 Thread Doug Pham
Dave,
 Do you have to add anything to the web.xml file or what libraries to 
include.  If I am using Sitemesh, anything different I have to do?

Doug Pham

--- On Sun, 6/22/08, Dave Newton [EMAIL PROTECTED] wrote:
From: Dave Newton [EMAIL PROTECTED]
Subject: Re: Using Struts2 Template
To: Struts Users Mailing List user@struts.apache.org
Date: Sunday, June 22, 2008, 7:29 AM

--- On Sun, 6/22/08, Doug Pham [EMAIL PROTECTED] wrote:
 Do I have to include anything special to use the Freemarker templates?

The FreeMarker templates? Do you mean FreeMarker results? If so,
no. If not, not sure what you mean.

Dave


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


  

Validation

2008-06-22 Thread Doug Pham
I have an action that have multiple methods that I mapped to.  Only one action 
that I need validation for, the rest I don't need.  Where can I get information 
to set this up or how do I set it up using the XML file?

Thanks,
Doug



  

Latest Quickstart Sitemesh

2008-03-13 Thread Doug Pham
Hi All,
 I took the current quickstart application and added sitemesh to the 
pom.xml and added all the necessary files for sitemesh, the dojo that listed 
the Persons broke.  The decorator works but the ajax failed with Error loading 
'/quickstart/list.action' (200 OK)  Is there any special settings I need to do 
to fix this problem?

Thanks,
Doug

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Quickstart Example

2008-03-11 Thread Doug Pham
Hi All,
 I am experimenting with the quickstart application from the struts 2 
tutorial links (http://cwiki.apache.org/WW/struts-2-spring-2-jpa-ajax.html).  I 
have updated the struts version to 2.0.11.1 and spring to 2.5.2.  Everything 
works great but when I added sitemesh to the pom, I got an error and jetty does 
not start

pom.xml
.
dependency
groupIdorg.apache.struts/groupId
artifactIdstruts2-sitemesh-plugin/artifactId
version2.0.11.1/version
/dependency
.

Error:
[INFO] Jetty server exiting.
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Failure

Embedded error: Cannot construct Factory : 
com.opensymphony.module.sitemesh.factory.DefaultFactory: 
java.lang.reflect.InvocationTargetException
[INFO] 
[INFO] Traceorg.apache.maven.lifecycle.LifecycleExecutionException: Failure
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
.
.

Thanks,
Doug


   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

Re: Quickstart Example

2008-03-11 Thread Doug Pham
I jumped the gun too quick on this one.  I did get it to work, but it prevent 
the ajax portion to work.  At least I know it works, I'll investigate on the 
struts ajax issue separately.

Thank You,
Doug

Doug Pham [EMAIL PROTECTED] wrote: Hi All,
 I am experimenting with the quickstart application from the struts 2 
tutorial links (http://cwiki.apache.org/WW/struts-2-spring-2-jpa-ajax.html).  I 
have updated the struts version to 2.0.11.1 and spring to 2.5.2.  Everything 
works great but when I added sitemesh to the pom, I got an error and jetty does 
not start

pom.xml
.

org.apache.struts
struts2-sitemesh-plugin
2.0.11.1

.

Error:
[INFO] Jetty server exiting.
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Failure

Embedded error: Cannot construct Factory : 
com.opensymphony.module.sitemesh.factory.DefaultFactory: 
java.lang.reflect.InvocationTargetException
[INFO] 
[INFO] Traceorg.apache.maven.lifecycle.LifecycleExecutionException: Failure
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
.
.

Thanks,
Doug


   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.