how to map REST resource

2010-10-07 Thread Greg Stasica
hi, i'm trying to map a REST resource like below /catalog/1/product/2/item following s2-rest-showcase i've no problem to map the first part of the resource i.e. up to /catalog/1 but i'm not sure how the cope with the remaining part

Re: struts2+hibernate+spring - lazyInitaializationException

2010-07-19 Thread Greg Stasica
For additional commands, e-mail: user-h...@struts.apache.org -- Greg Stasica

Re: struts2+hibernate+spring - lazyInitaializationException

2010-07-19 Thread Greg Stasica
For additional commands, e-mail: user-h...@struts.apache.org -- Greg Stasica

struts2+hibernate+spring - lazyInitaializationException

2010-07-18 Thread Greg Stasica
hi, i've been testing very simply scenario using aforementioned technologies but all i get is LazyInitializationException while trying to access my entity collection. I've included some code snippets below to make myself very clear. I don't think there is anything wrong with the attached code as

Model Driven Action doesn't return value when model gets reassigned to some other value - hibernate problem

2010-06-29 Thread Greg Stasica
property. surely the workaround is to copy properties from one object to another but again this is simply a waste of memory :) -- Greg Stasica

Re: Fwd: Model Driven Action doesn't return value when model gets reassigned to some other value - hibernate problem

2010-06-29 Thread Greg Stasica
on the value stack _before_ your action method is executed. To initialize the model object before the ModelDrivenInterceptor comes into play, just implement Preparable and do your initialization in prepare() (as Lukasz already suggested) - René Greg Stasica schrieb: hi, the scenario is as follow

Fwd: Model Driven Action doesn't return value when model gets reassigned to some other value - hibernate problem

2010-06-28 Thread Greg Stasica
property. surely the workaround is to: 1. copy properties from one object to another but again this is simply a waste of memory :) 2. get the MyBean object in getModel() method but i don't think this method should do any dao/business operations -- Greg Stasica -- Greg Stasica

jelly question - reading command line arguments

2007-07-20 Thread Greg Stasica
hi, sorry that it's a little bit out of group's main interest but could anybody tell me how to read command line arguments while running Jelly script in DOS terminal ? I came across something like this and althoug it works fine I'd like to know where does this commandLine come from? I could

jsp page processing time

2007-05-29 Thread Greg Stasica
hi, Is it possible to get a time my servlet spends on generating JSP page? There isn't a problem to measure this time for actions in RequestProcessor but I'd like to know exactly how long did it take to present the page to the user after the action had completed. Rgs Greg

how to check if page has been displayed (rendered) by the browser

2007-05-29 Thread Greg Stasica
hi, My problem is that I've a big JSP page with a lot of scriptlets and a JavaScript which basically reloads the whole page every 5s. The problem is that my JavaScript makes a request to the server before the user has a chance to see the whole page. Is it possible to read somehow that the page