Re: Model Driven Tutorial/Howto Here is one

2008-09-02 Thread Dave Newton
--- On Tue, 9/2/08, Ashlon wrote: > http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html > for Model 2 The original poster wasn't asking for a tutorial on MVC, but for ModelDriven, an XWork interceptor/interface. Dave -

Re: Model Driven Tutorial/Howto Here is one

2008-09-02 Thread Ashlon
http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html for Model 2 also this http://struts.sourceforge.net/community/1st.html has other links for Java technologies newton.dave wrote: > > --- On Tue, 9/2/08, Ashlon wrote: >> I haven't completed this tutorial but this one loo

Re: Model Driven Tutorial/Howto

2008-09-02 Thread Dave Newton
--- On Tue, 9/2/08, Roger wrote: > I'm only using this stack as it's the out-of-the-box default. > Should I be using something else? I think the default stack is... defaultStack. You chose to define your default stack as paramsPrepareParams. I'd only use paramsPrepareParams if you need what it

Re: Model Driven Tutorial/Howto

2008-09-02 Thread Roger
On Tuesday 02 September 2008 16:33:35 Dave Newton wrote: > --- On Tue, 9/2/08, Roger wrote: > > The parameter "name" in the test case exists in the model > > (TestQuotation) but not in the action (TestAction) and > > Struts2 bleats in the Tomcat logs. It's definitely being > > set in the model > >

Re: Model Driven Tutorial/Howto Here is one

2008-09-02 Thread Dave Newton
--- On Tue, 9/2/08, Ashlon wrote: > I haven't completed this tutorial but this one looks > like a good one > > http://www.java-tips.org/java-tutorials/tutorials/ I don't see anything about Struts 2 there, let alone ModelDriven. Could you provide a direct link to the relevant tutorial? Dave --

Re: Model Driven Tutorial/Howto

2008-09-02 Thread Dave Newton
--- On Tue, 9/2/08, Roger wrote: > The parameter "name" in the test case exists in the model > (TestQuotation) but not in the action (TestAction) and > Struts2 bleats in the Tomcat logs. It's definitely being > set in the model Like I said, it can be ignored, and the link I provided seems to in

Re: Model Driven Tutorial/Howto Here is one

2008-09-02 Thread Ashlon
I haven't completed this tutorial but this one looks like a good one http://www.java-tips.org/java-tutorials/tutorials/ Roger Varley wrote: > > Can anyone point me to a tutorial/howto on how to use Model Driven. I've > been > experimenting and I've verified that the parameters on the model

Re: Model Driven Tutorial/Howto

2008-09-02 Thread Roger
On Tuesday 02 September 2008 15:42:53 Dave Newton wrote: > --- On Tue, 9/2/08, Roger wrote: > > Here is a stripped down version that shows the error > > message appearing in the Tomcat logs. > > Do you mean if you submit addressLine1 on a model that doesn't have that > property? Yeah, that'll log a

Re: Model Driven Tutorial/Howto

2008-09-02 Thread Dave Newton
--- On Tue, 9/2/08, Roger wrote: > Here is a stripped down version that shows the error > message appearing in the Tomcat logs. Do you mean if you submit addressLine1 on a model that doesn't have that property? Yeah, that'll log an ERROR. If you don't care that you're sending a parameter you kno

Re: Model Driven Tutorial/Howto

2008-09-02 Thread Roger
On Tuesday 02 September 2008 00:08:40 Dave Newton wrote: > --- On Mon, 9/1/08, Roger wrote: > > One of the (many) messages I'm seeing is; > > 02-Sep-2008 00:03:39 > > com.opensymphony.xwork2.interceptor.ParametersInterceptor > > setParameters > > SEVERE: ParametersInterceptor - [setParameters]: Un

Re: Model Driven Tutorial/Howto

2008-09-01 Thread Roger
> > Top action? The "ordered" property doesn't have so much to do with "top > actions" as with making sure that nested properties are set in order, as > determined by the number of dots in the parameter name. > > Not sure how that would be related to his ModelDriven issue, although it's > hard to s

RE: Model Driven Tutorial/Howto

2008-09-01 Thread Dave Newton
Good lord man, fix your line feeds. --- On Mon, 9/1/08, Martin Gainty wrote: > > > > That's kinda why I was asking for a > tutorial/howto for> > > beginners before I make an > idiot of myself - particularly> > > in light of my > recent post in the tag :-(> >> > > Since it's already too late you m

RE: Model Driven Tutorial/Howto

2008-09-01 Thread Martin Gainty
> > > That's kinda why I was asking for a tutorial/howto for> > > beginners > > > before I make an idiot of myself - particularly> > > in light of my > > > recent post in the tag :-(> >> > Since it's already too late > > > you might as well post it then ;)> >> > I don't know of any tutorials,

Re: Model Driven Tutorial/Howto

2008-09-01 Thread Dave Newton
--- On Mon, 9/1/08, Roger wrote: > One of the (many) messages I'm seeing is; > 02-Sep-2008 00:03:39 > com.opensymphony.xwork2.interceptor.ParametersInterceptor > setParameters > SEVERE: ParametersInterceptor - [setParameters]: Unexpected > Exception caught > setting 'addressLine1' on 'class > co

Re: Model Driven Tutorial/Howto

2008-09-01 Thread Roger
On Monday 01 September 2008 23:43:14 Dave Newton wrote: > --- On Mon, 9/1/08, Roger wrote: > > That's kinda why I was asking for a tutorial/howto for > > beginners before I make an idiot of myself - particularly > > in light of my recent post in the tag :-( > > Since it's already too late you migh

Re: Model Driven Tutorial/Howto

2008-09-01 Thread Dave Newton
--- On Mon, 9/1/08, Roger wrote: > That's kinda why I was asking for a tutorial/howto for > beginners before I make an idiot of myself - particularly > in light of my recent post in the tag :-( Since it's already too late you might as well post it then ;) I don't know of any tutorials, although

Re: Model Driven Tutorial/Howto

2008-09-01 Thread Roger
On Monday 01 September 2008 23:19:31 Dave Newton wrote: > --- On Mon, 9/1/08, Roger wrote: > > Yes, I'm in devMode and using Struts 2.0.11. Maybe I > > was just panicing because it shows as a SEVERE error. > > It shouldn't; you may want to post some code, config, and stack trace. > That's kinda wh

Re: Model Driven Tutorial/Howto

2008-09-01 Thread Dave Newton
--- On Mon, 9/1/08, Roger wrote: > Yes, I'm in devMode and using Struts 2.0.11. Maybe I > was just panicing because it shows as a SEVERE error. It shouldn't; you may want to post some code, config, and stack trace. Dave - To un

Re: Model Driven Tutorial/Howto

2008-09-01 Thread Roger
On Monday 01 September 2008 22:46:00 Dave Newton wrote: > --- On Mon, 9/1/08, Roger wrote: > > If the parameters are being set & retrieved from the model > > why do I need to provide getters & setters in the action? > > You don't. Are you in devMode? What version are you using? > Yes, I'm in devMo

Re: Model Driven Tutorial/Howto

2008-09-01 Thread Dave Newton
--- On Mon, 9/1/08, Roger wrote: > If the parameters are being set & retrieved from the model > why do I need to provide getters & setters in the action? You don't. Are you in devMode? What version are you using? Dave - To un