Author Login
Post Reply
user Digest 4 Jun 2008 00:44:19 -0000 Issue 8069
Topics (messages 187180 through 187209):
Re: Spring bean access from custom validation
187180 by: Randy Burgess
need help with validation
187181 by: Pranav
187191 by: Randy Burgess
187202 by: Pranav
187205 by: Randy Burgess
Re: fieldError tag
187182 by: David Evans
187184 by: Randy Burgess
[Struts 2] How to define button outside form ?
187183 by: Milan Milanovic
187186 by: Alberto A. Flores
187192 by: Felipe Lorenz
187194 by: Laurie Harper
Re: Is there such a thing as flash in S2?
187185 by: Guillaume Bilodeau
Re: s2 dojo / datepicker conundrum
187187 by: Dave Newton
187188 by: Jim Kiley
187193 by: Laurie Harper
Re: Constructor with arguments
187189 by: Relph,Brian
187190 by: Alberto A. Flores
187199 by: Laurie Harper
Re: Getting a s:select selected value
187195 by: Laurie Harper
187200 by: piltrafeta
187206 by: styl9090
Re: Struts 2 + Hibernate question
187196 by: Laurie Harper
Re: login problem
187197 by: Laurie Harper
Re: How to add Key to attribute value
187198 by: Laurie Harper
[OT] [ANN] Maven talk by Jason van Zyl on June 17th at Google in Silicon Valley
187201 by: Van Riper
Re: [Struts 2] s:iterator (post list back to java class doesn't work)
187203 by: thinair
[Struts2] dynamic checkbox "list"
187204 by: thinair
welcome file on localhost
187207 by: Stetze2008
Images in s:select
187208 by: Volker Karlmeier
REST Plugin
187209 by: Mike Watson
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)
----------------------------------------------------------------------

Attachment:
user_187180.ezm (zipped)If Spring works with validators the way it does with interceptors and
actions, which I assume it does, then one way you could do this is to define
your validator as a spring bean:
<validators>
<validator name="aSpringValidator" class="springValidator"/>
</validators>
springValidator would be the id of your spring managed bean. Then you would
inject any dependencies into that spring bean using normal methods,
depending on the version of spring you are using, i.e. XML or annotations.
I've had issues with auto-wiring on WebLogic so I do things this way.
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
> From: Alec C4 <alec.c4@(protected)>
> Reply-To: Struts Users Mailing List <user@(protected)>
> Date: Tue, 3 Jun 2008 06:48:19 -0700 (PDT)
> To: <user@(protected)>
> Subject: Spring bean access from custom validation
>
>
> Hi,
> i'm trying to understand - how to access some spring bean from my custom
> validation. Could you please explain me - how to do it?
> --
> View this message in context:
> http://www.nabble.com/Spring-bean-access-from-custom-validation-tp17623952p176
> 23952.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
This email and any attachments ("Message") may contain legally privileged and/or confidential information. If you are not the addressee, or if this Message has been addressed to you in error, you are not authorized to read, copy, or distribute it, and we ask that you please delete it (including all copies) and notify the sender by return email. Delivery of this Message to any person other than the intended recipient(s) shall not be deemed a waiver of confidentiality and/or a privilege.

Attachment:
user_187181.ezm (zipped)Hi,
I am facing problem with validation. I need urgent help if someone can provide it I will greatly appreciate that.
I have an action entryAction which renders entry.jsp. In entry.jsp I display certain properties from the action class using s:property as well as I display a list of items in a drop down using s:iterator and and option tags. Along with this data display I also display a file upload form. Once the user chooses a file and uploads it then control goes to uploadSuccess.jsp via UploadAction.java. But if there are validation errors like file name is missing then control is supposed to go back to input page i.e. entry.jsp. I have tried both XML based validation as well as validation in Action class code. The validation works, errors are displayed on entry.jsp as expected but the property fields and the drop down data that were being displayed before the validation was triggered are no longer available on the UI. they are all blank. I do not know how to cause the entryAction to execute when validation error causes the entry.jsp to display due to <result
name="input">entry.jsp</result> configuration. Can someone please guide me as to how to solve this problem with struts2? Is there any configuration parameter that I can pass or is there any kind of interceptor that I have to use? How do I cause an action to invoke when input result is configured as a jsp file?
Thanks
Pranav

Attachment:
user_187191.ezm (zipped)Your input could use the chain result type for 'input' which will call the
action which populates the drop downs, etc.
http://struts.apache.org/2.x/docs/chain-result.html
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
> From: Pranav <mehta_pranav@(protected)>
> Reply-To: Struts Users Mailing List <user@(protected)>
> Date: Tue, 3 Jun 2008 08:50:40 -0700 (PDT)
> To: <user@(protected)>
> Subject: need help with validation
>
> Hi,
>
> I am facing problem with validation. I need urgent help if someone can provide
> it I will greatly appreciate that.
>
> I have an action entryAction which renders entry.jsp. In entry.jsp I display
> certain properties from the action class using s:property as well as I display
> a list of items in a drop down using s:iterator and and option tags. Along
> with this data display I also display a file upload form. Once the user
> chooses a file and uploads it then control goes to uploadSuccess.jsp via
> UploadAction.java. But if there are validation errors like file name is
> missing then control is supposed to go back to input page i.e. entry.jsp. I
> have tried both XML based validation as well as validation in Action class
> code. The validation works, errors are displayed on entry.jsp as expected but
> the property fields and the drop down data that were being displayed before
> the validation was triggered are no longer available on the UI. they are all
> blank. I do not know how to cause the entryAction to execute when validation
> error causes the entry.jsp to display due to <result
> name="input">entry.jsp</result> configuration. Can someone please guide me as
> to how to solve this problem with struts2? Is there any configuration
> parameter that I can pass or is there any kind of interceptor that I have to
> use? How do I cause an action to invoke when input result is configured as a
> jsp file?
>
> Thanks
> Pranav
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
This email and any attachments ("Message") may contain legally privileged and/or confidential information. If you are not the addressee, or if this Message has been addressed to you in error, you are not authorized to read, copy, or distribute it, and we ask that you please delete it (including all copies) and notify the sender by return email. Delivery of this Message to any person other than the intended recipient(s) shall not be deemed a waiver of confidentiality and/or a privilege.

Attachment:
user_187202.ezm (zipped)Thanks I will try that. But if I do it, will it still preserve the validation errors so that entry.jsp page will display it along with drop downs etc?
Thanks
Pranav
----- Original Message ----
From: Randy Burgess <RBurgess@(protected)>
To: Struts Users Mailing List <user@(protected)>
Sent: Tuesday, June 3, 2008 11:21:54 AM
Subject: Re: need help with validation
Your input could use the chain result type for 'input' which will call the
action which populates the drop downs, etc.
http://struts.apache.org/2.x/docs/chain-result.html
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
> From: Pranav <mehta_pranav@(protected)>
> Reply-To: Struts Users Mailing List <user@(protected)>
> Date: Tue, 3 Jun 2008 08:50:40 -0700 (PDT)
> To: <user@(protected)>
> Subject: need help with validation
>
> Hi,
>
> I am facing problem with validation. I need urgent help if someone can provide
> it I will greatly appreciate that.
>
> I have an action entryAction which renders entry.jsp. In entry.jsp I display
> certain properties from the action class using s:property as well as I display
> a list of items in a drop down using s:iterator and and option tags. Along
> with this data display I also display a file upload form. Once the user
> chooses a file and uploads it then control goes to uploadSuccess.jsp via
> UploadAction.java. But if there are validation errors like file name is
> missing then control is supposed to go back to input page i.e. entry.jsp. I
> have tried both XML based validation as well as validation in Action class
> code. The validation works, errors are displayed on entry.jsp as expected but
> the property fields and the drop down data that were being displayed before
> the validation was triggered are no longer available on the UI. they are all
> blank. I do not know how to cause the entryAction to execute when validation
> error causes the entry.jsp to display due to <result
> name="input">entry.jsp</result> configuration. Can someone please guide me as
> to how to solve this problem with struts2? Is there any configuration
> parameter that I can pass or is there any kind of interceptor that I have to
> use? How do I cause an action to invoke when input result is configured as a
> jsp file?
>
> Thanks
> Pranav
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
This email and any attachments ("Message") may contain legally privileged and/or confidential information. If you are not the addressee, or if this Message has been addressed to you in error, you are not authorized to read, copy, or distribute it, and we ask that you please delete it (including all copies) and notify the sender by return email. Delivery of this Message to any person other than the intended recipient(s) shall not be deemed a waiver of confidentiality and/or a privilege.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

Attachment:
user_187205.ezm (zipped)Yes, if entry.jsp is the success page of your action that populates the drop
downs.
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
> From: Pranav <mehta_pranav@(protected)>
> Reply-To: Struts Users Mailing List <user@(protected)>
> Date: Tue, 3 Jun 2008 13:15:43 -0700 (PDT)
> To: Struts Users Mailing List <user@(protected)>
> Subject: Re: need help with validation
>
> Thanks I will try that. But if I do it, will it still preserve the validation
> errors so that entry.jsp page will display it along with drop downs etc?
>
> Thanks
> Pranav
>
> ----- Original Message ----
> From: Randy Burgess <RBurgess@(protected)>
> To: Struts Users Mailing List <user@(protected)>
> Sent: Tuesday, June 3, 2008 11:21:54 AM
> Subject: Re: need help with validation
>
> Your input could use the chain result type for 'input' which will call the
> action which populates the drop downs, etc.
>
> http://struts.apache.org/2.x/docs/chain-result.html
>
> Regards,
> Randy Burgess
> Sr. Web Applications Developer
> Nuvox Communications
>
>
>
>> From: Pranav <mehta_pranav@(protected)>
>> Reply-To: Struts Users Mailing List <user@(protected)>
>> Date: Tue, 3 Jun 2008 08:50:40 -0700 (PDT)
>> To: <user@(protected)>
>> Subject: need help with validation
>>
>> Hi,
>>
>> I am facing problem with validation. I need urgent help if someone can
>> provide
>> it I will greatly appreciate that.
>>
>> I have an action entryAction which renders entry.jsp. In entry.jsp I display
>> certain properties from the action class using s:property as well as I
>> display
>> a list of items in a drop down using s:iterator and and option tags. Along
>> with this data display I also display a file upload form. Once the user
>> chooses a file and uploads it then control goes to uploadSuccess.jsp via
>> UploadAction.java. But if there are validation errors like file name is
>> missing then control is supposed to go back to input page i.e. entry.jsp. I
>> have tried both XML based validation as well as validation in Action class
>> code. The validation works, errors are displayed on entry.jsp as expected but
>> the property fields and the drop down data that were being displayed before
>> the validation was triggered are no longer available on the UI. they are all
>> blank. I do not know how to cause the entryAction to execute when validation
>> error causes the entry.jsp to display due to <result
>> name="input">entry.jsp</result> configuration. Can someone please guide me
>> as
>> to how to solve this problem with struts2? Is there any configuration
>> parameter that I can pass or is there any kind of interceptor that I have to
>> use? How do I cause an action to invoke when input result is configured as a
>> jsp file?
>>
>> Thanks
>> Pranav
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>
>
>
> This email and any attachments ("Message") may contain legally privileged
> and/or confidential information. If you are not the addressee, or if this
> Message has been addressed to you in error, you are not authorized to read,
> copy, or distribute it, and we ask that you please delete it (including all
> copies) and notify the sender by return email. Delivery of this Message to
> any person other than the intended recipient(s) shall not be deemed a waiver
> of confidentiality and/or a privilege.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
This email and any attachments ("Message") may contain legally privileged and/or confidential information. If you are not the addressee, or if this Message has been addressed to you in error, you are not authorized to read, copy, or distribute it, and we ask that you please delete it (including all copies) and notify the sender by return email. Delivery of this Message to any person other than the intended recipient(s) shall not be deemed a waiver of confidentiality and/or a privilege.

Attachment:
user_187182.ezm (zipped)Yes, I have that working. In the case of a single field, I would like to
use a single tag to express the same thing, ie:
<s:fielderror field="myField" /
After looking at the source code it seems that what I am looking for is
not currently implemented.
Should I ask about this on the development list?
Dave
On Tue, 2008-06-03 at 08:20 -0300, Felipe Lorenz wrote:
> HUmmmm ok..
>
> Did you try it:
>
> <s:fielderror>
> <s:param value="%{'field1'}" />
> <s:param value="%{'field2'}" />
> </s:fielderror>
> <s:form .... >
> ....
> </s:form>
>
> I found it on: http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/components/FieldError.html
>
> Try, and tell us about it...
>
> Have good day!
>
>
> On Mon, Jun 2, 2008 at 7:06 PM, David Evans <dsevans@(protected):
>
> > I'm sorry, my explanation was too brief.
> >
> > Given that the field "myField" has had a field error added to the
> > FieldErrors collection, I am wondering if there is a way to display it
> > on a jsp page that will be shorter than the documented:
> > <s:fielderror><s:param>myField</s:param></s:fielderror>
> >
> > I was hoping for something like:
> > <s:fielderror field="myField" />
> >
> >
> > Dave
> >
> > On Mon, 2008-06-02 at 17:59 -0300, Felipe Lorenz wrote:
> > > Well... in the Action class just add a field error to a especific field..
> > >
> > > On Mon, Jun 2, 2008 at 3:21 PM, David Evans <dsevans@(protected)>
> > wrote:
> > >
> > > > Hello,
> > > >
> > > > Is there any way to specify a particular field error like this:
> > > > <s:fielderror field="myField" />
> > > >
> > > > instead of:
> > > > <s:fielderror><s:param>myField</s:param></s:fielderror>
> > > >
> > > >
> > > > Thanks,
> > > >
> > > > Dave
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > > > For additional commands, e-mail: user-help@(protected)
> > > >
> > > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >

Attachment:
user_187184.ezm (zipped)I would search JIRA to make sure that this isn't already implemented in a
later version or to see if there is a JIRA already entered for this.
Submitting a patch that implements this feature, assuming it's not
implemented, would be a good way to go.
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
> From: David Evans <dsevans@(protected)>
> Reply-To: Struts Users Mailing List <user@(protected)>
> Date: Tue, 03 Jun 2008 09:13:30 -0700
> To: Struts Users Mailing List <user@(protected)>
> Subject: Re: fieldError tag
>
> Yes, I have that working. In the case of a single field, I would like to
> use a single tag to express the same thing, ie:
> <s:fielderror field="myField" /
>
> After looking at the source code it seems that what I am looking for is
> not currently implemented.
>
> Should I ask about this on the development list?
>
> Dave
>
>
> On Tue, 2008-06-03 at 08:20 -0300, Felipe Lorenz wrote:
>> HUmmmm ok..
>>
>> Did you try it:
>>
>> <s:fielderror>
>> <s:param value="%{'field1'}" />
>> <s:param value="%{'field2'}" />
>> </s:fielderror>
>> <s:form .... >
>> ....
>> </s:form>
>>
>> I found it on:
>> http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/componen
>> ts/FieldError.html
>>
>> Try, and tell us about it...
>>
>> Have good day!
>>
>>
>> On Mon, Jun 2, 2008 at 7:06 PM, David Evans <dsevans@(protected):
>>
>>> I'm sorry, my explanation was too brief.
>>>
>>> Given that the field "myField" has had a field error added to the
>>> FieldErrors collection, I am wondering if there is a way to display it
>>> on a jsp page that will be shorter than the documented:
>>> <s:fielderror><s:param>myField</s:param></s:fielderror>
>>>
>>> I was hoping for something like:
>>> <s:fielderror field="myField" />
>>>
>>>
>>> Dave
>>>
>>> On Mon, 2008-06-02 at 17:59 -0300, Felipe Lorenz wrote:
>>>> Well... in the Action class just add a field error to a especific field..
>>>>
>>>> On Mon, Jun 2, 2008 at 3:21 PM, David Evans <dsevans@(protected)>
>>> wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> Is there any way to specify a particular field error like this:
>>>>> <s:fielderror field="myField" />
>>>>>
>>>>> instead of:
>>>>> <s:fielderror><s:param>myField</s:param></s:fielderror>
>>>>>
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Dave
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>>> For additional commands, e-mail: user-help@(protected)
>>>>>
>>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail: user-help@(protected)
>>>
>>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
This email and any attachments ("Message") may contain legally privileged and/or confidential information. If you are not the addressee, or if this Message has been addressed to you in error, you are not authorized to read, copy, or distribute it, and we ask that you please delete it (including all copies) and notify the sender by return email. Delivery of this Message to any person other than the intended recipient(s) shall not be deemed a waiver of confidentiality and/or a privilege.

Attachment:
user_187183.ezm (zipped)Hi,
is it possible to define button outside form that will work instead of link ?
--
Thx, Milan

Attachment:
user_187186.ezm (zipped)If you want to rely on javascript, I don't see the problem
(form.submit()). Otherwise, standard HTML does not support a submit
outside a form.
Milan Milanovic wrote:
> Hi,
>
> is it possible to define button outside form that will work instead of link ?
>
> --
> Thx, Milan
>
>
--
Alberto A. Flores
http://www.linkedin.com/in/aflores

Attachment:
user_187192.ezm (zipped)But the rules that i define in struts.xml will still work? Or i need to make
it with JS?
On Tue, Jun 3, 2008 at 2:48 PM, Alberto A. Flores <aaflores@(protected)>
wrote:
> If you want to rely on javascript, I don't see the problem (form.submit()).
> Otherwise, standard HTML does not support a submit outside a form.
>
>
>
> Milan Milanovic wrote:
>
>> Hi,
>>
>> is it possible to define button outside form that will work instead of
>> link ?
>>
>> --
>> Thx, Milan
>>
>>
>
> --
>
> Alberto A. Flores
> http://www.linkedin.com/in/aflores
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>

Attachment:
user_187194.ezm (zipped)Yes, but he said a button that would work instead of a link, he didn't
mention trying to submit a form.
There are two options: 1) use a button with an onclick handler that
emulates a link; 2) use a link but style it to look like a button (using
CSS).
I'd recommend the second personally.
L.
Alberto A. Flores wrote:
> If you want to rely on javascript, I don't see the problem
> (form.submit()). Otherwise, standard HTML does not support a submit
> outside a form.
>
>
> Milan Milanovic wrote:
>> Hi,
>>
>> is it possible to define button outside form that will work instead of
>> link ?
>>
>> --
>> Thx, Milan
>>
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)

Attachment:
user_187185.ezm (zipped)
Hi Ken,
You can find the files and unit tests here:
https://issues.apache.org/struts/browse/WW-2635
Let me know how it works for you, as I couldn't give it extensive testing.
Cheers,
GB
kenk wrote:
>
> Hi GB,
>
> Did you ever find a place to post your FlashResult / FlashInterceptor?
> I'm interested in doing the same thing -- though I understand and agree
> with the disadvantage that Brad spoke of. Basically, I'm looking to do
> something similar to the
> http://www.stripesframework.org/display/stripes/State+Management Stripes
> flash scope
>
> Thanks in advance,
> Ken
>
>
> Guillaume Bilodeau wrote:
>>
>> Hi guys,
>>
>> I have just developed a FlashResult / FlashInterceptor pair - turns out
>> ....
>>
>>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_187187.ezm (zipped)AFAIK S2.0 would simply use the standard <s:head...> tag.
--- On Tue, 6/3/08, Jim Kiley <jhkiley@(protected):
> From: Jim Kiley <jhkiley@(protected)>
> Subject: s2 dojo / datepicker conundrum
> To: "Struts Users Mailing List" <user@(protected)>
> Date: Tuesday, June 3, 2008, 11:00 AM
> Hey gang,
>
> I have an app that needs a datepicker. I initially
> inserted an
> <s:datepicker> into my app. But I see from reviewing
> the docs that
> s:datepicker needs <sx:head> to be around in order to
> work right. And of
> course sx:head requires the struts-dojo-tags taglib. And
> the dojo plugin
> isn't available as part of the distribution until 2.1.
>
> Does this mean I shouldn't bother using the datepicker
> until 2.1 is GA? If
> that's true, why is s:datepicker even available as a
> tag in 2.0.x? If
> that's false, what am I missing?
>
>
>
> --
> Jim Kiley
> Technical Consultant | Summa
> [p] 412.258.3346 [m] 412.445.1729
> http://www.summa-tech.com

Attachment:
user_187188.ezm (zipped)If you listen closely you can hear my head explode, as of course that solves
the problem perfectly. Thanks Dave.
jk
On Tue, Jun 3, 2008 at 2:02 PM, Dave Newton <newton.dave@(protected):
> AFAIK S2.0 would simply use the standard <s:head...> tag.
>
>
> --- On Tue, 6/3/08, Jim Kiley <jhkiley@(protected):
>
> > From: Jim Kiley <jhkiley@(protected)>
> > Subject: s2 dojo / datepicker conundrum
> > To: "Struts Users Mailing List" <user@(protected)>
> > Date: Tuesday, June 3, 2008, 11:00 AM
> > Hey gang,
> >
> > I have an app that needs a datepicker. I initially
> > inserted an
> > <s:datepicker> into my app. But I see from reviewing
> > the docs that
> > s:datepicker needs <sx:head> to be around in order to
> > work right. And of
> > course sx:head requires the struts-dojo-tags taglib. And
> > the dojo plugin
> > isn't available as part of the distribution until 2.1.
> >
> > Does this mean I shouldn't bother using the datepicker
> > until 2.1 is GA? If
> > that's true, why is s:datepicker even available as a
> > tag in 2.0.x? If
> > that's false, what am I missing?
> >
> >
> >
> > --
> > Jim Kiley
> > Technical Consultant | Summa
> > [p] 412.258.3346 [m] 412.445.1729
> > http://www.summa-tech.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

Attachment:
user_187193.ezm (zipped)Jim Kiley wrote:
> Hey gang,
>
> I have an app that needs a datepicker. I initially inserted an
> <s:datepicker> into my app. But I see from reviewing the docs that
> s:datepicker needs <sx:head> to be around in order to work right. And of
> course sx:head requires the struts-dojo-tags taglib. And the dojo plugin
> isn't available as part of the distribution until 2.1.
>
> Does this mean I shouldn't bother using the datepicker until 2.1 is GA? If
> that's true, why is s:datepicker even available as a tag in 2.0.x? If
> that's false, what am I missing?
sx:datepicker needs sx:head; s:datepicker needs s:head with
theme="ajax". The Ajax-related tags in 2.0 moved to a plugin in 2.1,
with the taglib prefix changed to sx:.
So, if you're using 2.0, use <s:head theme="ajax"/> with s:datepicker;
if you're using 2.1, use sx:head and sx:datepicker.
L.

Attachment:
user_187189.ezm (zipped)
The struts2 object factory uses xwork's object factory to create the actions:
public Object buildAction(String actionName, String namespace, ActionConfig config, Map extraContext) throws Exception {
return buildBean(config.getClassName(), extraContext);
}
Which, as you can guess, can only build object with public,no-arg constructors.
public Object buildBean(Class clazz, Map extraContext) throws Exception {
return clazz.newInstance();
}
There is a SpringObjectFactory available in xwork, which was extended in the spring plugin as the StrutsSpringObjectFactory. These allow you to use spring to configure your actions, which if you don't mind autowiring-by-name, does not require any special work on your part.
When you say you rely on spring to build your actions, are you already using the spring plugin? I find it works well, and since I use spring for so many other things, I have no need to get rid of it as a dependency. If you don't want to use spring, you can create your own object factory, and override either the buildAction or buildBean methods to handle other constructors. It seems like you will still need to find your constructor argument objects from somewhere though, so wouldn't you need some DI framework to handle that anyway?
I think there is work being done to adopt Guice as the default DI framework, you could look into that.
Brian Relph
-----Original Message-----
From: Alberto A. Flores [mailto:aaflores@(protected)]
Sent: Tuesday, June 03, 2008 10:36 AM
To: Struts Users Mailing List
Subject: Constructor with arguments
Does anyone know how to make Struts2 ObjectFactory instantiate actions with constructor-arguments.
I currently have to rely on Spring to handle that case, but would be nice to do it without it.
--
Alberto A. Flores
http://www.linkedin.com/in/aflores
----------------------------------------------------------------------
CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.

Attachment:
user_187190.ezm (zipped)Thanks Brian,
Yes, I'm using Spring already. The way I fixed it was by having Spring
instantiate the class (I wasn't doing that before). Problem was that now
I need to maintain an additional XML file (for each class) which is what
I was trying to avoid.
Spring will do for me for now.
Relph,Brian wrote:
>
> The struts2 object factory uses xwork's object factory to create the actions:
>
> public Object buildAction(String actionName, String namespace, ActionConfig config, Map extraContext) throws Exception {
> return buildBean(config.getClassName(), extraContext);
> }
>
> Which, as you can guess, can only build object with public,no-arg constructors.
>
> public Object buildBean(Class clazz, Map extraContext) throws Exception {
> return clazz.newInstance();
> }
>
> There is a SpringObjectFactory available in xwork, which was extended in the spring plugin as the StrutsSpringObjectFactory. These allow you to use spring to configure your actions, which if you don't mind autowiring-by-name, does not require any special work on your part.
>
> When you say you rely on spring to build your actions, are you already using the spring plugin? I find it works well, and since I use spring for so many other things, I have no need to get rid of it as a dependency. If you don't want to use spring, you can create your own object factory, and override either the buildAction or buildBean methods to handle other constructors. It seems like you will still need to find your constructor argument objects from somewhere though, so wouldn't you need some DI framework to handle that anyway?
>
> I think there is work being done to adopt Guice as the default DI framework, you could look into that.
>
> Brian Relph
>
> -----Original Message-----
> From: Alberto A. Flores [mailto:aaflores@(protected)]
> Sent: Tuesday, June 03, 2008 10:36 AM
> To: Struts Users Mailing List
> Subject: Constructor with arguments
>
> Does anyone know how to make Struts2 ObjectFactory instantiate actions with constructor-arguments.
>
> I currently have to rely on Spring to handle that case, but would be nice to do it without it.
>
--
Alberto A. Flores
http://www.linkedin.com/in/aflores

Attachment:
user_187199.ezm (zipped)You don't need an XML file per class, just an entry per class in one XML
file -- and if you use Spring 2.5's @Ccomponent/@(protected)
support, you don't even need that. If you have Spring deployed anyway,
it's definitely the best tool for the job here.
L.
Alberto A. Flores wrote:
> Thanks Brian,
>
> Yes, I'm using Spring already. The way I fixed it was by having Spring
> instantiate the class (I wasn't doing that before). Problem was that now
> I need to maintain an additional XML file (for each class) which is what
> I was trying to avoid.
>
> Spring will do for me for now.
>
> Relph,Brian wrote:
>>
>> The struts2 object factory uses xwork's object factory to create the
>> actions:
>>
>> public Object buildAction(String actionName, String namespace,
>> ActionConfig config, Map extraContext) throws Exception {
>> return buildBean(config.getClassName(), extraContext);
>> }
>>
>> Which, as you can guess, can only build object with public,no-arg
>> constructors.
>>
>> public Object buildBean(Class clazz, Map extraContext) throws
>> Exception {
>> return clazz.newInstance();
>> }
>>
>> There is a SpringObjectFactory available in xwork, which was extended
>> in the spring plugin as the StrutsSpringObjectFactory. These allow
>> you to use spring to configure your actions, which if you don't mind
>> autowiring-by-name, does not require any special work on your part.
>>
>> When you say you rely on spring to build your actions, are you already
>> using the spring plugin? I find it works well, and since I use spring
>> for so many other things, I have no need to get rid of it as a
>> dependency. If you don't want to use spring, you can create your own
>> object factory, and override either the buildAction or buildBean
>> methods to handle other constructors. It seems like you will still
>> need to find your constructor argument objects from somewhere though,
>> so wouldn't you need some DI framework to handle that anyway?
>>
>> I think there is work being done to adopt Guice as the default DI
>> framework, you could look into that.
>>
>> Brian Relph
>>
>> -----Original Message-----
>> From: Alberto A. Flores [mailto:aaflores@(protected),
>> June 03, 2008 10:36 AM
>> To: Struts Users Mailing List
>> Subject: Constructor with arguments
>>
>> Does anyone know how to make Struts2 ObjectFactory instantiate actions
>> with constructor-arguments.
>>
>> I currently have to rely on Spring to handle that case, but would be
>> nice to do it without it.
>>
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)

Attachment:
user_187195.ezm (zipped)The most likely explanation would be that your option values collection
(session.coordValues) has empty or inconsistent key values. Check that
it contains what you think it does.
L.
piltrafeta wrote:
> Hi ,
> i have a jsp with some forms like this :
> <s:form action="acceptUser" method="post">
> <tr>
> <td>
> <s:a href="#" onclick="accept(%{#users.value._id})"> Accept </s:a>
> </td>
> <td><s:url id="url" action="rejectUser" includeParams="none" >
> <s:param name="idUser" value="%{#users.value._id}" />
> </s:url>
> <s:a href="%{url}"> Reject </s:a>
> <!--<s:form action="rejectUser" method="post">
> <s:a href="#" onclick="onLinkClick(%{#users.value._id})"> Reject </s:a>
> </s:form>-->
> </td>
> <td><s:property value="#users.value._name"/></td>
> <td><s:property value="#users.value._username"/></td>
> <td><s:select name="maxCoord"
> headerValue="" headerKey="" list="#session.coordValues"
> size="1" multiple="false" />
> </td>
> </tr>
> <s:hidden name="idUser"/>
> </s:form>
>
> and in my JavaActionClass i have a attribute with the same name as the
> select element :
> private String maxCoord;
> public String accept() {
> print(maxCoord);
> return SUCCESS;
> }
> public String getMaxCoord() {
> return maxCoord;
> }
> public void setMaxCoord(String maxCoord) {
> this.maxCoord = maxCoord;
> }
> when i'm printing the maxCoord value, i only obtanins the correct value if i
> select the first form in my jsp class... if i chose any of the other i get
> an empty string.
> Can you halp me with this please ?
> Thanks

Attachment:
user_187200.ezm (zipped)
Actually session.coordValues has a list with numbers from 1 to 10, and this
is correct...
The thing is that it takes maxCoord as an array. And it returns only the
first element, which means the value in the first select of the list of
records.
I've tried creating only one form for all the records and what i obtains in
my maxCoord is a list with the values for each record.
Laurie Harper wrote:
>
> The most likely explanation would be that your option values collection
> (session.coordValues) has empty or inconsistent key values. Check that
> it contains what you think it does.
>
> L.
>
> piltrafeta wrote:
>> Hi ,
>> i have a jsp with some forms like this :
>> <s:form action="acceptUser" method="post">
>> <tr>
>> <td>
>> <s:a href="#" onclick="accept(%{#users.value._id})"> Accept </s:a>
>> </td>
>> <td><s:url id="url" action="rejectUser" includeParams="none" >
>> <s:param name="idUser" value="%{#users.value._id}" />
>> </s:url>
>> <s:a href="%{url}"> Reject </s:a>
>> <!--<s:form action="rejectUser" method="post">
>> <s:a href="#" onclick="onLinkClick(%{#users.value._id})"> Reject </s:a>
>> </s:form>-->
>> </td>
>> <td><s:property value="#users.value._name"/></td>
>> <td><s:property value="#users.value._username"/></td>
>> <td><s:select name="maxCoord"
>> headerValue="" headerKey="" list="#session.coordValues"
>> size="1" multiple="false" />
>> </td>
>> </tr>
>> <s:hidden name="idUser"/>
>> </s:form>
>>
>> and in my JavaActionClass i have a attribute with the same name as the
>> select element :
>> private String maxCoord;
>> public String accept() {
>> print(maxCoord);
>> return SUCCESS;
>> }
>> public String getMaxCoord() {
>> return maxCoord;
>> }
>> public void setMaxCoord(String maxCoord) {
>> this.maxCoord = maxCoord;
>> }
>> when i'm printing the maxCoord value, i only obtanins the correct value
>> if i
>> select the first form in my jsp class... if i chose any of the other i
>> get
>> an empty string.
>> Can you halp me with this please ?
>> Thanks
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_187206.ezm (zipped)
Try changing this line,
<s:select name="maxCoord" .../>
to
<s:select key="maxCoord" .../>
then, your variable(maxCoord) will hold the selected value from the list
box.
piltrafeta wrote:
>
> Actually session.coordValues has a list with numbers from 1 to 10, and
> this is correct...
> The thing is that it takes maxCoord as an array. And it returns only the
> first element, which means the value in the first select of the list of
> records.
>
> I've tried creating only one form for all the records and what i obtains
> in my maxCoord is a list with the values for each record.
>
>
>
> Laurie Harper wrote:
>>
>> The most likely explanation would be that your option values collection
>> (session.coordValues) has empty or inconsistent key values. Check that
>> it contains what you think it does.
>>
>> L.
>>
>> piltrafeta wrote:
>>> Hi ,
>>> i have a jsp with some forms like this :
>>> <s:form action="acceptUser" method="post">
>>> <tr>
>>> <td>
>>> <s:a href="#" onclick="accept(%{#users.value._id})"> Accept </s:a>
>>> </td>
>>> <td><s:url id="url" action="rejectUser" includeParams="none" >
>>> <s:param name="idUser" value="%{#users.value._id}" />
>>> </s:url>
>>> <s:a href="%{url}"> Reject </s:a>
>>> <!--<s:form action="rejectUser" method="post">
>>> <s:a href="#" onclick="onLinkClick(%{#users.value._id})"> Reject </s:a>
>>> </s:form>-->
>>> </td>
>>> <td><s:property value="#users.value._name"/></td>
>>> <td><s:property value="#users.value._username"/></td>
>>> <td><s:select name="maxCoord"
>>> headerValue="" headerKey="" list="#session.coordValues"
>>> size="1" multiple="false" />
>>> </td>
>>> </tr>
>>> <s:hidden name="idUser"/>
>>> </s:form>
>>>
>>> and in my JavaActionClass i have a attribute with the same name as the
>>> select element :
>>> private String maxCoord;
>>> public String accept() {
>>> print(maxCoord);
>>> return SUCCESS;
>>> }
>>> public String getMaxCoord() {
>>> return maxCoord;
>>> }
>>> public void setMaxCoord(String maxCoord) {
>>> this.maxCoord = maxCoord;
>>> }
>>> when i'm printing the maxCoord value, i only obtanins the correct value
>>> if i
>>> select the first form in my jsp class... if i chose any of the other i
>>> get
>>> an empty string.
>>> Can you halp me with this please ?
>>> Thanks
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_187196.ezm (zipped)Márcio Gurgel wrote:
> Hi all!
>
> I'm using struts 2 + hibernate.
> I've a strange problem, if someone could give me a hand I'll be so tankfull..
>
> If I persist a object in my app every things go well and all relationchips
> are stored correctey correctly.
> The problem occours when I update this object... After the update all data
> are stored correctly too, but the problem is that my page shows the old
> object (different from database).
>
> This could be some kind of cash from struts 2? Or my problem is just
> hibernate?
>
> I tryed this methods to force a refresh after bring the object from database
> session.refresh(obj)
> session.flush()
I can tell you that Struts doesn't cache your data anywhere for you. You
may be storing a reference in the session or some other web-tier scope,
holding it in a static field or otherwise keeping a stale reference
somewhere. Or you may be seeing client-side page caching or even
mis-configured caching at the Hibernate or database level.
You'll need to trace through your data access paths to determine at what
point you're picking up the stale reference, and then figure out where
that's coming from.
L.

Attachment:
user_187197.ezm (zipped)Anet wrote:
> Hi
> I have a problem with "security-constraint" in tomcat 5.5. I use struts 1.2.
> when we used tomcat 4.1.29, there were no problem with pages needed login.
> with tomcat 5.5.17, I had to put role-names into my web.xml file to solve login problem.
> But now I have another problem.
> I have a form... needs login to be accessed.
> the user logins successfully.the form is shown to him.
> (in the code, saveToken() called )
> now he fills the form,but leaves his work,=>his session expired...
> the user comes back.puts the submit button and redirects to login page.
> he logins...and the process of submit should be done.
> (in the code, isTokenValid(Request) called and returns false....)
> it is expected to continue the process...
> I didn't have this problem while using tomcat 4.1 .
> Would you mind help me for it? I have no idea...
If I understand you correctly, you are using container managed security
and seeing an inconsistency in behaviour between Tomcat 4.1.29 and
5.5.17. Struts is not involved in CMS processing in any way, so I would
suspect a Tomcat and/or configuration problem.
Does it work as you expect if you take out the saveToken / isTokenValid
stuff? If that fixes the problem, there may be Struts-related issue
here. Otherwise, you should probably pursue this on the Tomcat forums.
L.

Attachment:
user_187198.ezm (zipped)(¯`·.k ! k !.·´¯) wrote:
> hi .. i m new to Struts and using struts 1.2.9
You might want to look at upgrading from 1.2.9 (which is beta) to 1.3.9,
which is a GA release.
> i have a messges in messege-resource.properties and i want to show that in a tag attribute value how i can do that ???
>
> <html:submit value="here i wnt the messge"/>
>
> i know that <bean:message key="key.name"/> but this doesnt works inside the attribute ...
>
> (tag inside tag) ...
>
> so how to do that ???
One possibility:
<bean:define id="msg"><bean:message key="key.name"/></bean:define>
<s:submit value="${msg}" ...
L.
PS, please fix your mail client to send plain-text messages

Attachment:
user_187201.ezm (zipped)Many view Apache Maven in the context of other build tools such as
Apache Ant and Apache Ivy, yet Maven's functionalities extend far
beyond the efficient, enterprise-class project build. When coupled
with supporting tools like Nexus and m2eclipse, Maven starts to
accelerate development by reducing the level of work required to
support build management and cross-department collaboration.
In this talk, Jason van Zyl, founder of Sonatype and creator of
Maven's Central Repository, will present a constellation of
open-source software which can be used to extend Maven's capabilities,
from next-generation Eclipse support provided by m2eclipse to the
Nexus Repository manager and continuous integration servers which
offer Maven support. Jason will also introduce some of the more
unexpected uses of Maven to support development with Flex and to
support the publishing industry.
Please RSVP for this free talk in advance here:
http://sv-web-jug-6.eventbrite.com/
The full meeting announcement is here:
https://sv-web-jug.dev.java.net/servlets/NewsItemView?newsItemID=6053
That's All Folks, Van
--
| Michael "Van" Riper
| http://weblogs.java.net/blog/van_riper/
| http://www.linkedin.com/in/vanriper
----
| Silicon Valley Web Developer JUG
| mailto:van_riper@(protected)
| https://sv-web-jug.dev.java.net
----
| Silicon Valley Google Technology User Group
| mailto:van.gtug@(protected)
| http://sv-gtug.org

Attachment:
user_187203.ezm (zipped)
Hi,
it didn't work for me.
But the following works for a similar sample (affectMap is a Treemap) :
<s:iterator value="affectMap" status="status">
<s:textfield name="affectMap[%{#status.index}]"
value="%{value}" label="%{key}" labelposition="left" />
</s:iterator>
Volker Karlmeier wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> maybe you mean this:
>
> <s:form method="post" action="presidentThemes">
> <s:iterator value="themes" status="status">
> <s:textfield name="themes(#status.index).value" value="%{value}"
> />
> </s:iterator>
>
> Volker
>
> thinair schrieb:
> | My Problem is the following :
> | 1. When I trie to use the getThemes after the user post the submit
> button, I
> | have got a null exception value ? So I suspect the texfield name="...
> to be
> | uncorrect ?
> |
> | My code is the following :
> |
> | <s:form method="post" action="presidentThemes">
> | <s:iterator value="themes" id="id">
> | <s:textfield name="themes(%{id}).value" value="%{value}" />
> | <!-- code is converted to (in real html)
> | <input type="text" name="themes(1=Un petit theme).value" value="Un
> petit
> | theme" id="presidentThemes_themes(1=Un petit theme)_value"/>
> | -->
> | </s:iterator>
> |
> | <s:submit name="submit" label="submit" value="submit" />
> | </s:form>
> |
> | In the java class for the presidentThemes action ->
> |
> | private Map<String, String> themes;
> | public Map<String, String> getThemes() {
> | return themes;
> | }
> |
> | public void setThemes(Map<String, String> themes) {
> | this.themes = themes;
> | }
> |
> | thx in advance,
>
>
> - --
> - -------------------------------
>
> Volker Karlmeier
> Friedrich-Freye-Str. 61
> 45481 Mülheim/Ruhr
>
> Tel. : (+49) 208-7785675
> Mobil: (+49) 176-21056587
> Mail : Volker@(protected)
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (GNU/Linux)
>
> iD4DBQFIQbE0aEMQXBIqssERAu9fAJi+fc8/OUlY64gstblKeOw2l0ocAJ4q/uB7
> 6uk+0SFPTNBxVzG+h76cPw==
> =cFBc
> -----END PGP SIGNATURE-----
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_187204.ezm (zipped)hello,
I spend a lot of time to make a checkbox list work and try the following :
1. <s:iteration + <s:checkbox with a map / and with a list, (IT works well
with texfield !, but not with checkbox), all the code is explain there
2. <s:checkboxlist with a map / list, I didn't put the code , do you have a
working solution ?
For me no solution works!
Could you give me a proper working sample.
My code for <s:iteration + <s:checkbox :
the jsp page :
<s:iterator value="affectMap" status="status">
<s:textfield name="affectMap[%{#status.index}]"
value="%{value}" label="%{key}" labelposition="left" />
</s:iterator>
To load the page I use the following code (the loading works !):
//build the list with key and value
affectMap.put(key, value); //key = String, value = true (string) or false
(string)
+getAffectMap/setAffectMap
To save the result after the user click submit :
int i = affectMap.size(); //size is correct !
Collection test = affectMap.values();
String[] object = null;
for (Iterator iterator = test.iterator(); iterator.hasNext();) {
object = (String[]) iterator.next(); (ERROR HERE)
String s = object[0];
System.out.println(s);
}
In case I use a texfield, it works !
But in case of a checkbox, I have got at saving an error of type :
java.lang.String cannot be cast to [Ljava.lang.String;
If I change the String[] to String. The error is the opposite :
[Ljava.lang.String; cannot be cast to
java.lang.StringCould you help me ?
thanks in advance,
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_187207.ezm (zipped)hi,
when opening http://localhost:8080/myApplication/ on my local Jetty
server instead of showing the action defined in the welcomefilelist of
my web.xml I'm asked to download a file from type application/octet-stream.
it works on the tomcat internet server. does anybody know how to solve
this locally?
thanks in advance,
Stefan

Attachment:
user_187208.ezm (zipped)-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello all,
is it possible to design a list with an s:select-tag that conaints
images ?
I want to offer a list of available langauges with a flag, but how can
I realize it ?
any suggestions ?
Volker
Stetze2008 schrieb:
> hi,
>
> when opening http://localhost:8080/myApplication/ on my local Jetty
> server instead of showing the action defined in the welcomefilelist
> of my web.xml I'm asked to download a file from type
> application/octet-stream.
> it works on the tomcat internet server. does anybody know how to
> solve this locally?
>
> thanks in advance,
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIRbwUx4KjH6Tk4MMRAuNcAJ9EmrGuUWQp/GPGmZ/s446wk1vBPgCdHDgn
cALnW+RM5LoUaK079Ashq1k=
=VJb6
-----END PGP SIGNATURE-----

Attachment:
user_187209.ezm (zipped)Does anyone know the current state of REST support in Struts 2?
The REST plugin page states "This plugin is only available with Struts
2.1.1 or later" (http://struts.apache.org/2.x/docs/rest-plugin.html)
yet the current GA release notes talk about the RESTful Action Mapper
(http://struts.apache.org/2.0.11/docs/restfulactionmapper.html).
Is the 2.0.11 REST support implemented some other way or does it in
fact include the REST plugin?
Mike