[ANN] Practical Apache Struts2 Web 2.0 Projects

View: New views
17 Messages — Rating Filter:   Alert me  

[ANN] Practical Apache Struts2 Web 2.0 Projects

by Ian Roughley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm pleased to announce the release of my newest book, "Practical Apache
Struts2 Web 2.0 project".  And, no, I didn't pick the name :-)

Where "Starting Struts2" was high level and provided pointers for
further exploration, this book dives deep into the framework providing a
practical guide and lots of code examples for developing web application
using Struts2.  For those that are new to the framework, there is
information on getting started, the request/response life cycle, and
architecture and configuration (XML and zero configuration/annotation).  
And for those that are familiar with Struts2, more advanced topics such
as security (yes, container, custom and Acegi are all provided with
example code), workflows/wizards, RESTful web services, and Ajax are
covered.

For more information, the Apress web site is
http://www.apress.com/book/view/9781590599037.  I also believe it will
be available through most major bookstores.

/Ian

--
Ian Roughley
From Down & Around, Inc.
Consulting * Training / Mentoring * Agile Process * Open Source
web: http://www.fdar.com - email: ian@...


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

by Frank W. Zammetti :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Congratulations Ian!  I know how it feels to finally finish such an
undertaking and see the end result.  Kudos!

I'm sure it's a fantastic book too (wink-wink).

Frank

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: fzammetti@...
Author of "Practical Ajax Projects With Java Technology"
 (2006, Apress, ISBN 1-59059-695-1)
and "JavaScript, DOM Scripting and Ajax Projects"
 (2007, Apress, ISBN 1-59059-816-4)
Java Web Parts - http://javawebparts.sourceforge.net
 Supplying the wheel, so you don't have to reinvent it!
(technical reviewer of "Practical Apache Struts2 Web 2.0 Projects" - LOL)

On Tue, November 20, 2007 1:31 pm, Ian Roughley wrote:

> I'm pleased to announce the release of my newest book, "Practical Apache
> Struts2 Web 2.0 project".  And, no, I didn't pick the name :-)
>
> Where "Starting Struts2" was high level and provided pointers for
> further exploration, this book dives deep into the framework providing a
> practical guide and lots of code examples for developing web application
> using Struts2.  For those that are new to the framework, there is
> information on getting started, the request/response life cycle, and
> architecture and configuration (XML and zero configuration/annotation).
> And for those that are familiar with Struts2, more advanced topics such
> as security (yes, container, custom and Acegi are all provided with
> example code), workflows/wizards, RESTful web services, and Ajax are
> covered.
>
> For more information, the Apress web site is
> http://www.apress.com/book/view/9781590599037.  I also believe it will
> be available through most major bookstores.
>
> /Ian
>
> --
> Ian Roughley
> From Down & Around, Inc.
> Consulting * Training / Mentoring * Agile Process * Open Source
> web: http://www.fdar.com - email: ian@...
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@...
> For additional commands, e-mail: user-help@...
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

by Musachy Barroso :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

yeah, kudos to Ian. I should try writing one so I could have a fancy
signature ;)

musachy

On Nov 20, 2007 2:04 PM, Frank W. Zammetti <fzlists@...> wrote:

> Congratulations Ian!  I know how it feels to finally finish such an
> undertaking and see the end result.  Kudos!
>
> I'm sure it's a fantastic book too (wink-wink).
>
> Frank
>
> --
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
> AIM/Yahoo: fzammetti
> MSN: fzammetti@...
> Author of "Practical Ajax Projects With Java Technology"
>  (2006, Apress, ISBN 1-59059-695-1)
> and "JavaScript, DOM Scripting and Ajax Projects"
>  (2007, Apress, ISBN 1-59059-816-4)
> Java Web Parts - http://javawebparts.sourceforge.net
>  Supplying the wheel, so you don't have to reinvent it!
> (technical reviewer of "Practical Apache Struts2 Web 2.0 Projects" - LOL)
>
>
> On Tue, November 20, 2007 1:31 pm, Ian Roughley wrote:
> > I'm pleased to announce the release of my newest book, "Practical Apache
> > Struts2 Web 2.0 project".  And, no, I didn't pick the name :-)
> >
> > Where "Starting Struts2" was high level and provided pointers for
> > further exploration, this book dives deep into the framework providing a
> > practical guide and lots of code examples for developing web application
> > using Struts2.  For those that are new to the framework, there is
> > information on getting started, the request/response life cycle, and
> > architecture and configuration (XML and zero configuration/annotation).
> > And for those that are familiar with Struts2, more advanced topics such
> > as security (yes, container, custom and Acegi are all provided with
> > example code), workflows/wizards, RESTful web services, and Ajax are
> > covered.
> >
> > For more information, the Apress web site is
> > http://www.apress.com/book/view/9781590599037.  I also believe it will
> > be available through most major bookstores.
> >
> > /Ian
> >
> > --
> > Ian Roughley
> > From Down & Around, Inc.
> > Consulting * Training / Mentoring * Agile Process * Open Source
> > web: http://www.fdar.com - email: ian@...
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@...
> > For additional commands, e-mail: user-help@...
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@...
> For additional commands, e-mail: user-help@...
>
>



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

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

by Ted Husted :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Amazon is showing the book as available now! <yeah!>

If you order through this link, the commission on the sale will be
donated to the ASF.

 * http://opensource.atlassian.com/confluence/oss/display/BOOKS/ISBN-1590599039

Ian, any word on whether Apress will be making their books available
for the Kindle?

-Ted.

On Nov 20, 2007 1:31 PM, Ian Roughley <ian@...> wrote:

> I'm pleased to announce the release of my newest book, "Practical Apache
> Struts2 Web 2.0 project".  And, no, I didn't pick the name :-)
>
> Where "Starting Struts2" was high level and provided pointers for
> further exploration, this book dives deep into the framework providing a
> practical guide and lots of code examples for developing web application
> using Struts2.  For those that are new to the framework, there is
> information on getting started, the request/response life cycle, and
> architecture and configuration (XML and zero configuration/annotation).
> And for those that are familiar with Struts2, more advanced topics such
> as security (yes, container, custom and Acegi are all provided with
> example code), workflows/wizards, RESTful web services, and Ajax are
> covered.
>
> For more information, the Apress web site is
> http://www.apress.com/book/view/9781590599037.  I also believe it will
> be available through most major bookstores.
>
> /Ian
>
> --
> Ian Roughley
> From Down & Around, Inc.
> Consulting * Training / Mentoring * Agile Process * Open Source
> web: http://www.fdar.com - email: ian@...

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

by Ian Roughley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

No idea.  I can check though.

/Ian

--
Ian Roughley
From Down & Around, Inc.
Consulting * Training / Mentoring * Agile Process * Open Source
web: http://www.fdar.com - email: ian@...



Ted Husted wrote:

> Amazon is showing the book as available now! <yeah!>
>
> If you order through this link, the commission on the sale will be
> donated to the ASF.
>
>  * http://opensource.atlassian.com/confluence/oss/display/BOOKS/ISBN-1590599039
>
> Ian, any word on whether Apress will be making their books available
> for the Kindle?
>
> -Ted.
>
> On Nov 20, 2007 1:31 PM, Ian Roughley <ian@...> wrote:
>  
>> I'm pleased to announce the release of my newest book, "Practical Apache
>> Struts2 Web 2.0 project".  And, no, I didn't pick the name :-)
>>
>> Where "Starting Struts2" was high level and provided pointers for
>> further exploration, this book dives deep into the framework providing a
>> practical guide and lots of code examples for developing web application
>> using Struts2.  For those that are new to the framework, there is
>> information on getting started, the request/response life cycle, and
>> architecture and configuration (XML and zero configuration/annotation).
>> And for those that are familiar with Struts2, more advanced topics such
>> as security (yes, container, custom and Acegi are all provided with
>> example code), workflows/wizards, RESTful web services, and Ajax are
>> covered.
>>
>> For more information, the Apress web site is
>> http://www.apress.com/book/view/9781590599037.  I also believe it will
>> be available through most major bookstores.
>>
>> /Ian
>>
>> --
>> Ian Roughley
>> From Down & Around, Inc.
>> Consulting * Training / Mentoring * Agile Process * Open Source
>> web: http://www.fdar.com - email: ian@...
>>    
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@...
> For additional commands, e-mail: user-help@...
>
>  

RE: [ANN] Practical Apache Struts2 Web 2.0 Projects

by mgainty :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Ian-
If you provide the ISBN some of us can do a quick search at local bookstoreThanks/Martin______________________________________________Disclaimer and confidentiality noteEverything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission.> > No idea. I can check though.> > /Ian> > -- > Ian Roughley> From Down & Around, Inc.> Consulting * Training / Mentoring * Agile Process * Open Source> web: http://www.fdar.com - email: ian@...> > > > Ted Husted wrote:> > Amazon is showing the book as available now! <yeah!>> >> > If you order through this link, the commission on the sale will be> > donated to the ASF.> >> > * http://opensource.atlassian.com/confluence/oss/display/BOOKS/ISBN-1590599039> >> > Ian, any word on whether Apress will be making their books available> > for the Kindle?> >> > -Ted.> >> > On Nov 20, 2007 1:31 PM, Ian Roughley <ian@...> wrote:> > > >> I'm pleased to announce the release of my newest book, "Practical Apache> >> Struts2 Web 2.0 project". And, no, I didn't pick the name :-)> >>> >> Where "Starting Struts2" was high level and provided pointers for> >> further exploration, this book dives deep into the framework providing a> >> practical guide and lots of code examples for developing web application> >> using Struts2. For those that are new to the framework, there is> >> information on getting started, the request/response life cycle, and> >> architecture and configuration (XML and zero configuration/annotation).> >> And for those that are familiar with Struts2, more advanced topics such> >> as security (yes, container, custom and Acegi are all provided with> >> example code), workflows/wizards, RESTful web services, and Ajax are> >> covered.> >>> >> For more information, the Apress web site is> >> http://www.apress.com/book/view/9781590599037. I also believe it will> >> be available through most major bookstores.> >>> >> /Ian> >>> >> --> >> Ian Roughley> >> From Down & Around, Inc.> >> Consulting * Training / Mentoring * Agile Process * Open Source> >> web: http://www.fdar.com - email: ian@...> >> > >> > ---------------------------------------------------------------------> > To unsubscribe, e-mail: user-unsubscribe@...> > For additional commands, e-mail: user-help@...> >> >
_________________________________________________________________
Put your friends on the big screen with Windows Vista® + Windows Live™.
http://www.microsoft.com/windows/shop/specialoffers.mspx?ocid=TXT_TAGLM_CPC_MediaCtr_bigscreen_102007

Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

by Ian Roughley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sure:

    * ISBN10: 1-59059-903-9
    * ISBN13: 978-1-59059-903-7

I'm also going to try to see if the publisher will release a different
chapter as the example, I just noticed that they have used the first one
- which is more of an introduction, and not a good example of what the
rest of the book is like.

/Ian

--
Ian Roughley
From Down & Around, Inc.
Consulting * Training / Mentoring * Agile Process * Open Source
web: http://www.fdar.com - email: ian@...



Martin Gainty wrote:
> Ian-
> If you provide the ISBN some of us can do a quick search at local bookstoreThanks/Martin______________________________________________Disclaimer and confidentiality noteEverything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission.> > No idea. I can check though.> > /Ian> > -- > Ian Roughley> From Down & Around, Inc.> Consulting * Training / Mentoring * Agile Process * Open Source> web: http://www.fdar.com - email: ian@...> > > > Ted Husted wrote:> > Amazon is showing the book as available now! <yeah!>> >> > If you order through this link, the commission on the sale will be> > donated to the ASF.> >> > * http://opensource.atlassian.com/confluence/oss/display/BOOKS/ISBN-1590599039> >> > Ian, any word on whether Apress will be making their books available> > for the Kindle?> >> > -Ted.> >> > On Nov 20, 2007 1:31 PM, Ian Roughley <ian@...> wrote:> > > >> I'm pleased to announce the release of my newest book, "Practical Apache> >> Struts2 Web 2.0 project". And, no, I didn't pick the name :-)> >>> >> Where "Starting Struts2" was high level and provided pointers for> >> further exploration, this book dives deep into the framework providing a> >> practical guide and lots of code examples for developing web application> >> using Struts2. For those that are new to the framework, there is> >> information on getting started, the request/response life cycle, and> >> architecture and configuration (XML and zero configuration/annotation).> >> And for those that are familiar with Struts2, more advanced topics such> >> as security (yes, container, custom and Acegi are all provided with> >> example code), workflows/wizards, RESTful web services, and Ajax are> >> covered.> >>> >> For more information, the Apress web site is> >> http://www.apress.com/book/view/9781590599037. I also believe it will> >> be available through most major bookstores.> >>> >> /Ian> >>> >> --> >> Ian Roughley> >> From Down & Around, Inc.> >> Consulting * Training / Mentoring * Agile Process * Open Source> >> web: http://www.fdar.com - email: ian@...> >> > >> > ---------------------------------------------------------------------> > To unsubscribe, e-mail: user-unsubscribe@...> > For additional commands, e-mail: user-help@...> >> >
> _________________________________________________________________
> Put your friends on the big screen with Windows Vista® + Windows Live™.
> http://www.microsoft.com/windows/shop/specialoffers.mspx?ocid=TXT_TAGLM_CPC_MediaCtr_bigscreen_102007
>  

Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

by MassimoH :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

My copy arrived in the mail over the weekend after having it on pre-order for months.

So far, so good! Great job!

Ian Roughley wrote:
I'm pleased to announce the release of my newest book, "Practical Apache
Struts2 Web 2.0 project".  And, no, I didn't pick the name :-)

Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

by mgainty :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Massimo can you tell us the ISBN?

thx
M--
----- Original Message -----
From: "MassimoH" <MassimoHeitor@...>
To: <user@...>
Sent: Tuesday, November 27, 2007 4:18 PM
Subject: Re: [ANN] Practical Apache Struts2 Web 2.0 Projects


>
> My copy arrived in the mail over the weekend after having it on pre-order
for

> months.
>
> So far, so good! Great job!
>
>
> Ian Roughley wrote:
> >
> > I'm pleased to announce the release of my newest book, "Practical Apache
> > Struts2 Web 2.0 project".  And, no, I didn't pick the name :-)
> >
>
> --
> View this message in context:
http://www.nabble.com/-ANN--Practical-Apache-Struts2-Web-2.0-Projects-tf4845
559.html#a13980088
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@...
> For additional commands, e-mail: user-help@...
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

by newton.dave :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

--- Ian Roughley <ian@...> wrote on Sat Nov 24:
> Sure:
>
>     * ISBN10: 1-59059-903-9
>     * ISBN13: 978-1-59059-903-7
>

--- Martin Gainty <mgainty@...> wrote:

> Massimo can you tell us the ISBN?
>
> thx
> M--
> ----- Original Message -----
> From: "MassimoH" <MassimoHeitor@...>
> To: <user@...>
> Sent: Tuesday, November 27, 2007 4:18 PM
> Subject: Re: [ANN] Practical Apache Struts2 Web 2.0
> Projects
>
>
> >
> > My copy arrived in the mail over the weekend after
> having it on pre-order
> for
> > months.
> >
> > So far, so good! Great job!
> >
> >
> > Ian Roughley wrote:
> > >
> > > I'm pleased to announce the release of my newest
> book, "Practical Apache
> > > Struts2 Web 2.0 project".  And, no, I didn't
> pick the name :-)
> > >
> >
> > --
> > View this message in context:
>
http://www.nabble.com/-ANN--Practical-Apache-Struts2-Web-2.0-Projects-tf4845
> 559.html#a13980088
> > Sent from the Struts - User mailing list archive
> at Nabble.com.
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> user-unsubscribe@...
> > For additional commands, e-mail:
> user-help@...
> >
> >
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@...
> For additional commands, e-mail:
> user-help@...
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

by sharpguy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Great work, Keep it up. I have just started with will post a review when I am done.
Thanks

Ian Roughley wrote:
I'm pleased to announce the release of my newest book, "Practical Apache
Struts2 Web 2.0 project".  And, no, I didn't pick the name :-)

Where "Starting Struts2" was high level and provided pointers for
further exploration, this book dives deep into the framework providing a
practical guide and lots of code examples for developing web application
using Struts2.  For those that are new to the framework, there is
information on getting started, the request/response life cycle, and
architecture and configuration (XML and zero configuration/annotation).  
And for those that are familiar with Struts2, more advanced topics such
as security (yes, container, custom and Acegi are all provided with
example code), workflows/wizards, RESTful web services, and Ajax are
covered.

For more information, the Apress web site is
http://www.apress.com/book/view/9781590599037.  I also believe it will
be available through most major bookstores.

/Ian

--
Ian Roughley
From Down & Around, Inc.
Consulting * Training / Mentoring * Agile Process * Open Source
web: http://www.fdar.com - email: ian@fdar.com


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

Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

by guillermodl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Im having 1 little problems with Practical Apache Struts2 Web 2.0 Projects examples
The first one is that even EntityManager do not persist when submiting the contestants says "detached persist", I have solved it using entityMgr.merge(event); instead of entityMgr.persist(event);
the second is a problem with tomcat, when debuging(and only runnig the debbuger, tomcat 5.5) under eclipse, the more strange is that it doesn't happend if I add a user but creating a envent prints

avax.servlet.ServletException: Error setting expression 'model' with value 'com.fdar.apress.s2.domain.Event@12adac5'
        org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515)
        ..........

causa raíz

Error setting expression 'model' with value 'com.fdar.apress.s2.domain.Event@12adac5' - [unknown location]
        com.opensymphony.xwork2.util.OgnlValueStack.setValue(OgnlValueStack.java:171)
................


No object in the CompoundRoot has a publicly accessible property named 'model' (no setter could be found). - [unknown location]
        at com.opensymphony.xwork2.util.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:68)

......................

but getModel and setModel  are defined in BaseEventAction where interface ModelDriven is used

I will try tomcat 6 to see if it is that solves, If you already know wath it is, please, I will be here reading

Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

by Ian Roughley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There have been cases (unfortunately not with myself or the tech
reviewer, otherwise it would have been corrected) when the same error
message (No object in the CompoundRoot has a publicly accessible
property named 'model' (no setter could be found). - [unknown location])
has been displayed.  I believe it may be based on OS.

The solution provided to me was to change the scope interceptor
reference to use a session value of "Model" rather than "model" - see below.

  <interceptor-ref name="scope">
    <param name="session">Model</param>
    <param name="key">partialEvent</param>
  </interceptor-ref>

/Ian

--
Ian Roughley
From Down & Around, Inc.
Consulting * Training / Mentoring * Agile Process * Open Source
web: http://www.fdar.com - email: ian@...



guillermodl wrote:

> Im having 1 little problems with Practical Apache Struts2 Web 2.0 Projects
> examples
> The first one is that even EntityManager do not persist when submiting the
> contestants says "detached persist", I have solved it using
> entityMgr.merge(event); instead of entityMgr.persist(event);
> the second is a problem with tomcat, when debuging(and only runnig the
> debbuger, tomcat 5.5) under eclipse, the more strange is that it doesn't
> happend if I add a user but creating a envent prints
>
> avax.servlet.ServletException: Error setting expression 'model' with value
> 'com.fdar.apress.s2.domain.Event@12adac5'
> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515)
> ..........
>
> causa raíz
>
> Error setting expression 'model' with value
> 'com.fdar.apress.s2.domain.Event@12adac5' - [unknown location]
>
> com.opensymphony.xwork2.util.OgnlValueStack.setValue(OgnlValueStack.java:171)
> ................
>
>
> No object in the CompoundRoot has a publicly accessible property named
> 'model' (no setter could be found). - [unknown location]
> at
> com.opensymphony.xwork2.util.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:68)
>
> ......................
>
> but getModel and setModel  are defined in BaseEventAction where interface
> ModelDriven is used
>
> I will try tomcat 6 to see if it is that solves, If you already know wath it
> is, please, I will be here reading
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

by newton.dave :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

--- Ian Roughley <ian@...> wrote:
> The solution provided to me was to change the scope interceptor
> reference to use a session value of "Model" rather than "model" - see
> below.
>
>   <interceptor-ref name="scope">
>     <param name="session">Model</param>
>     <param name="key">partialEvent</param>
>   </interceptor-ref>

Hmm, why does that fix it? If it's an OS-dependent issue we should fix it for
real.

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

by Ian Roughley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm not sure, and I'm only taking an educated guess at it being
OS/platform-dependent (since a JAR that worked for me had problems for
another user).  Unfortunately I can't reproduce the error.  I'm all for
doing the work to fix the problem if someone has the problem and cycles
to work through testing it.

/Ian

Dave Newton wrote:

> --- Ian Roughley <ian@...> wrote:
>  
>> The solution provided to me was to change the scope interceptor
>> reference to use a session value of "Model" rather than "model" - see
>> below.
>>
>>   <interceptor-ref name="scope">
>>     <param name="session">Model</param>
>>     <param name="key">partialEvent</param>
>>   </interceptor-ref>
>>    
>
> Hmm, why does that fix it? If it's an OS-dependent issue we should fix it for
> real.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@...
> For additional commands, e-mail: user-help@...
>
>  

Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

by raxden2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

HI! i had the same problem, but I have another problem:

When i push the button for save Event... throws this exception:

excepción

javax.servlet.ServletException: javax.persistence.PersistenceException: org.hibernate.PersistentObjectException: detached entity passed to persist: com.fdar.apress.s2.domain.Location
        org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515)
        org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)
        com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
        com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
        org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)

causa raíz

javax.persistence.PersistenceException: org.hibernate.PersistentObjectException: detached entity passed to persist: com.fdar.apress.s2.domain.Location
        org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:629)
        org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:218)
        com.fdar.apress.s2.services.EventServiceImpl.create(EventServiceImpl.java:24)
        com.fdar.apress.s2.actions.event.SaveEventAction.execute(SaveEventAction.java:32)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

..............

causa raíz

org.hibernate.PersistentObjectException: detached entity passed to persist: com.fdar.apress.s2.domain.Location
        org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:79)
        org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:609)
        org.hibernate.impl.SessionImpl.persist(SessionImpl.java:601)
        org.hibernate.engine.CascadingAction$8.cascade(CascadingAction.java:295)
        org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
        org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:216)
        org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)

..........

I need help, i don´t know how resolve this.


Thanks.




Ian Roughley wrote:
I'm not sure, and I'm only taking an educated guess at it being
OS/platform-dependent (since a JAR that worked for me had problems for
another user).  Unfortunately I can't reproduce the error.  I'm all for
doing the work to fix the problem if someone has the problem and cycles
to work through testing it.

/Ian

Dave Newton wrote:
> --- Ian Roughley <ian@fdar.com> wrote:
>  
>> The solution provided to me was to change the scope interceptor
>> reference to use a session value of "Model" rather than "model" - see
>> below.
>>
>>   <interceptor-ref name="scope">
>>     Model
>>     partialEvent
>>   </interceptor-ref>
>>    
>
> Hmm, why does that fix it? If it's an OS-dependent issue we should fix it for
> real.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>  

Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

by Jim Kiley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Are you using the OpenSessionInViewFilter?  If you aren't, you'll want to.

If you are doing that already, you may be trying to persist when you should
merge.  If you're using Hibernate's API directly, take advantage of
Hibernate's saveOrUpdate() method, rather than the JPA merge()/persiste()
methods.

Jim Kiley
Technical Consultant
Summa
jhkiley@...


On Mon, Apr 28, 2008 at 3:50 PM, raxden2 <esthar_2000@...> wrote:

>
> HI! i had the same problem, but I have another problem:
>
> When i push the button for save Event... throws this exception:
>
> excepción
>
> javax.servlet.ServletException: javax.persistence.PersistenceException:
> org.hibernate.PersistentObjectException: detached entity passed to
> persist:
> com.fdar.apress.s2.domain.Location
>
>  org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515)
>
>
> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)
>
>
> com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
>
>
> com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
>
>
> org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)
>
> causa raíz
>
> javax.persistence.PersistenceException:
> org.hibernate.PersistentObjectException: detached entity passed to
> persist:
> com.fdar.apress.s2.domain.Location
>
>
> org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:629)
>
>
> org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:218)
>
>
> com.fdar.apress.s2.services.EventServiceImpl.create(EventServiceImpl.java:24)
>
>
> com.fdar.apress.s2.actions.event.SaveEventAction.execute(SaveEventAction.java:32)
>        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> ..............
>
> causa raíz
>
> org.hibernate.PersistentObjectException: detached entity passed to
> persist:
> com.fdar.apress.s2.domain.Location
>
>
> org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:79)
>        org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:609)
>        org.hibernate.impl.SessionImpl.persist(SessionImpl.java:601)
>
>  org.hibernate.engine.CascadingAction$8.cascade(CascadingAction.java:295)
>        org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
>        org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:216)
>        org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
>
> ..........
>
> I need help, i don´t know how resolve this.
>
>
> Thanks.
>
>
>
>
>
> Ian Roughley wrote:
> >
> > I'm not sure, and I'm only taking an educated guess at it being
> > OS/platform-dependent (since a JAR that worked for me had problems for
> > another user).  Unfortunately I can't reproduce the error.  I'm all for
> > doing the work to fix the problem if someone has the problem and cycles
> > to work through testing it.
> >
> > /Ian
> >
> > Dave Newton wrote:
> >> --- Ian Roughley <ian@...> wrote:
> >>
> >>> The solution provided to me was to change the scope interceptor
> >>> reference to use a session value of "Model" rather than "model" - see
> >>> below.
> >>>
> >>>   <interceptor-ref name="scope">
> >>>     Model
> >>>     partialEvent
> >>>   </interceptor-ref>
> >>>
> >>
> >> Hmm, why does that fix it? If it's an OS-dependent issue we should fix
> it
> >> for
> >> real.
> >>
> >> Dave
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@...
> >> For additional commands, e-mail: user-help@...
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/-ANN--Practical-Apache-Struts2-Web-2.0-Projects-tp13863084p16945872.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@...
> For additional commands, e-mail: user-help@...
>
>


--
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com