Author Login
Post Reply
user Digest 18 Jun 2008 14:52:54 -0000 Issue 8096
Topics (messages 187739 through 187768):
Re: RestActionMapper
187739 by: Dave Newton
187743 by: stanlick
187746 by: Dave Newton
187748 by: Wes Wannemacher
Re: populate combo after comparing bean values with enum
187740 by: Laurie Harper
187742 by: mfirry
Re: struts 1 ajax integration
187741 by: Laurie Harper
187747 by: Frank W. Zammetti
187751 by: Daniel
187766 by: Lalchandra Rampersaud
Re: struts2 and JSON integration problem (plugin)
187744 by: Karr, David
187745 by: Musachy Barroso
187767 by: xianwinwin
Re: datepicker tag problem
187749 by: xaero
Re: REST plugin URL syntax
187750 by: dusty
187753 by: Jeromy Evans
Re: s:a and result in new window
187752 by: Paranoid_Fabio
187754 by: Laurie Harper
187755 by: Paranoid_Fabio
Notify topics in struts2.1.2
187756 by: Jan Froehlich
187758 by: Musachy Barroso
187762 by: Jan Froehlich
187765 by: Musachy Barroso
187768 by: Jan Froehlich
Re: Questions on action chaining and validation in struts2 - please help
187757 by: wild_oscar
expressions in s:a tag attributes
187759 by: James Neff
187763 by: Lukasz Lenart
187764 by: James Neff
Re: default result name other than SUCCESS?
187760 by: Gabriel Belingueres
187761 by: Adam Hardy
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_187739.ezm (zipped)--- On Tue, 6/17/08, stanlick <stanlick@(protected):
> How does this action mapper make its way into the runtime configuration?
In the plugin XML file via bean and constant configs:
<bean name="rest"
type="org.apache.struts2.dispatcher.mapper.ActionMapper"
class="org.apache.struts2.rest.RestActionMapper" />
and
<constant name="struts.mapper.class" value="rest" />
Dave

Attachment:
user_187743.ezm (zipped)
That's what I expected to find but instead found this:
<struts>
<bean type="com.opensymphony.xwork2.UnknownHandler"
class="org.apache.struts2.codebehind.CodebehindUnknownHandler" />
<bean type="com.opensymphony.xwork2.config.PackageProvider"
name="codebehind" class="org.apache.struts2.config.ClasspathPackageProvider"
/>
<constant name="struts.codebehind.pathPrefix" value="/"/>
<constant name="struts.codebehind.defaultPackage"
value="codebehind-default"/>
<constant name="struts.mapper.alwaysSelectFullNamespace" value="true" />
<package name="codebehind-default" extends="struts-default">
</package>
</struts>
Are you looking at the source in
/struts-2.1.2/src/plugins/rest/src/main/java?
newton.dave wrote:
>
> --- On Tue, 6/17/08, stanlick <stanlick@(protected):
>> How does this action mapper make its way into the runtime configuration?
>
> In the plugin XML file via bean and constant configs:
>
> <bean name="rest"
> type="org.apache.struts2.dispatcher.mapper.ActionMapper"
> class="org.apache.struts2.rest.RestActionMapper" />
>
> and
>
> <constant name="struts.mapper.class" value="rest" />
>
> Dave
>
>
> ---------------------------------------------------------------------
> 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_187746.ezm (zipped)--- On Tue, 6/17/08, stanlick <stanlick@(protected):
> Are you looking at the source in
> /struts-2.1.2/src/plugins/rest/src/main/java?
No, I had been looking in trunk.
S2.1.2, however, doesn't differ from trunk w.r.t. the action mapper (see appended diff). The config file wouldn't be in the Java directory, either; config files are in the resource directory--not sure what you're looking at.
Dave
-- Diff of S2.1.2 v. trunk REST plugin config file
~/s2/svn $ diff -w trunk/plugins/rest/src/main/resources/struts-plugin.xml STRUTS_2_1_2/plugins/rest/src/main/resources/struts-plugin.xml
4c4
< * $Id: struts-plugin.xml 663605 2008-06-05 13:31:01Z musachy $
---
> * $Id: struts-plugin.xml 651946 2008-04-27 13:41:38Z apetrelli $
32a33,34
> <bean type="com.opensymphony.xwork2.config.PackageProvider" name="rest" class="org.apache.struts2.rest.ControllerClasspathPackageProvider" />
>
45,48c47,48
< <!-- Overwrite Codebehind -->
< <constant name="struts.codebehind.classSuffix" value="Controller"/>
< <constant name="struts.codebehind.action.checkImplementsAction" value="false"/>
< <constant name="struts.codebehind.action.checkAnnotation" value="false"/>
---
> <!-- Disable the scanning by the codebehind plugin to prevent duplicates -->
> <constant name="struts.configuration.classpath.disableActionScanning" value="true" />
49a50
> <constant name="struts.configuration.rest.disableControllerScanning" value="false" />

Attachment:
user_187748.ezm (zipped)Scott,
The CodebehindUnknownHandler sort of does the work of the action mapper.
Think of it this way, instead of throwing a 404, the request is handled
by CodebehindUnknownHandler which will find the action/result using it's
own semantics. This allows regular struts.xml configuration at the same
time as Codebehind conventions.
-Wes
On Tue, 2008-06-17 at 14:08 -0700, stanlick wrote:
> That's what I expected to find but instead found this:
>
> <struts>
> <bean type="com.opensymphony.xwork2.UnknownHandler"
> class="org.apache.struts2.codebehind.CodebehindUnknownHandler" />
> <bean type="com.opensymphony.xwork2.config.PackageProvider"
> name="codebehind" class="org.apache.struts2.config.ClasspathPackageProvider"
> />
>
> <constant name="struts.codebehind.pathPrefix" value="/"/>
> <constant name="struts.codebehind.defaultPackage"
> value="codebehind-default"/>
> <constant name="struts.mapper.alwaysSelectFullNamespace" value="true" />
>
> <package name="codebehind-default" extends="struts-default">
> </package>
> </struts>
>
> Are you looking at the source in
> /struts-2.1.2/src/plugins/rest/src/main/java?
>
>
>
>
> newton.dave wrote:
> >
> > --- On Tue, 6/17/08, stanlick <stanlick@(protected):
> >> How does this action mapper make its way into the runtime configuration?
> >
> > In the plugin XML file via bean and constant configs:
> >
> > <bean name="rest"
> > type="org.apache.struts2.dispatcher.mapper.ActionMapper"
> > class="org.apache.struts2.rest.RestActionMapper" />
> >
> > and
> >
> > <constant name="struts.mapper.class" value="rest" />
> >
> > Dave
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
> >
>

Attachment:
user_187740.ezm (zipped)mfirry wrote:
> hi,
> i need to populate my combo with options taken from the FormBean and
> compared with the Enum values.
>
> i have it working but i doubt it's the best way to do it (and it mixes too
> much struts tags with jstl ones, in my opinion)
>
> anybody can help?
>
>
> <%@(protected)
> used further down %>
>
> <%! String val; %>
> <html:form action="/full_profiloGiocoRespAutoesclusione">
> <label>WANT TO DO THIS?</label>
> <% String d2 = "session"; %>
> <logic:notEmpty name="MyFormBean" property="duration">
> <bean:define id="d1" name="MyFormBean" property="duration"/>
> <% d2 = d1.toString();%>
> </logic:notEmpty>
> <fieldset>
> <label for="question">Choose duration</label>
> <html:select property="duration" name="MyFormBean">
> <%
> QuestionValues value;
> String d = "session";
> if (d2 != null) {
> d = d2;
> }
> if ("day".equals(d)) {
> value = QuestionValues.day;
> }
> else if ("week".equals(d)) {
> value = QuestionValues.week;
> } else {
> value = QuestionValues.session;
> }
> for (QuestionValues v : QuestionValues.values()) {
> if (v.compareTo(value) >= 0) {
> val = (String) (v.getLabel());
> %>
> <html:option value='<%=val%>'><%=val%></html:option>
> <% }
> }
> %>
> </html:select>
> </fieldset>
> </html:form>
With all those scriptlets, mixing of taglib and RT expression values,
and the relevant Java code not included, it's a little difficult to see
exactly what you're attempting.
I'm assuming MyFormBean.duration's type is a custom enumeration with
with a getLabel() method, and that you want to use the label associated
with each enum value as both the label and value of the select options?
but you're using the enum value directly in the html:select?
It looks like it would be a lot cleaner and easier to handle the
conversion to and from enum values in your action, and let the form bean
and JSP deal with a simple list of Strings.
L.

Attachment:
user_187742.ezm (zipped)
hi, and thanks for your help
With all those scriptlets, mixing of taglib and RT expression values,
and the relevant Java code not included, it's a little difficult to see
exactly what you're attempting.
i'm just trying to get the duration from the FormBean, compare it with the
other possible values from the Enum type and show only certain values as
options of the combo
I'm assuming MyFormBean.duration's type is a custom enumeration with
with a getLabel() method, and that you want to use the label associated
with each enum value as both the label and value of the select options?
but you're using the enum value directly in the html:select?
It looks like it would be a lot cleaner and easier to handle the
conversion to and from enum values in your action, and let the form bean
and JSP deal with a simple list of Strings.
how?
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_187741.ezm (zipped)Daniel wrote:
> Hello,
>
> Are there any good options to integrate ajax with struts 1? I woul like
> something based o tags. My problem is that i have an upload form
>
> <html:form action="/something" enctype="multipart/form-data"
> styleId="somethingId">.....
> and the input files are like :
>
> <html:file property="image1" styleId="image1"/>
>
> The values are mapped on the form, private FileForm image1; ......
>
> Now, i whant to submit this form with ajax, and to react like it was a
> normal struts submit. To populate form values, s.o.
>
> Is there something that ca do what i need? Any library?
Any Ajax library will let you accomplish that pretty easily, but you
said 'something based on tags,' so I assume you are looking for a JSP
tag library rather than a Javascript library?
I haven't used it, but maybe Java Web Parts [1] or Ajax Tags [2] would
have what you need? Or try googling for suggestions:
http://www.google.com/search?q=%27Struts+1%27+Ajax+taglib
[1] http://javawebparts.sourceforge.net/
[2] http://struts.sourceforge.net/ajaxtags/index.html
L.

Attachment:
user_187747.ezm (zipped)FYI, AjaxTags hasn't been supported or developed in a couple of years
(the AjaxTags Laurie refers to here I mean... there's a whole AjaxTags
project separate from this that's still very much alive).
AjaxTags evolved into the AjaxParts Taglib, or APT for short, which is a
component of Java Web Parts (JWP), as Laurie mentioned. If you (or
anyone else) goes down this path I STRONGLY suggest NOT using AjaxTags
at struts.sourceforge.net because it won't be supported (by me as the
original author at least... others may decide to).
APT on the other hand is 100% supported, has a decent community (not the
largest, but quite helpful and I'm proud to say, from all evidence,
quite happy with the product) and is still actively being developed
(although the pace has definitely slowed of late). Also note that it is
completely framework-agnostic (use it with S1, S2, or virtually any
other JSP-based framework) and is immensely more powerful and flexiible
than AjaxTags ever was.
Frank
--
Frank W. Zammetti
Author of "Practical DWR 2 Projects"
and "Practical JavaScript, DOM Scripting and Ajax Projects"
and "Practical Ajax Projects With Java Technology"
for info: apress.com/book/search?searchterm=zammetti&act=search
Java Web Parts - javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!
My "look ma, I have a blog too!" blog: zammetti.com/blog
Laurie Harper wrote:
> Daniel wrote:
>> Hello,
>>
>> Are there any good options to integrate ajax with struts 1? I woul like
>> something based o tags. My problem is that i have an upload form
>>
>> <html:form action="/something" enctype="multipart/form-data"
>> styleId="somethingId">.....
>> and the input files are like :
>>
>> <html:file property="image1" styleId="image1"/>
>>
>> The values are mapped on the form, private FileForm image1; ......
>>
>> Now, i whant to submit this form with ajax, and to react like it was a
>> normal struts submit. To populate form values, s.o.
>>
>> Is there something that ca do what i need? Any library?
>
> Any Ajax library will let you accomplish that pretty easily, but you
> said 'something based on tags,' so I assume you are looking for a JSP
> tag library rather than a Javascript library?
>
> I haven't used it, but maybe Java Web Parts [1] or Ajax Tags [2] would
> have what you need? Or try googling for suggestions:
>
> http://www.google.com/search?q=%27Struts+1%27+Ajax+taglib
>
> [1] http://javawebparts.sourceforge.net/
> [2] http://struts.sourceforge.net/ajaxtags/index.html
>
> L.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_187751.ezm (zipped)I saw ajaxparts, i have tried to use it, but when i have put a button in the
page, according to their tutorial, nothing happened. Not even a javascript
error. Other fmw, not necessarily based on tags that can be integrated in
struts 1, are any? I think that dojo can be integrated, but it is
imperatively that when i make an submit, the submit to be processed trough
struts mechanism, because i need to ma the request to the form.
Thank you in advanced.
On Wed, Jun 18, 2008 at 2:41 AM, Frank W. Zammetti <fzlists@(protected)>
wrote:
> FYI, AjaxTags hasn't been supported or developed in a couple of years (the
> AjaxTags Laurie refers to here I mean... there's a whole AjaxTags project
> separate from this that's still very much alive).
>
> AjaxTags evolved into the AjaxParts Taglib, or APT for short, which is a
> component of Java Web Parts (JWP), as Laurie mentioned. If you (or anyone
> else) goes down this path I STRONGLY suggest NOT using AjaxTags at
> struts.sourceforge.net because it won't be supported (by me as the
> original author at least... others may decide to).
>
> APT on the other hand is 100% supported, has a decent community (not the
> largest, but quite helpful and I'm proud to say, from all evidence, quite
> happy with the product) and is still actively being developed (although the
> pace has definitely slowed of late). Also note that it is completely
> framework-agnostic (use it with S1, S2, or virtually any other JSP-based
> framework) and is immensely more powerful and flexiible than AjaxTags ever
> was.
>
> Frank
>
> --
> Frank W. Zammetti
> Author of "Practical DWR 2 Projects"
> and "Practical JavaScript, DOM Scripting and Ajax Projects"
> and "Practical Ajax Projects With Java Technology"
> for info: apress.com/book/search?searchterm=zammetti&act=search
> Java Web Parts - javawebparts.sourceforge.net
> Supplying the wheel, so you don't have to reinvent it!
> My "look ma, I have a blog too!" blog: zammetti.com/blog
>
>
>
> Laurie Harper wrote:
>
>> Daniel wrote:
>>
>>> Hello,
>>>
>>> Are there any good options to integrate ajax with struts 1? I woul like
>>> something based o tags. My problem is that i have an upload form
>>>
>>> <html:form action="/something" enctype="multipart/form-data"
>>> styleId="somethingId">.....
>>> and the input files are like :
>>>
>>> <html:file property="image1" styleId="image1"/>
>>>
>>> The values are mapped on the form, private FileForm image1; ......
>>>
>>> Now, i whant to submit this form with ajax, and to react like it was a
>>> normal struts submit. To populate form values, s.o.
>>>
>>> Is there something that ca do what i need? Any library?
>>>
>>
>> Any Ajax library will let you accomplish that pretty easily, but you said
>> 'something based on tags,' so I assume you are looking for a JSP tag library
>> rather than a Javascript library?
>>
>> I haven't used it, but maybe Java Web Parts [1] or Ajax Tags [2] would
>> have what you need? Or try googling for suggestions:
>>
>> http://www.google.com/search?q=%27Struts+1%27+Ajax+taglib
>>
>> [1] http://javawebparts.sourceforge.net/
>> [2] http://struts.sourceforge.net/ajaxtags/index.html
>>
>> L.
>>
>>
>> ---------------------------------------------------------------------
>> 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_187766.ezm (zipped)i have used AjaxAnywhere without an problems in order to update my page according to zones.
Saludos
Lalchandra Rampersaud
------------
Carpe diem
----- Original Message -----
From: "Daniel" <pdaniel2005@(protected)>
To: "Struts Users Mailing List" <user@(protected)>
Sent: Tuesday, June 17, 2008 11:55 PM
Subject: Re: struts 1 ajax integration
>I saw ajaxparts, i have tried to use it, but when i have put a button in the
> page, according to their tutorial, nothing happened. Not even a javascript
> error. Other fmw, not necessarily based on tags that can be integrated in
> struts 1, are any? I think that dojo can be integrated, but it is
> imperatively that when i make an submit, the submit to be processed trough
> struts mechanism, because i need to ma the request to the form.
>
> Thank you in advanced.
>
> On Wed, Jun 18, 2008 at 2:41 AM, Frank W. Zammetti <fzlists@(protected)>
> wrote:
>
>> FYI, AjaxTags hasn't been supported or developed in a couple of years (the
>> AjaxTags Laurie refers to here I mean... there's a whole AjaxTags project
>> separate from this that's still very much alive).
>>
>> AjaxTags evolved into the AjaxParts Taglib, or APT for short, which is a
>> component of Java Web Parts (JWP), as Laurie mentioned. If you (or anyone
>> else) goes down this path I STRONGLY suggest NOT using AjaxTags at
>> struts.sourceforge.net because it won't be supported (by me as the
>> original author at least... others may decide to).
>>
>> APT on the other hand is 100% supported, has a decent community (not the
>> largest, but quite helpful and I'm proud to say, from all evidence, quite
>> happy with the product) and is still actively being developed (although the
>> pace has definitely slowed of late). Also note that it is completely
>> framework-agnostic (use it with S1, S2, or virtually any other JSP-based
>> framework) and is immensely more powerful and flexiible than AjaxTags ever
>> was.
>>
>> Frank
>>
>> --
>> Frank W. Zammetti
>> Author of "Practical DWR 2 Projects"
>> and "Practical JavaScript, DOM Scripting and Ajax Projects"
>> and "Practical Ajax Projects With Java Technology"
>> for info: apress.com/book/search?searchterm=zammetti&act=search
>> Java Web Parts - javawebparts.sourceforge.net
>> Supplying the wheel, so you don't have to reinvent it!
>> My "look ma, I have a blog too!" blog: zammetti.com/blog
>>
>>
>>
>> Laurie Harper wrote:
>>
>>> Daniel wrote:
>>>
>>>> Hello,
>>>>
>>>> Are there any good options to integrate ajax with struts 1? I woul like
>>>> something based o tags. My problem is that i have an upload form
>>>>
>>>> <html:form action="/something" enctype="multipart/form-data"
>>>> styleId="somethingId">.....
>>>> and the input files are like :
>>>>
>>>> <html:file property="image1" styleId="image1"/>
>>>>
>>>> The values are mapped on the form, private FileForm image1; ......
>>>>
>>>> Now, i whant to submit this form with ajax, and to react like it was a
>>>> normal struts submit. To populate form values, s.o.
>>>>
>>>> Is there something that ca do what i need? Any library?
>>>>
>>>
>>> Any Ajax library will let you accomplish that pretty easily, but you said
>>> 'something based on tags,' so I assume you are looking for a JSP tag library
>>> rather than a Javascript library?
>>>
>>> I haven't used it, but maybe Java Web Parts [1] or Ajax Tags [2] would
>>> have what you need? Or try googling for suggestions:
>>>
>>> http://www.google.com/search?q=%27Struts+1%27+Ajax+taglib
>>>
>>> [1] http://javawebparts.sourceforge.net/
>>> [2] http://struts.sourceforge.net/ajaxtags/index.html
>>>
>>> L.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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_187744.ezm (zipped)> -----Original Message-----
> From: xianwinwin [mailto:xianwinwin@(protected)]
> Sent: Tuesday, June 17, 2008 11:38 AM
> To: user@(protected)
> Subject: RE: struts2 and JSON integration problem (plugin)
>
>
> 1. How did you add the reference in eclipse? Make sure it is
> listed in the J2EE Module dependencies.
>
> After placing the JAR I right clicked on the
> project-->Properties-->Java Build Path-->Libraries-->Add
> External JAR--> jsonplugin-0.30.jar
To be sure, do an Export of the WAR file and verify the jar file is in
WEB-INF/lib.
> 2. Is your URL right? Is the request being made? Is there
> return data on the wire?
>
> yes, it is, the action works (called) by the autocompleter if
> I change the extends from 'json-default' to 'Struts-default'
That's not really what he's asking. He's asking if the request is being
made NOW, with the app in the current state. I assume you're using
Firebug. If you're not, fix that. You can see from that whether it
made the request or not, and what data was sent, not to mention any
response that was sent back.

Attachment:
user_187745.ezm (zipped)On Tue, Jun 17, 2008 at 2:38 PM, xianwinwin <xianwinwin@(protected):
>
> 1. How did you add the reference in eclipse? Make sure it is listed in
> the J2EE Module dependencies.
>
> After placing the JAR I right clicked on the project-->Properties-->Java
> Build Path-->Libraries-->Add External JAR--> jsonplugin-0.30.jar
>
So it is not in the J2EE modeule dependencies. Right-click your
project, and click in "J2EE Module Dependencies" and make sure the
json plugin jar is selected.
musachy

Attachment:
user_187767.ezm (zipped)
mmm, this is interesting, I get a dialog box and it says:
The currently displayed page contains invalid values.
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_187749.ezm (zipped)
though the datepicker tag is still giving me problems but thanks for the help
i m not getting that exception any more rest i'll try to figure it out
myself and thanks for telling that there is a difference between <foo></foo>
and <foo/> i didn't knew it earlier will keep this in mind in future. thanks
for help
newton.dave wrote:
>
> --- On Tue, 6/17/08, xaero <xaero.26@(protected):
>> I am sorry i forgot to mention that i want to use datepicker
>> tag and without ajax theme i don't think i can use it..anyways
>> thanks for reply
>
>> newton.dave wrote:
>>> <s:head theme="ajax" calendarcss="calender-green" debug="true"/>
>
> Are you seeing the difference between what you had and the above?
>
> <foo></foo> is different than <foo/>, in that <foo></foo> will create an
> empty text mode. An "empty tag" isn't a tag with no attributes, it's a tag
> with no body.
>
> Dave
>
>
> ---------------------------------------------------------------------
> 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_187750.ezm (zipped)
Folks, this type of nested resource is how a Rails REST url work and its
awesome. So easy to configure and so easy to use with things like
link_to :chapter_path(@(protected))
That will make the /book/book.getId()/chapter/chapter.getId() url. There
is no doubt that providing nested resources would make the REST
implementation in Struts2 better.
You are looking at the url from right to left. The first resource has a
parameter of id, and then for each level up the tree you get object_id for
the parameter.
So if I post a get for /book/1/section/2/chapter/12 I would get the
following parameters sent to the ChapterContoller: (id = 12, section_id = 2,
book_id = 1).
In apps with a REST design I only really need to know the parent in the url
when I am creating a child. So to use the book example,
(/chapters/new?parent_id=1). Once my chapter is created it is forever
connected to the book with id 1. After I create a chapter I can reference
it directly by its id (/chapter/22) and if I want the book I can do a
chapter.getBook() once I look up the chapter in the controller. I don't
really have many situations where something doesn't have a unique id and has
to be looked up with a combo of parent_id and child
number?position?whatever?
I don't think its useful to argue about what a "true" RESTful URL looks
like.
Mike Watson-2 wrote:
>
> Hmmm, I haven't come across the Namspace annotation stuff. I'll
> investigate that and see how I get on. If anyone can point me at some
> useful examples of how I might achieve this it'd be greatly
> appreciated.
>
> Thanks again for all the responses...
>
> 2008/6/17 Don Brown <donald.brown@(protected)>:
>> I believe it is technically possible to do this, but not at all
>> intuitive right now. This is probably my number one improvement
>> request for the REST plugin.
>>
>> You should be able change the wildcard mapper to one that recognizes
>> named wildcards then use them in your namespace annotation like this:
>> @Namespace("/book/{bookId}")
>>
>> As I said, it really needs work as this is a huge deficiency in the
>> REST plugin right now, but the reason I haven't just made this easier
>> as I'm toying with the idea of borrowing the URI mapping behavior from
>> Jersey, which I find very intuitive, if a bit un-Struts/xwork-like.
>>
>> Don
>>
>> On Tue, Jun 17, 2008 at 9:10 AM, Mike Watson <michael.f.watson@(protected)>
>> wrote:
>>> Well that'd be nice but I'm really struggling to get it to behave the
>>> way I want. Any thoughts on how I might do this?
>>>
>>> 2008/6/17 Dave Newton <newton.dave@(protected)>:
>>>> --- On Mon, 6/16/08, Mike Watson <michael.f.watson@(protected):
>>>>> Can anybody suggest where I would start in an attempt to
>>>>> implement this hierarchical model?
>>>>
>>>> The existing REST plugin?
>>>>
>>>> Just an idea.
>>>>
>>>> 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)
>>
>>
>
> ---------------------------------------------------------------------
> 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_187753.ezm (zipped)Don Brown wrote:
> I believe it is technically possible to do this, but not at all
> intuitive right now. This is probably my number one improvement
> request for the REST plugin.
>
> You should be able change the wildcard mapper to one that recognizes
> named wildcards then use them in your namespace annotation like this:
> @Namespace("/book/{bookId}")
>
>
> Don
>
Yeah, I use this feature heavily to support URIs matching Mike's
requirement.
in struts.xml
<bean type="com.opensymphony.xwork2.util.PatternMatcher"
name="namedVariablePatternMatcher"
class="com.opensymphony.xwork2.util.NamedVariablePatternMatcher"/>
in *actions.*.ChapterContoller.java
@Namespace("/book/{bookId}")
public class ChapterController implements ModelDriven<Chapter> {
private void setBookId(Long id) {...}
private void setId(Long id) { ..}
private Chapter getModel() {...}
public HttpHeaders show() {
model = bookService.lookupChapter(bookid, id);
if (model != null) {
return new DefaultHttpHeaders("show");
} else {
return new DefaultHttpHeaders("error");
}
}
public HttpHeaders index() {...}
}
and
in *actions.BookContoller.java
@Namespace("/")
public class BookController implements ModelDriven<Book> { }
regards,
Jeromy Evans

Attachment:
user_187752.ezm (zipped)
Thank you for the reply.
I tried your solution and the action is invoked..the problem is that,using
the standard html anchor, the parameters are not passed to my action.
Paranoid_Fabio wrote:
>
> Hello. What I want to do is a very simple thing, but I can't find a
> solution.
> I call an action from a jsp page, and I want to display the resulting jsp
> page in a new browser window.
> I've already read about target="_blank", target="_new" etc... but I can't
> use them because I can't use the simple html anchor.
> In fact, I know I can do things like:
>
>
>
> a href="<s:url action="myAction"/>" target="_blank"
>
> it works, but the problem is that I've to pass some parameters to the
> action. Even if I do:
>
> <s:url id="actionURL" action="myAction" >
> <s:param name="param1"><s:property value="param1"/></s:param>
> <s:param name="param2"><s:property
> value="param2"/></s:param>
> </s:url>
>
> and then:
>
> a href="#" onclick=window.open('${actionURL}') /
>
> it works, but still the parameters are not passed to the action.
> How can I do that? Call my action with all the parameters and display
> result in a new window??
>
> thank you very much
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_187754.ezm (zipped)Did you check the result of s:url? Either the URL was not constructed
correctly (the parameters weren't appended in the query string) or
something went wrong applying the parameters when the request was made.
Determine where it failed, and that will tell you where to focus on
debugging further.
L.
Paranoid_Fabio wrote:
> Thank you for the reply.
> I tried your solution and the action is invoked..the problem is that,using
> the standard html anchor, the parameters are not passed to my action.
>
>
> Paranoid_Fabio wrote:
>> Hello. What I want to do is a very simple thing, but I can't find a
>> solution.
>> I call an action from a jsp page, and I want to display the resulting jsp
>> page in a new browser window.
>> I've already read about target="_blank", target="_new" etc... but I can't
>> use them because I can't use the simple html anchor.
>> In fact, I know I can do things like:
>>
>>
>>
>> a href="<s:url action="myAction"/>" target="_blank"
>>
>> it works, but the problem is that I've to pass some parameters to the
>> action. Even if I do:
>>
>> <s:url id="actionURL" action="myAction" >
>> <s:param name="param1"><s:property value="param1"/></s:param>
>> <s:param name="param2"><s:property
>> value="param2"/></s:param>
>> </s:url>
>>
>> and then:
>>
>> a href="#" onclick=window.open('${actionURL}') /
>>
>> it works, but still the parameters are not passed to the action.
>> How can I do that? Call my action with all the parameters and display
>> result in a new window??
>>
>> thank you very much
>>
>>
>

Attachment:
user_187755.ezm (zipped)
Ok. I will check this..
Anyway, with the s:a struts anchor, the url parameters are correctly
passed.
thank u
Laurie Harper wrote:
>
> Did you check the result of s:url? Either the URL was not constructed
> correctly (the parameters weren't appended in the query string) or
> something went wrong applying the parameters when the request was made.
>
> Determine where it failed, and that will tell you where to focus on
> debugging further.
>
> L.
>
> Paranoid_Fabio wrote:
>> Thank you for the reply.
>> I tried your solution and the action is invoked..the problem is
>> that,using
>> the standard html anchor, the parameters are not passed to my action.
>>
>>
>> Paranoid_Fabio wrote:
>>> Hello. What I want to do is a very simple thing, but I can't find a
>>> solution.
>>> I call an action from a jsp page, and I want to display the resulting
>>> jsp
>>> page in a new browser window.
>>> I've already read about target="_blank", target="_new" etc... but I
>>> can't
>>> use them because I can't use the simple html anchor.
>>> In fact, I know I can do things like:
>>>
>>>
>>>
>>> a href="<s:url action="myAction"/>" target="_blank"
>>>
>>> it works, but the problem is that I've to pass some parameters to the
>>> action. Even if I do:
>>>
>>> <s:url id="actionURL" action="myAction" >
>>> <s:param name="param1"><s:property value="param1"/></s:param>
>>> <s:param name="param2"><s:property
>>> value="param2"/></s:param>
>>> </s:url>
>>>
>>> and then:
>>>
>>> a href="#" onclick=window.open('${actionURL}') /
>>>
>>> it works, but still the parameters are not passed to the action.
>>> How can I do that? Call my action with all the parameters and display
>>> result in a new window??
>>>
>>> thank you very much
>>>
>>>
>>
>
>
> ---------------------------------------------------------------------
> 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_187756.ezm (zipped)Hi,
I need a little hint how I can achieve the following...
Right now I got a page with a <sx:tree ...> where the user can browse
categories. When a node is clicked a <div id="documentList" ...> loads
another page with a listing of documents in that category. (Just like in
the showcase example but with a little more information in the div)
Every document(-link) should notify another topic that forces a third
<div id="documentContent" ..."> in the page to show the content of the
document.
And thats where my problem occurs. In the document list I got the
following link for every document
<sx:a notifyTopics="documentSelected"><s:property value="Name" /></sx:a>
Where should I place the code? In the page where the tree and the divs
are, or in the page that is loaded after selecting a node?
dojo.event.topic.subscribe("documentSelected", function
documentSelected(node) {
alert(node);
});
And maybe more important - I derived the subscribe code from the
nodeSelected example - is it correct that this function has also just
one parameter???
Any help apreciated!
Regards
Jan Froehlich

Attachment:
user_187758.ezm (zipped)I don't think it really matters where you put the code (topic
subscription), but it will be easier to put it in the main page that
has the tree.
musachy
On Wed, Jun 18, 2008 at 5:32 AM, Jan Froehlich
<Jan.Froehlich@(protected):
> Hi,
>
> I need a little hint how I can achieve the following...
> Right now I got a page with a <sx:tree ...> where the user can browse
> categories. When a node is clicked a <div id="documentList" ...> loads
> another page with a listing of documents in that category. (Just like in
> the showcase example but with a little more information in the div)
> Every document(-link) should notify another topic that forces a third
> <div id="documentContent" ..."> in the page to show the content of the
> document.
>
> And thats where my problem occurs. In the document list I got the
> following link for every document
>
> <sx:a notifyTopics="documentSelected"><s:property value="Name" /></sx:a>
>
> Where should I place the code? In the page where the tree and the divs
> are, or in the page that is loaded after selecting a node?
>
> dojo.event.topic.subscribe("documentSelected", function
> documentSelected(node) {
> alert(node);
> });
>
> And maybe more important - I derived the subscribe code from the
> nodeSelected example - is it correct that this function has also just
> one parameter???
>
> Any help apreciated!
>
> Regards
> Jan Froehlich
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_187762.ezm (zipped)Hi Musachy,
thanks for that hint, I tried both, but if you say that it doesn't matter I might have another problem - it worked with neither solution.
Do you think that
<sx:a notifyTopics="documentSelected"><s:property value="Name" /></sx:a>
should be enough to trigger that topic update??
Thanks in advance!
Regards
Jan Froehlich
-----Ursprüngliche Nachricht-----
Von: Musachy Barroso [mailto:musachy@(protected)]
Gesendet: Mittwoch, 18. Juni 2008 15:21
An: Struts Users Mailing List
Betreff: Re: Notify topics in struts2.1.2
I don't think it really matters where you put the code (topic
subscription), but it will be easier to put it in the main page that
has the tree.
musachy
On Wed, Jun 18, 2008 at 5:32 AM, Jan Froehlich
<Jan.Froehlich@(protected):
> Hi,
>
> I need a little hint how I can achieve the following...
> Right now I got a page with a <sx:tree ...> where the user can browse
> categories. When a node is clicked a <div id="documentList" ...> loads
> another page with a listing of documents in that category. (Just like in
> the showcase example but with a little more information in the div)
> Every document(-link) should notify another topic that forces a third
> <div id="documentContent" ..."> in the page to show the content of the
> document.
>
> And thats where my problem occurs. In the document list I got the
> following link for every document
>
> <sx:a notifyTopics="documentSelected"><s:property value="Name" /></sx:a>
>
> Where should I place the code? In the page where the tree and the divs
> are, or in the page that is loaded after selecting a node?
>
> dojo.event.topic.subscribe("documentSelected", function
> documentSelected(node) {
> alert(node);
> });
>
> And maybe more important - I derived the subscribe code from the
> nodeSelected example - is it correct that this function has also just
> one parameter???
>
> Any help apreciated!
>
> Regards
> Jan Froehlich
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

Attachment:
user_187765.ezm (zipped)Well, now I see something I missed before. notifyTopics are triggered
when an "ajax" request is done, which is not the case here (there is
no href), so I think the topics won't be triggered in that case. One
of the many things you can do is:
<a onclick="dojo.event.topic.publish('documentSelected'); return false">....
You are not really taking advantage of the functionality of the <sx:a
tag, so you can use a regular anchor for that part.
musachy
On Wed, Jun 18, 2008 at 9:58 AM, Jan Froehlich
<Jan.Froehlich@(protected):
> Hi Musachy,
>
> thanks for that hint, I tried both, but if you say that it doesn't matter I might have another problem - it worked with neither solution.
>
> Do you think that
> <sx:a notifyTopics="documentSelected"><s:property value="Name" /></sx:a>
> should be enough to trigger that topic update??
>
> Thanks in advance!
> Regards
> Jan Froehlich
>
> -----Ursprüngliche Nachricht-----
> Von: Musachy Barroso [mailto:musachy@(protected)]
> Gesendet: Mittwoch, 18. Juni 2008 15:21
> An: Struts Users Mailing List
> Betreff: Re: Notify topics in struts2.1.2
>
> I don't think it really matters where you put the code (topic
> subscription), but it will be easier to put it in the main page that
> has the tree.
>
> musachy
>
> On Wed, Jun 18, 2008 at 5:32 AM, Jan Froehlich
> <Jan.Froehlich@(protected):
>> Hi,
>>
>> I need a little hint how I can achieve the following...
>> Right now I got a page with a <sx:tree ...> where the user can browse
>> categories. When a node is clicked a <div id="documentList" ...> loads
>> another page with a listing of documents in that category. (Just like in
>> the showcase example but with a little more information in the div)
>> Every document(-link) should notify another topic that forces a third
>> <div id="documentContent" ..."> in the page to show the content of the
>> document.
>>
>> And thats where my problem occurs. In the document list I got the
>> following link for every document
>>
>> <sx:a notifyTopics="documentSelected"><s:property value="Name" /></sx:a>
>>
>> Where should I place the code? In the page where the tree and the divs
>> are, or in the page that is loaded after selecting a node?
>>
>> dojo.event.topic.subscribe("documentSelected", function
>> documentSelected(node) {
>> alert(node);
>> });
>>
>> And maybe more important - I derived the subscribe code from the
>> nodeSelected example - is it correct that this function has also just
>> one parameter???
>>
>> Any help apreciated!
>>
>> Regards
>> Jan Froehlich
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> 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)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_187768.ezm (zipped)Perfect, that solves most of the problems I had.
Thank you!!!
- but one thing is finally left. ;)
When I subscribe to a topic with something like
dojo.event.topic.subscribe("documentSelected", function documentSelected(doc) {
alert(doc);
});
then doc is a object. What kind of object is that, when I notify the topic from a common <a ...> tag?
Kind regards
Jan
-----Ursprüngliche Nachricht-----
Von: Musachy Barroso [mailto:musachy@(protected)]
Gesendet: Mittwoch, 18. Juni 2008 16:26
An: Struts Users Mailing List
Betreff: Re: Notify topics in struts2.1.2
Well, now I see something I missed before. notifyTopics are triggered
when an "ajax" request is done, which is not the case here (there is
no href), so I think the topics won't be triggered in that case. One
of the many things you can do is:
<a onclick="dojo.event.topic.publish('documentSelected'); return false">....
You are not really taking advantage of the functionality of the <sx:a
tag, so you can use a regular anchor for that part.
musachy
On Wed, Jun 18, 2008 at 9:58 AM, Jan Froehlich
<Jan.Froehlich@(protected):
> Hi Musachy,
>
> thanks for that hint, I tried both, but if you say that it doesn't matter I might have another problem - it worked with neither solution.
>
> Do you think that
> <sx:a notifyTopics="documentSelected"><s:property value="Name" /></sx:a>
> should be enough to trigger that topic update??
>
> Thanks in advance!
> Regards
> Jan Froehlich
>
> -----Ursprüngliche Nachricht-----
> Von: Musachy Barroso [mailto:musachy@(protected)]
> Gesendet: Mittwoch, 18. Juni 2008 15:21
> An: Struts Users Mailing List
> Betreff: Re: Notify topics in struts2.1.2
>
> I don't think it really matters where you put the code (topic
> subscription), but it will be easier to put it in the main page that
> has the tree.
>
> musachy
>
> On Wed, Jun 18, 2008 at 5:32 AM, Jan Froehlich
> <Jan.Froehlich@(protected):
>> Hi,
>>
>> I need a little hint how I can achieve the following...
>> Right now I got a page with a <sx:tree ...> where the user can browse
>> categories. When a node is clicked a <div id="documentList" ...> loads
>> another page with a listing of documents in that category. (Just like in
>> the showcase example but with a little more information in the div)
>> Every document(-link) should notify another topic that forces a third
>> <div id="documentContent" ..."> in the page to show the content of the
>> document.
>>
>> And thats where my problem occurs. In the document list I got the
>> following link for every document
>>
>> <sx:a notifyTopics="documentSelected"><s:property value="Name" /></sx:a>
>>
>> Where should I place the code? In the page where the tree and the divs
>> are, or in the page that is loaded after selecting a node?
>>
>> dojo.event.topic.subscribe("documentSelected", function
>> documentSelected(node) {
>> alert(node);
>> });
>>
>> And maybe more important - I derived the subscribe code from the
>> nodeSelected example - is it correct that this function has also just
>> one parameter???
>>
>> Any help apreciated!
>>
>> Regards
>> Jan Froehlich
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> 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)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

Attachment:
user_187757.ezm (zipped)
More than one year later, I have the exact same problem.
If the original poster has found a solution, or if anyone else knows how to
solve this issue, I'd be very glad!
I have tried Action Chaining the result:
@Result(name="input",type=ActionChainResult.class,value="product" ,params=
{"method","getOne"}),
However, Struts will try to find the "input" result of the chained action
(product), and will never reach the method.
aj123 wrote:
>
> Hi
> I am trying to use action chaining in struts2 and am stuck. Any help would
> be really appreciated.
>
> Scenario - I have a page that shows a list of records and also has a form
> to add a new record. When user clicks on add I call addAction and chain it
> to list action to go back to list page again showing the newly added
> record.
>
> My struts.xml looks something like this ->
>
> <action name="add" class="com.test.AddAction">
> <result name="success" type="chain">
> list
> </result>
> <result name="input" type="chain">list</result>
> </action>
> <action name="list" class="com.test.ListAction">
> <result name="success">/proj/list.jsp</result>
> </action>
>
> I have 2 issues/questions -
> a) My validation does not work if I chain actions. If I don't enter
> anything in add textbox and click on Add then I get a html 404 error. If I
> route to list.jsp instead of chaning to list action then I see validation
> messages. But I really need to show list on that page as well. So I can
> not forward to the jsp.
>
> b) When I chain 2 actions, can I pass new params for second action? It
> does not seem to work for me e.g. In following example, I can not pass foo
> param to list action that is chained to add action.
>
> <action name="add" class="com.test.AddAction">
> <result name="success" type="chain">
> list
> bar
> </result>
> <result name="input" type="chain">list</result>
> </action>
>
> I would really appreciate some feedback/help here.
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_187759.ezm (zipped)I'm trying to add a tooltip to an s:a tag. I couldn't get the tooltip
attribute to work so now I am trying to get a tooltip via an onmouseover
Javascript. The Javascript code works and I get my tooltip but the text
in the tooltip I want when I create the s:a tag.
Here is my code:
<s:iterator value="codes">
<s:a href="#" onmouseover="ddrivetip('${codeDescription}', 300)"
onmouseout="hideddrivetip()">
<s:property value="code"/>
</s:a>
</s:iterator>
My problem is the ${codeDescription} in the onmouseover attribute.
The compiler is giving me this error:
"According to TLD or attribute directive in tag file, attribute
onmouseover does not accept any expressions"
How do I get the value of the field codeDescription to print into my
onmouseover script?
Thanks in advance,
James

Attachment:
user_187763.ezm (zipped)Hi,
Try
<s:iterator value="codes">
<s:a href="#" onmouseover="ddrivetip('%{codeDescription}', 300)"
onmouseout="hideddrivetip()">
<s:property value="code"/>
</s:a>
</s:iterator>
Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_187764.ezm (zipped)Lukasz Lenart wrote:
> Hi,
>
> Try
>
> <s:iterator value="codes">
> <s:a href="#" onmouseover="ddrivetip('%{codeDescription}', 300)"
> onmouseout="hideddrivetip()">
> <s:property value="code"/>
> </s:a>
> </s:iterator>
>
>
> Regards
>
Thank you!
--James

Attachment:
user_187760.ezm (zipped)I don't really know if you can change this default, but here is a workaround:
Write a custom interceptor that each time your action result is LIST,
you change it to SUCCESS.
This way you could leave your result tags untouched. However, right
now I could not imagine the value of doing that.
2008/6/17, Adam Hardy <ahardy.struts@(protected)>:
> Hi,
>
> is it possible to do this:
>
> <action name="category/list"
> class="repo.CategoryAction" method="list">
> <result>categoryList.tile</result>
> </action>
>
> for result = "LIST" rather than "SUCCESS"? - I mean I want to use LIST as
> the default when none is defined, rather than SUCCESS - I find it more
> intuitive for my app.
>
>
> Thanks
> Adam
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_187761.ezm (zipped)I guessed it's not modifiable but I figured I'd ask to make sure.
I like the work-around, hadn't thought of it. I'd probably use it if the default
result name was going to be configurable in the future (guess there's a patch
waiting to be coded there).
For now though I just hard coded the name attribute on all my results, not big
deal.
The reason I asked is that I'm building the example app based on a struts-based
package, so I was aiming for the ideal.
Thanks
Adam
Gabriel Belingueres on 18/06/08 14:32, wrote:
> I don't really know if you can change this default, but here is a workaround:
>
> Write a custom interceptor that each time your action result is LIST,
> you change it to SUCCESS.
>
> This way you could leave your result tags untouched. However, right
> now I could not imagine the value of doing that.
>
> 2008/6/17, Adam Hardy <ahardy.struts@(protected)>:
>> Hi,
>>
>> is it possible to do this:
>>
>> <action name="category/list"
>> class="repo.CategoryAction" method="list">
>> <result>categoryList.tile</result>
>> </action>
>>
>> for result = "LIST" rather than "SUCCESS"? - I mean I want to use LIST as
>> the default when none is defined, rather than SUCCESS - I find it more
>> intuitive for my app.