Re: excludeMethods parameter question

2011-07-25 Thread Mano Pájaro
Thank u for everything! I will keep studying! :D


-- 
Manolo Pájaro Santander
Ingeniero de Sistemas VIII Semestre (Actual)
<>
CUSOL-UAC
Linux Registered User # 522026


Re: excludeMethods parameter question

2011-07-25 Thread Chris Pratt
Exactly, so the default (execute) would run the validation, but not the ones
that are listed.
  (*Chris*)

On Mon, Jul 25, 2011 at 4:53 PM, Mano Pájaro  wrote:

> I see mm so, it only acts on the action which method attribute is diferent
> from in the list, that's it? :D
>
> 2011/7/25 Chris Pratt 
>
> > Not exactly.  It would not execute for actions whose method name is
> input,
> > back or cancel.  It's on the action side, not the result side.
> >   (*Chris*)
> >
> >
>
> --
> Manolo Pájaro Santander
> Ingeniero de Sistemas VIII Semestre (Actual)
> <>
> CUSOL-UAC
> Linux Registered User # 522026
>


Re: excludeMethods parameter question

2011-07-25 Thread Mano Pájaro
I see mm so, it only acts on the action which method attribute is diferent
from in the list, that's it? :D

2011/7/25 Chris Pratt 

> Not exactly.  It would not execute for actions whose method name is input,
> back or cancel.  It's on the action side, not the result side.
>   (*Chris*)
>
>

-- 
Manolo Pájaro Santander
Ingeniero de Sistemas VIII Semestre (Actual)
<>
CUSOL-UAC
Linux Registered User # 522026


Re: excludeMethods parameter question

2011-07-25 Thread Chris Pratt
Not exactly.  It would not execute for actions whose method name is input,
back or cancel.  It's on the action side, not the result side.
  (*Chris*)

On Mon, Jul 25, 2011 at 2:59 PM, Mano Pájaro  wrote:

> Thanks Maurizio, let me see if i got it straight. You mean that, for
> example:
>
> 
> name="excludeMethods">input,back,cancel
>
> won't be executed by results whose name is input, back or cancel?
>
> 2011/7/25 Maurizio Cucchiara 
>
> > There are some interceptors, like validator one, which are not triggered
> in
> > case of the name of the invoked method matches one of the list element
> > (there is no reason to validate an input action, you don't yet obtain the
> > user input, so you have anything to validate).
> > Hope this help.
> >
> > Maurizio Cucchiara
> >
> >
> --
> Manolo Pájaro Santander
> Ingeniero de Sistemas VIII Semestre (Actual)
> <>
> CUSOL-UAC
> Linux Registered User # 522026
>


Re: excludeMethods parameter question

2011-07-25 Thread Mano Pájaro
Thanks Maurizio, let me see if i got it straight. You mean that, for
example:


input,back,cancel

won't be executed by results whose name is input, back or cancel?

2011/7/25 Maurizio Cucchiara 

> There are some interceptors, like validator one, which are not triggered in
> case of the name of the invoked method matches one of the list element
> (there is no reason to validate an input action, you don't yet obtain the
> user input, so you have anything to validate).
> Hope this help.
>
> Maurizio Cucchiara
>
>
-- 
Manolo Pájaro Santander
Ingeniero de Sistemas VIII Semestre (Actual)
<>
CUSOL-UAC
Linux Registered User # 522026


Re: excludeMethods parameter question

2011-07-25 Thread Maurizio Cucchiara
There are some interceptors, like validator one, which are not triggered in
case of the name of the invoked method matches one of the list element
(there is no reason to validate an input action, you don't yet obtain the
user input, so you have anything to validate).
Hope this help.

Maurizio Cucchiara

Il giorno 25/lug/2011 23.11, "Mano Pájaro"  ha scritto:
> Hello list! I'm making a research about Struts2 and there are several
things
> that I don't understand (haha), I have studied really hard and I think I'm
> in the righ way now, but there's a thing that i don't understand about
this
> examples i found about interceptors, i'm talking about the parameter
> excludeMethods. I have seen that most of the times it has
"input,back,cancel"
> but I don't really know what does it mean. Can u help me guys please?
>
> --
> Manolo Pájaro Santander
> Ingeniero de Sistemas VIII Semestre (Actual)
> <>
> CUSOL-UAC
> Linux Registered User # 522026


excludeMethods parameter question

2011-07-25 Thread Mano Pájaro
Hello list! I'm making a research about Struts2 and there are several things
that I don't understand (haha), I have studied really hard and I think I'm
in the righ way now, but there's a thing that i don't understand about this
examples i found about interceptors, i'm talking about the parameter
excludeMethods. I have seen that most of the times it has "input,back,cancel"
but I don't really know what does it mean. Can u help me guys please?

-- 
Manolo Pájaro Santander
Ingeniero de Sistemas VIII Semestre (Actual)
<>
CUSOL-UAC
Linux Registered User # 522026


Re: Parameter question

2008-06-09 Thread Lukasz Lenart
Hi,

2008/6/9 Stanley, Eric <[EMAIL PROTECTED]>:

> Dave,
>Thanks. So if I understand you, I can set all my url's that
> don't use params to excludeParams, but leave the ones that use params
> alone? Also, where do I set the constant? Im sure its just me, but this
> doesn't seem like a wise usage of params in S2. Why would it be
> beneficial to append any parameters that are not explicitly coded?
>

in struts.properties
struts.url.includeParams = none

in struts.xml


in web.xml

struts

org.apache.struts2.dispatcher.FilterDispatcher

struts.url.includeParams
none




http://struts.apache.org/2.1.2/docs/constant-configuration.html


Regards
-- 
Lukasz
http://www.lenart.org.pl/


RE: Parameter question

2008-06-09 Thread Stanley, Eric
Dave,
Thanks. So if I understand you, I can set all my url's that
don't use params to excludeParams, but leave the ones that use params
alone? Also, where do I set the constant? Im sure its just me, but this
doesn't seem like a wise usage of params in S2. Why would it be
beneficial to append any parameters that are not explicitly coded?

-Ryan 

-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 09, 2008 9:18 AM
To: Stanley, Eric
Subject: RE: Parameter question

Okay, then the rest of my reply is probably helpful :)

It can be configured as a constant or per- tag.

Dave


--- On Mon, 6/9/08, Stanley, Eric <[EMAIL PROTECTED]> wrote:

> From: Stanley, Eric <[EMAIL PROTECTED]>
> Subject: RE: Parameter question
> To: "Struts Users Mailing List" , 
> [EMAIL PROTECTED]
> Date: Monday, June 9, 2008, 10:45 AM
> Dave,
>   Thanks for the reply, and that is what I am talking about.
> I do
> append params to the action pointed to by a link. Its just that after 
> I have clicked that link with params, every subsequent request has 
> that same exact parameter appended. I need to stop this from 
> happening. That parameter should only apply to that action/link.
> 
> -Ryan
> 
> -Original Message-
> From: Dave Newton [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 05, 2008 7:15 PM
> To: Struts Users Mailing List
> Subject: Re: Parameter question
> 
> Are you talking about links to actions having parameters appended?
> 
> If so, are you either excluding parameters at each  or, 
> alternatively, setting a default excludeParams via config?
> 
> Dave
> 
> --- On Thu, 6/5/08, Stanley, Eric
> <[EMAIL PROTECTED]> wrote:
> > In my app, I have this package/action defined:
> >  
> >  > extends="struts-default"
> > namespace="/data">
> > 
> >  > name="paramsPrepareParamsStack" />
> > 
> >  > class="fm.gui.action.DataAction">
> > 
> >  >
> name="success">/pages/data/viewData.jsp
> > 
> >  >
> name="error">/pages/error.jsp
> > 
> > 
> > 
> > 
> > 
> >  
> > 
> > The problem is that as soon as its called, every
> subsequent action has
> 
> > a bunch of parameters appended to it. This causes any
> other action to
> > fail. They fail because there is no object for the
> parameters to be
> > applied to, and rightfully so. I still dont completely
> grasp this
> > interceptor, and I think fixing this will help a lot
> as far as that
> > goes. Please let me know.
> > 
> >  
> > E. Ryan Stanley
> > Phone: 720.578.3703
> > Pager: 801.482.0172
> > <mailto:[EMAIL PROTECTED]>
> >  
> > 
> > 
> > This communication is the property of Qwest and may
> contain
> > confidential or privileged information. Unauthorized
> use of this
> > communication is strictly prohibited and may be
> unlawful.  If you have
> 
> > received this communication in error, please
> immediately notify the
> > sender by reply e-mail and destroy all copies of the
> communication and
> 
> > any attachments.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Parameter question

2008-06-09 Thread Stanley, Eric
Dave,
Thanks for the reply, and that is what I am talking about. I do
append params to the action pointed to by a link. Its just that after I
have clicked that link with params, every subsequent request has that
same exact parameter appended. I need to stop this from happening. That
parameter should only apply to that action/link.

-Ryan 

-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 05, 2008 7:15 PM
To: Struts Users Mailing List
Subject: Re: Parameter question

Are you talking about links to actions having parameters appended?

If so, are you either excluding parameters at each  or,
alternatively, setting a default excludeParams via config?

Dave

--- On Thu, 6/5/08, Stanley, Eric <[EMAIL PROTECTED]> wrote:
> In my app, I have this package/action defined:
>  
>  extends="struts-default"
> namespace="/data">
> 
>  name="paramsPrepareParamsStack" />
> 
>  class="fm.gui.action.DataAction">
> 
>  name="success">/pages/data/viewData.jsp
> 
>  name="error">/pages/error.jsp
> 
> 
> 
> 
> 
>  
> 
> The problem is that as soon as its called, every subsequent action has

> a bunch of parameters appended to it. This causes any other action to 
> fail. They fail because there is no object for the parameters to be 
> applied to, and rightfully so. I still dont completely grasp this 
> interceptor, and I think fixing this will help a lot as far as that 
> goes. Please let me know.
> 
>  
> E. Ryan Stanley
> Phone: 720.578.3703
> Pager: 801.482.0172
> <mailto:[EMAIL PROTECTED]>
>  
> 
> 
> This communication is the property of Qwest and may contain 
> confidential or privileged information. Unauthorized use of this 
> communication is strictly prohibited and may be unlawful.  If you have

> received this communication in error, please immediately notify the 
> sender by reply e-mail and destroy all copies of the communication and

> any attachments.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Parameter question

2008-06-05 Thread Dave Newton
Are you talking about links to actions having parameters appended?

If so, are you either excluding parameters at each  or, 
alternatively, setting a default excludeParams via config?

Dave

--- On Thu, 6/5/08, Stanley, Eric <[EMAIL PROTECTED]> wrote:
> In my app, I have this package/action defined:
>  
>  extends="struts-default"
> namespace="/data">
> 
>  name="paramsPrepareParamsStack" />
> 
>  class="fm.gui.action.DataAction">
> 
>  name="success">/pages/data/viewData.jsp
> 
>  name="error">/pages/error.jsp
> 
> 
> 
> 
> 
>  
> 
> The problem is that as soon as its called, every subsequent
> action has a
> bunch of parameters appended to it. This causes any other
> action to
> fail. They fail because there is no object for the
> parameters to be
> applied to, and rightfully so. I still dont completely
> grasp this
> interceptor, and I think fixing this will help a lot as far
> as that
> goes. Please let me know.
> 
>  
> E. Ryan Stanley
> Phone: 720.578.3703
> Pager: 801.482.0172
>   
>  
> 
> 
> This communication is the property of Qwest and may contain
> confidential or
> privileged information. Unauthorized use of this
> communication is strictly 
> prohibited and may be unlawful.  If you have received this
> communication 
> in error, please immediately notify the sender by reply
> e-mail and destroy 
> all copies of the communication and any attachments.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Parameter question

2008-06-05 Thread Stanley, Eric
All,
In my app, I have this package/action defined:
 






/pages/data/viewData.jsp

/pages/error.jsp





 

The problem is that as soon as its called, every subsequent action has a
bunch of parameters appended to it. This causes any other action to
fail. They fail because there is no object for the parameters to be
applied to, and rightfully so. I still dont completely grasp this
interceptor, and I think fixing this will help a lot as far as that
goes. Please let me know.

 
E. Ryan Stanley
Phone: 720.578.3703
Pager: 801.482.0172
  
 


This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly 
prohibited and may be unlawful.  If you have received this communication 
in error, please immediately notify the sender by reply e-mail and destroy 
all copies of the communication and any attachments.


Re: Dynamic parameter question - S2

2007-03-13 Thread Laurie Harper
For your posted example, where that value you want to pass is the value 
you're rendering in the hidden field, you can just use the same OGNL 
expression in both places:


...

...

If that hidden input's field is being changed by client-side Javascript, 
though, or needs to come from a a user input/selection, then you'll have 
to use Javascript to build/modify the href for the link, too.


There's no way a server-side, render-time OGNL expression can ever 
reference dynamic user inputs/selections.


L.

Scott Nesbitt wrote:

Hmm, I see your point.  I do not really need to do any
fancy Ajax stuff here, I just want an action invoked
by a url link to have access to what was selected on
the page (which I was going to stuff into a hidden
field.)

I know I can do this with a form and submit button,
but surely there is a way to do this with a link,
correct?

Thanks for the response,

Scott

--- Dave Newton <[EMAIL PROTECTED]> wrote:


--- Scott Nesbitt <[EMAIL PROTECTED]> wrote:

I would like to have a url pass a parameter based

on

the value of a field on the JSP.  My code looks

like

this:

Unless the field is set by the Action before
displaying the JSP the parameter won't hold a value
until it's submitted.

   action="LineupHistory"

   includeParams="all">
  


If the action that displays this JSP fragment has a
'barbar' property (that is set/initialized)
everthing
is fine. If it doesn't, then you're actually trying
to
build up a URL from form values on the same page,
which generally implies JavaScript.

You may be able to do similar functionality by using
one of the ajax-y S2 tags (haven't thought about
it),
by submitting to a different action (but would keep
the form value of whatever it is you're talking
about), or a few other ways.

d.



 




Expecting? Get great news right away with email
Auto-Check. 
Try the Yahoo! Mail Beta.



http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html




-

To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]






 

TV dinner still cooling? 
Check out "Tonight's Picks" on Yahoo! TV.

http://tv.yahoo.com/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Dynamic parameter question - S2

2007-03-13 Thread Scott Nesbitt

Hmm, I see your point.  I do not really need to do any
fancy Ajax stuff here, I just want an action invoked
by a url link to have access to what was selected on
the page (which I was going to stuff into a hidden
field.)

I know I can do this with a form and submit button,
but surely there is a way to do this with a link,
correct?

Thanks for the response,

Scott

--- Dave Newton <[EMAIL PROTECTED]> wrote:

> --- Scott Nesbitt <[EMAIL PROTECTED]> wrote:
> > I would like to have a url pass a parameter based
> on
> > the value of a field on the JSP.  My code looks
> like
> > this:
> 
> Unless the field is set by the Action before
> displaying the JSP the parameter won't hold a value
> until it's submitted.
> 
> >  >action="LineupHistory"
> >includeParams="all">
> >   
> > 
> 
> If the action that displays this JSP fragment has a
> 'barbar' property (that is set/initialized)
> everthing
> is fine. If it doesn't, then you're actually trying
> to
> build up a URL from form values on the same page,
> which generally implies JavaScript.
> 
> You may be able to do similar functionality by using
> one of the ajax-y S2 tags (haven't thought about
> it),
> by submitting to a different action (but would keep
> the form value of whatever it is you're talking
> about), or a few other ways.
> 
> d.
> 
> 
> 
>  
>

> Expecting? Get great news right away with email
> Auto-Check. 
> Try the Yahoo! Mail Beta.
>
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



 

TV dinner still cooling? 
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Dynamic parameter question - S2

2007-03-13 Thread Dave Newton
--- Scott Nesbitt <[EMAIL PROTECTED]> wrote:
> I would like to have a url pass a parameter based on
> the value of a field on the JSP.  My code looks like
> this:

Unless the field is set by the Action before
displaying the JSP the parameter won't hold a value
until it's submitted.

> action="LineupHistory"
>includeParams="all">
>   
> 

If the action that displays this JSP fragment has a
'barbar' property (that is set/initialized) everthing
is fine. If it doesn't, then you're actually trying to
build up a URL from form values on the same page,
which generally implies JavaScript.

You may be able to do similar functionality by using
one of the ajax-y S2 tags (haven't thought about it),
by submitting to a different action (but would keep
the form value of whatever it is you're talking
about), or a few other ways.

d.



 

Expecting? Get great news right away with email Auto-Check. 
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Dynamic parameter question - S2

2007-03-13 Thread Scott Nesbitt

I would like to have a url pass a parameter based on
the value of a field on the JSP.  My code looks like
this:



   

Lineup History




Sadly, in my action class this:

log.debug("In execute, parameters size: " +
parameters.size());

says zero.

If I use the name of a select tag instead of a hidden
the parameter has the first selection so I know my
parameter map is working.  I just can't get it to use
a hidden tag.

Any suggestion?

Thanks for any tips or pointers,

Scott


 

Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]