You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by st...@gmail.com on 2007/04/04 21:04:44 UTC

WildCards and Results

I have an Action with several methods in it.  I have no problem invoking the
correct method using course!whatever, but I can't seem to figure out how to
get the correct web page to appear following the method call.  Since the
methods do not return a String containing the result to match, I'm not sure
how to direct Struts to display a page.  I have tried the redirect result
without specifying a name, but it does not seem to be called.  I end up
viewing a white page!  Any clues?  I'm trying to create a single CRUD page
with a single Action.

<action name="course!*" method="{1}" class="course">
            <result name="input">/pages/course.jsp</result>
            <result type="redirect-action">course!list</result>
</action>

-- 
Scott
stanlick@gmail.com

Re: WildCards and Results

Posted by Ted Husted <hu...@apache.org>.
On 4/9/07, Dave Newton <ne...@yahoo.com> wrote:
> Does turning off dynamic method invocation not disable
> the "!" functionality? As Ted said, the "!" is part of
> XWork but there's a config param to disable it.

When DMI is disabled, then the ! is an ordinary character again.

Wildcards will always work, but only if the asterisk character is used
in the action name.

HTH, Ted
<http://www.husted.com/ted/blog/>

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


Re: WildCards and Results

Posted by Ted Husted <hu...@apache.org>.
On 4/9/07, stanlick@gmail.com <st...@gmail.com> wrote:
> ###struts.enable.DynamicMethodInvocation = false
>
> That was it!  I updated the value last week with false but it was commented
> out!  Too much time passed between then and now!  I guess the default is
> true?  I would hope you would not get this behavior unless you specify the
> need yourself???

Since Struts 2.0.x is the "compatibility release", after an extended
discussion, we left the behavior as enabled. This could change in
Struts 2.1.x (as the "new syntax" default changed in successive
releases of WebWork).

-Ted.

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


Re: WildCards and Results

Posted by st...@gmail.com.
###struts.enable.DynamicMethodInvocation = false

That was it!  I updated the value last week with false but it was commented
out!  Too much time passed between then and now!  I guess the default is
true?  I would hope you would not get this behavior unless you specify the
need yourself???

On 4/9/07, Dave Newton <ne...@yahoo.com> wrote:
>
> --- stanlick@gmail.com wrote:
> > I am discovering that both
> > http://localhost:8080/dsms/course_create.action AND
> > http://localhost:8080/dsms/course!create.action work
> > the same way.  Is this a feature?  This is the sort
> of
> > voodoo that should probably be cast out!
>
> Does turning off dynamic method invocation not disable
> the "!" functionality? As Ted said, the "!" is part of
> XWork but there's a config param to disable it.
>
> d.
>
>
>
>
>
> ____________________________________________________________________________________
> Looking for earth-friendly autos?
> Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
> http://autos.yahoo.com/green_center/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Scott
stanlick@gmail.com

Re: WildCards and Results

Posted by Dave Newton <ne...@yahoo.com>.
--- stanlick@gmail.com wrote:
> I am discovering that both
> http://localhost:8080/dsms/course_create.action AND
> http://localhost:8080/dsms/course!create.action work
> the same way.  Is this a feature?  This is the sort
of 
> voodoo that should probably be cast out!

Does turning off dynamic method invocation not disable
the "!" functionality? As Ted said, the "!" is part of
XWork but there's a config param to disable it.

d.



 
____________________________________________________________________________________
Looking for earth-friendly autos? 
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/

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


Re: WildCards and Results

Posted by st...@gmail.com.
This seems to me like putting another bullet in the gun!  I agree you should
pick a strategy and go with it.  Having said that, do you agree the default
for WCM should be false?

Scott

On 4/9/07, Ted Husted <hu...@apache.org> wrote:
>
> We consider Wildcard Methods and DMI to be distinct strategies, and I
> would suggest that an application use one or the other. But, Wildcards
> and DMI can co-exist if the Wildcard URIs don't use the ! character.
>
> HTH, Ted
> <http://www.husted.com/ted/blog/>
>
> On 4/9/07, stanlick@gmail.com <st...@gmail.com> wrote:
> > After refactoring my app to use the S2 Dynamic Method Invocation as
> follows:
> >
> >         <action name="course_*" method="{1}" class="course">
> >             <result name="input">/pages/course.jsp</result>
> >             <result>/pages/course.jsp</result>
> >         </action>
> >
> > I am discovering that both
> > http://localhost:8080/dsms/course_create.action AND
> > http://localhost:8080/dsms/course!create.action work the same way.  Is
> this
> > a feature?  This is the sort of voodoo that should probably be cast out!
> >
> > Scott
> >
> >
> >
> > On 4/6/07, Ted Husted <hu...@apache.org> wrote:
> > >
> > > There's a feature embedded in WebWork that lets the "!" character
> > > invoke a method other than execute. In WebWork, it doesn't really have
> > > a name. During the S2 discussions, we coined the term "dynamic method
> > > invocation" to describe how WW/S2 use the ! notation.
> > >
> > > For Struts 2, we added a switch to disable Dynamic Method Invocation"
> > > for two reasons. First, it can cause security issues if POJO actions
> > > are used. Second, it overlaps with the Wildcard feature that we
> > > brought over from Struts 1 (and from Cocoon before that).
> > >
> > > S2 does support  "dynamic method invocation", but there are problems
> > > with the implementation. Essentially, the code scans the action name
> > > for a "!", and finding one, tricks the framework into invoking the
> > > other method instead of execute. The other method is invoked, but it
> > > uses the same configuration as the execute method, including
> > > validations.  The framework "believes" it is invoking the "Category"
> > > action with the execute method.
> > >
> > > The Wildcard feature is implemented differently. When a Wildcard
> > > action is invoked, the framework acts as if the matching action had
> > > been hardcoded. The framework "believes" it's executing
> > > "Category!create" and "knows" it is executing the "create" method.
> > > This permits us to add specific validations, localizations, and type
> > > converters, for a Wildcard action, just like a conventional action.
> > >
> > > If someone were to implement [WW-1522], then the  "dynamic method
> > > invocation" approach could have its own validations too. Here, the
> > > notion is to generate carbon actions for qualifying methods. The
> > > invocation would no longer be dynamic, because there would be an
> > > actual action in the configuration, but any method could be invoked.
> > >
> > > * https://issues.apache.org/struts/browse/WW-1522
> > >
> > > My first pass at implementing [WW-1522] didn't work out. Though, I'm
> > > wondering if whatever we do for the codebehind plugin might work here
> > > too. At this point, I will probably never get to it myself, but
> > > perhaps someone will pickup the baton.
> > >
> > > In my own applications, I tend to use the underscore ("_") as a
> > > Wildcard separator, to avoid confusion with the WebWork bang. In
> > > practice, these are the only two special characters that work without
> > > causing JavaScript issues.
> > >
> > > HTH, Ted
> > > <http://www.husted.com/ted/blog/>
> > >
> > >
> > > On 4/6/07, stanlick@gmail.com <st...@gmail.com> wrote:
> > > > since '!' is already a special character which specifies the method
> name
> > > > automatically see struts.properties configuration file for more
> details
> > > > about how to enable/disable dynamic method invocation
> > > >
> > > > Can you explain this?  I read all I could find on this topic and
> their
> > > was
> > > > discussion dating back to early XWorks changes, however I could not
> make
> > > > sense out of it.  I do recall changing my struts.properties and it
> does
> > > seem
> > > > to be working as I hoped.  What is meant by "already a special
> > > character?"
> > > >
> > > > Thanks,
> > > > Scott
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: user-help@struts.apache.org
> > >
> > >
> >
> >
> > --
> > Scott
> > stanlick@gmail.com
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Scott
stanlick@gmail.com

Re: WildCards and Results

Posted by Ted Husted <hu...@apache.org>.
We consider Wildcard Methods and DMI to be distinct strategies, and I
would suggest that an application use one or the other. But, Wildcards
and DMI can co-exist if the Wildcard URIs don't use the ! character.

HTH, Ted
<http://www.husted.com/ted/blog/>

On 4/9/07, stanlick@gmail.com <st...@gmail.com> wrote:
> After refactoring my app to use the S2 Dynamic Method Invocation as follows:
>
>         <action name="course_*" method="{1}" class="course">
>             <result name="input">/pages/course.jsp</result>
>             <result>/pages/course.jsp</result>
>         </action>
>
> I am discovering that both
> http://localhost:8080/dsms/course_create.action AND
> http://localhost:8080/dsms/course!create.action work the same way.  Is this
> a feature?  This is the sort of voodoo that should probably be cast out!
>
> Scott
>
>
>
> On 4/6/07, Ted Husted <hu...@apache.org> wrote:
> >
> > There's a feature embedded in WebWork that lets the "!" character
> > invoke a method other than execute. In WebWork, it doesn't really have
> > a name. During the S2 discussions, we coined the term "dynamic method
> > invocation" to describe how WW/S2 use the ! notation.
> >
> > For Struts 2, we added a switch to disable Dynamic Method Invocation"
> > for two reasons. First, it can cause security issues if POJO actions
> > are used. Second, it overlaps with the Wildcard feature that we
> > brought over from Struts 1 (and from Cocoon before that).
> >
> > S2 does support  "dynamic method invocation", but there are problems
> > with the implementation. Essentially, the code scans the action name
> > for a "!", and finding one, tricks the framework into invoking the
> > other method instead of execute. The other method is invoked, but it
> > uses the same configuration as the execute method, including
> > validations.  The framework "believes" it is invoking the "Category"
> > action with the execute method.
> >
> > The Wildcard feature is implemented differently. When a Wildcard
> > action is invoked, the framework acts as if the matching action had
> > been hardcoded. The framework "believes" it's executing
> > "Category!create" and "knows" it is executing the "create" method.
> > This permits us to add specific validations, localizations, and type
> > converters, for a Wildcard action, just like a conventional action.
> >
> > If someone were to implement [WW-1522], then the  "dynamic method
> > invocation" approach could have its own validations too. Here, the
> > notion is to generate carbon actions for qualifying methods. The
> > invocation would no longer be dynamic, because there would be an
> > actual action in the configuration, but any method could be invoked.
> >
> > * https://issues.apache.org/struts/browse/WW-1522
> >
> > My first pass at implementing [WW-1522] didn't work out. Though, I'm
> > wondering if whatever we do for the codebehind plugin might work here
> > too. At this point, I will probably never get to it myself, but
> > perhaps someone will pickup the baton.
> >
> > In my own applications, I tend to use the underscore ("_") as a
> > Wildcard separator, to avoid confusion with the WebWork bang. In
> > practice, these are the only two special characters that work without
> > causing JavaScript issues.
> >
> > HTH, Ted
> > <http://www.husted.com/ted/blog/>
> >
> >
> > On 4/6/07, stanlick@gmail.com <st...@gmail.com> wrote:
> > > since '!' is already a special character which specifies the method name
> > > automatically see struts.properties configuration file for more details
> > > about how to enable/disable dynamic method invocation
> > >
> > > Can you explain this?  I read all I could find on this topic and their
> > was
> > > discussion dating back to early XWorks changes, however I could not make
> > > sense out of it.  I do recall changing my struts.properties and it does
> > seem
> > > to be working as I hoped.  What is meant by "already a special
> > character?"
> > >
> > > Thanks,
> > > Scott
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
>
> --
> Scott
> stanlick@gmail.com
>

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


Re: WildCards and Results

Posted by st...@gmail.com.
Ted --

After refactoring my app to use the S2 Dynamic Method Invocation as follows:

        <action name="course_*" method="{1}" class="course">
            <result name="input">/pages/course.jsp</result>
            <result>/pages/course.jsp</result>
        </action>

I am discovering that both
http://localhost:8080/dsms/course_create.action AND
http://localhost:8080/dsms/course!create.action work the same way.  Is this
a feature?  This is the sort of voodoo that should probably be cast out!

Scott



On 4/6/07, Ted Husted <hu...@apache.org> wrote:
>
> There's a feature embedded in WebWork that lets the "!" character
> invoke a method other than execute. In WebWork, it doesn't really have
> a name. During the S2 discussions, we coined the term "dynamic method
> invocation" to describe how WW/S2 use the ! notation.
>
> For Struts 2, we added a switch to disable Dynamic Method Invocation"
> for two reasons. First, it can cause security issues if POJO actions
> are used. Second, it overlaps with the Wildcard feature that we
> brought over from Struts 1 (and from Cocoon before that).
>
> S2 does support  "dynamic method invocation", but there are problems
> with the implementation. Essentially, the code scans the action name
> for a "!", and finding one, tricks the framework into invoking the
> other method instead of execute. The other method is invoked, but it
> uses the same configuration as the execute method, including
> validations.  The framework "believes" it is invoking the "Category"
> action with the execute method.
>
> The Wildcard feature is implemented differently. When a Wildcard
> action is invoked, the framework acts as if the matching action had
> been hardcoded. The framework "believes" it's executing
> "Category!create" and "knows" it is executing the "create" method.
> This permits us to add specific validations, localizations, and type
> converters, for a Wildcard action, just like a conventional action.
>
> If someone were to implement [WW-1522], then the  "dynamic method
> invocation" approach could have its own validations too. Here, the
> notion is to generate carbon actions for qualifying methods. The
> invocation would no longer be dynamic, because there would be an
> actual action in the configuration, but any method could be invoked.
>
> * https://issues.apache.org/struts/browse/WW-1522
>
> My first pass at implementing [WW-1522] didn't work out. Though, I'm
> wondering if whatever we do for the codebehind plugin might work here
> too. At this point, I will probably never get to it myself, but
> perhaps someone will pickup the baton.
>
> In my own applications, I tend to use the underscore ("_") as a
> Wildcard separator, to avoid confusion with the WebWork bang. In
> practice, these are the only two special characters that work without
> causing JavaScript issues.
>
> HTH, Ted
> <http://www.husted.com/ted/blog/>
>
>
> On 4/6/07, stanlick@gmail.com <st...@gmail.com> wrote:
> > since '!' is already a special character which specifies the method name
> > automatically see struts.properties configuration file for more details
> > about how to enable/disable dynamic method invocation
> >
> > Can you explain this?  I read all I could find on this topic and their
> was
> > discussion dating back to early XWorks changes, however I could not make
> > sense out of it.  I do recall changing my struts.properties and it does
> seem
> > to be working as I hoped.  What is meant by "already a special
> character?"
> >
> > Thanks,
> > Scott
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Scott
stanlick@gmail.com

Re: WildCards and Results

Posted by st...@gmail.com.
Ted, you are 2 for 2! Now it's back to changing code. I read the notes
on this several times and could never glean this understanding. You
really need to finish that book my brother.

Thanks,
Scott

On 4/6/07, Ted Husted <hu...@apache.org> wrote:
> There's a feature embedded in WebWork that lets the "!" character
> invoke a method other than execute. In WebWork, it doesn't really have
> a name. During the S2 discussions, we coined the term "dynamic method
> invocation" to describe how WW/S2 use the ! notation.
>
> For Struts 2, we added a switch to disable Dynamic Method Invocation"
> for two reasons. First, it can cause security issues if POJO actions
> are used. Second, it overlaps with the Wildcard feature that we
> brought over from Struts 1 (and from Cocoon before that).
>
> S2 does support  "dynamic method invocation", but there are problems
> with the implementation. Essentially, the code scans the action name
> for a "!", and finding one, tricks the framework into invoking the
> other method instead of execute. The other method is invoked, but it
> uses the same configuration as the execute method, including
> validations.  The framework "believes" it is invoking the "Category"
> action with the execute method.
>
> The Wildcard feature is implemented differently. When a Wildcard
> action is invoked, the framework acts as if the matching action had
> been hardcoded. The framework "believes" it's executing
> "Category!create" and "knows" it is executing the "create" method.
> This permits us to add specific validations, localizations, and type
> converters, for a Wildcard action, just like a conventional action.
>
> If someone were to implement [WW-1522], then the  "dynamic method
> invocation" approach could have its own validations too. Here, the
> notion is to generate carbon actions for qualifying methods. The
> invocation would no longer be dynamic, because there would be an
> actual action in the configuration, but any method could be invoked.
>
> * https://issues.apache.org/struts/browse/WW-1522
>
> My first pass at implementing [WW-1522] didn't work out. Though, I'm
> wondering if whatever we do for the codebehind plugin might work here
> too. At this point, I will probably never get to it myself, but
> perhaps someone will pickup the baton.
>
> In my own applications, I tend to use the underscore ("_") as a
> Wildcard separator, to avoid confusion with the WebWork bang. In
> practice, these are the only two special characters that work without
> causing JavaScript issues.
>
> HTH, Ted
> <http://www.husted.com/ted/blog/>
>
>
> On 4/6/07, stanlick@gmail.com <st...@gmail.com> wrote:
> > since '!' is already a special character which specifies the method name
> > automatically see struts.properties configuration file for more details
> > about how to enable/disable dynamic method invocation
> >
> > Can you explain this?  I read all I could find on this topic and their was
> > discussion dating back to early XWorks changes, however I could not make
> > sense out of it.  I do recall changing my struts.properties and it does
> seem
> > to be working as I hoped.  What is meant by "already a special character?"
> >
> > Thanks,
> > Scott
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Scott
stanlick@gmail.com

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


Re: WildCards and Results

Posted by Ted Husted <hu...@apache.org>.
There's a feature embedded in WebWork that lets the "!" character
invoke a method other than execute. In WebWork, it doesn't really have
a name. During the S2 discussions, we coined the term "dynamic method
invocation" to describe how WW/S2 use the ! notation.

For Struts 2, we added a switch to disable Dynamic Method Invocation"
for two reasons. First, it can cause security issues if POJO actions
are used. Second, it overlaps with the Wildcard feature that we
brought over from Struts 1 (and from Cocoon before that).

S2 does support  "dynamic method invocation", but there are problems
with the implementation. Essentially, the code scans the action name
for a "!", and finding one, tricks the framework into invoking the
other method instead of execute. The other method is invoked, but it
uses the same configuration as the execute method, including
validations.  The framework "believes" it is invoking the "Category"
action with the execute method.

The Wildcard feature is implemented differently. When a Wildcard
action is invoked, the framework acts as if the matching action had
been hardcoded. The framework "believes" it's executing
"Category!create" and "knows" it is executing the "create" method.
This permits us to add specific validations, localizations, and type
converters, for a Wildcard action, just like a conventional action.

If someone were to implement [WW-1522], then the  "dynamic method
invocation" approach could have its own validations too. Here, the
notion is to generate carbon actions for qualifying methods. The
invocation would no longer be dynamic, because there would be an
actual action in the configuration, but any method could be invoked.

* https://issues.apache.org/struts/browse/WW-1522

My first pass at implementing [WW-1522] didn't work out. Though, I'm
wondering if whatever we do for the codebehind plugin might work here
too. At this point, I will probably never get to it myself, but
perhaps someone will pickup the baton.

In my own applications, I tend to use the underscore ("_") as a
Wildcard separator, to avoid confusion with the WebWork bang. In
practice, these are the only two special characters that work without
causing JavaScript issues.

HTH, Ted
<http://www.husted.com/ted/blog/>


On 4/6/07, stanlick@gmail.com <st...@gmail.com> wrote:
> since '!' is already a special character which specifies the method name
> automatically see struts.properties configuration file for more details
> about how to enable/disable dynamic method invocation
>
> Can you explain this?  I read all I could find on this topic and their was
> discussion dating back to early XWorks changes, however I could not make
> sense out of it.  I do recall changing my struts.properties and it does seem
> to be working as I hoped.  What is meant by "already a special character?"
>
> Thanks,
> Scott
>

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


Re: WildCards and Results

Posted by Aram Mkhitaryan <ar...@googlemail.com>.
"!" is a special character means that if you have action which name is "do"
and in struts.properties you have

struts.enable.DynamicMethodInvocation=true

which is the default value,
then if the request is "do_namespace/do!firstMethod" will invoke the
firstMethod.

If you specify action name already with containing "!" I guess it will arise
additional problems
(I think action "do!lolo" will automatically call not execute but lolo
method).

Best,
Aram

Re: WildCards and Results

Posted by st...@gmail.com.
since '!' is already a special character which specifies the method name
automatically see struts.properties configuration file for more details
about how to enable/disable dynamic method invocation

Can you explain this?  I read all I could find on this topic and their was
discussion dating back to early XWorks changes, however I could not make
sense out of it.  I do recall changing my struts.properties and it does seem
to be working as I hoped.  What is meant by "already a special character?"

Thanks,
Scott

Re: WildCards and Results

Posted by Aram Mkhitaryan <ar...@googlemail.com>.
As Ted wrote those methods should return Strings which will determine the
result to be shown.

String myCustomMethod() {
   if(1)
     return "result1";
   else return "result2";
}

<action name="sample" method="myCustomMethod">
   <result name="result1">/pages/course1.jsp</result>
   <result name="result2">/pages/course2.jsp</result>
</action>

Also I do not recommend to define action name like

> <action name="course!*"

since '!' is already a special character which specifies the method name
automatically
see struts.properties configuration file for more details about how to
enable/disable dynamic method invocation

> struts.enable.DynamicMethodInvocation=false/true

but you can use wildcards in some other way like "course/*".

Note: using in result definition

> <result type="redirect-action">course!list</result>

"course!list" will call action course and the method "list" will be invoked.

Best,
Aram

Re: WildCards and Results

Posted by Ted Husted <hu...@apache.org>.
> Since the
> methods do not return a String containing the result to match, I'm not sure
> how to direct Struts to display a page.

All such methods should return a String, just like the canonical
execute method.

In other words, execute is the default Action method (or "alias").
Other methods can be specified, but they are no different in
composition than the default execute method.

If execute or any other Action method fails to return a String, yes,
you will get a blank page. I believe if devMode is enabled, there will
also be errors logged.

HTH, Ted
<http://www.husted.com/ted/blog/>


On 4/4/07, stanlick@gmail.com <st...@gmail.com> wrote:
> I have an Action with several methods in it.  I have no problem invoking the
> correct method using course!whatever, but I can't seem to figure out how to
> get the correct web page to appear following the method call.  Since the
> methods do not return a String containing the result to match, I'm not sure
> how to direct Struts to display a page.  I have tried the redirect result
> without specifying a name, but it does not seem to be called.  I end up
> viewing a white page!  Any clues?  I'm trying to create a single CRUD page
> with a single Action.
>
> <action name="course!*" method="{1}" class="course">
>             <result name="input">/pages/course.jsp</result>
>             <result type="redirect-action">course!list</result>
> </action>
>
> --
> Scott
> stanlick@gmail.com
>

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


Re: WildCards and Results

Posted by Dave Newton <ne...@yahoo.com>.
--- stanlick@gmail.com wrote:
> Have you ever been so close to the tree that...

Trees actually lie in wait for me and chuckle to
themselves in anticipation :/

d.



 
____________________________________________________________________________________
Looking for earth-friendly autos? 
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/

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


Re: WildCards and Results

Posted by st...@gmail.com.
Have you ever been so close to the tree that...

Thanks d.

On 4/4/07, Dave Newton <ne...@yahoo.com> wrote:
>
> --- stanlick@gmail.com wrote:
> > public void remove()
> > public void update()
> > ...
>
> Why aren't you returning a value from the methods? I
> thought that was how S2 determined what result to
> show.
>
> d.
>
>
>
>
>
> ____________________________________________________________________________________
> No need to miss a message. Get email on-the-go
> with Yahoo! Mail for Mobile. Get started.
> http://mobile.yahoo.com/mail
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Scott
stanlick@gmail.com

Re: WildCards and Results

Posted by Dave Newton <ne...@yahoo.com>.
--- stanlick@gmail.com wrote:
> public void remove()
> public void update()
> ...

Why aren't you returning a value from the methods? I
thought that was how S2 determined what result to
show.

d.



 
____________________________________________________________________________________
No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail 

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


Re: WildCards and Results

Posted by st...@gmail.com.
Hey d! --

public void remove()
public void update()
...

Scott

On 4/4/07, Dave Newton <ne...@yahoo.com> wrote:
>
> --- stanlick@gmail.com wrote:
> > Since the methods do not return a String containing
> > the result to match, I'm not sure how to direct
> > Struts to display a page.
>
> What do they return?
>
> d.
>
>
>
>
>
> ____________________________________________________________________________________
> 8:00? 8:25? 8:40? Find a flick in no time
> with the Yahoo! Search movie showtime shortcut.
> http://tools.search.yahoo.com/shortcuts/#news
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Scott
stanlick@gmail.com

Re: WildCards and Results

Posted by Dave Newton <ne...@yahoo.com>.
--- stanlick@gmail.com wrote:
> Since the methods do not return a String containing 
> the result to match, I'm not sure how to direct 
> Struts to display a page.

What do they return?

d.



 
____________________________________________________________________________________
8:00? 8:25? 8:40? Find a flick in no time 
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

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