Re: Passing parameters

2025-03-06 Thread Lukasz Lenart
czw., 6 mar 2025 o 10:55 Ed napisał(a): > I tested an example with struts 7.x > (https://github.com/apache/struts-examples/tree/main/control-tags) and > when edit `personBean` can't send to the form. If I have a string or a > map can send to the form, but object not. Thanks for pointing that out,

Re: Passing parameters from struts.xml to jsp securely/encripted..Struts2

2011-06-15 Thread Maurizio Cucchiara
Put it in the session! Maurizio Cucchiara Il giorno 15/giu/2011 19.37, "scoobyy" ha scritto: > Hi I'm using struts2 and i have an action tag which redirects to a jsp page > with the parameter it receives. > > > > stores.jsp?page${somepage} > true > true > > > > Problem is the ${somepage} val

Re: Passing parameters to getter methods?

2010-06-25 Thread Chris Miles
ent: Friday, June 25, 2010 1:58 PM Subject: Re: Passing parameters to getter methods? Well technically it's not a "getter" since it takes a parameter but that doesn't matter you can call any method on your action just using the full name and calling it like in java. Now I'

Re: Passing parameters to getter methods?

2010-06-25 Thread Greg Lindholm
Well technically it's not a "getter" since it takes a parameter but that doesn't matter you can call any method on your action just using the full name and calling it like in java. Now I'm not sure what you are trying to do with the #index syntax since getProducts() will be called once and shoul

Re: Passing parameters to getter methods?

2010-06-25 Thread Alex Rodriguez Lopez
You can do this without parameters. Write a setter for this index property (to save it), and then in the getter you grab the saved value. Hi, I want to call s:iterator and fetch a list by passing it an index. This list will be dynamically generated. where I want getProducts(Integer index)

Re: Passing parameters to

2010-03-05 Thread Ricardo Jorge
e in the parameter > > > > > > > > and let the getName class handle the actual locale. > > > > adam > > > Date: Thu, 4 Mar 2010 18:20:19 +0100 > > Subject: Re: Passing parameters to > > From: lukasz.len...@googlemail.com > > To: us

RE: Passing parameters to

2010-03-04 Thread adam pinder
just pass an alias to the locale in the parameter and let the getName class handle the actual locale. adam > Date: Thu, 4 Mar 2010 18:20:19 +0100 > Subject: Re: Passing parameters to > From: lukasz.len...@googlemail.com > To: user@struts.apache.org > > 2010

RE: Passing parameters to

2010-03-04 Thread adam pinder
k you should be looking at this differently and using the i18n interceptor and resource bundles to handle different languages. adam > Date: Thu, 4 Mar 2010 17:13:43 +0000 > Subject: Re: Passing parameters to > From: rvjs...@gmail.com > To: user@struts.apache.org > > Thank

Re: Passing parameters to

2010-03-04 Thread Lukasz Lenart
2010/3/4 Ricardo Jorge : > PS: I've just tried the following but it did not work > Take a look on some examples here [1] and try [1] http://struts.apache.org/2.x/docs/ognl-basics.html Regards -- Łukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl -

Re: Passing parameters to

2010-03-04 Thread Ricardo Jorge
Thank you for your reply. I don't have a getName in my action class if that's what you mean. I'm using an iterator so the getName is a method from the class's object defined in the iterator's value option. That class also makes available a getName(Locale locale). Locale is a class (java.util.Loc

Re: Passing parameters to

2010-03-04 Thread Lukasz Lenart
2010/3/4 Ricardo Jorge : >             Did you define method name(Locale locale) in your class? Or just getName(Locale locale)? For second case use or Regards -- Łukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl ---

Re: Passing parameters between Actions

2009-02-13 Thread Musachy Barroso
oIntercept(AnnotationValidationInterceptor.java:68) > > > -Original Message- > From: Dave Newton [mailto:newton.d...@yahoo.com] > Sent: Thursday, February 12, 2009 3:24 PM > To: Struts Users Mailing List > Subject: Re: Passing parameters between Actions > >

RE: Passing parameters between Actions

2009-02-13 Thread Phan, Hienthuc T
t org.apache.struts2.interceptor.validation.AnnotationValidationIntercepto r.doIntercept(AnnotationValidationInterceptor.java:68) -Original Message- From: Dave Newton [mailto:newton.d...@yahoo.com] Sent: Thursday, February 12, 2009 3:24 PM To: Struts Users Mailing List Subject: Re: Passing parame

Re: Passing parameters between Actions

2009-02-12 Thread Dave Newton
ryangr wrote: Is it possible to pass a parameter from one Action to another Action? For example, I have FooAction and BarAction. From BarAction's "reload" action result I want to return to FooAction but pass it a relevant id for FooAction to set upon loading. http://struts.apache.org/2.x/docs

Re: Passing parameters through a form

2008-11-04 Thread Alexander Baetz
Solved with the help of the hidden-tag. Greetings, Alexander Alexander Baetz schrieb: Hi, i'm using a formular (struts form) to edit attributs of my model objects. The intention is that prepare gets the correct model-object, model driven puts it on the stack and params sets all attributes. S

Re: Passing parameters to ftl template with s:param

2008-04-28 Thread Peter Wages
If you want to use the value parameter, you must enclose the value with single quotation marks in addition to double quotation marks. , if your value is a string " ' value ' " The value parameter is assuming you are passing an object. This is associated with OGNL What worked for you A

Re: Passing parameters to ftl template with s:param

2008-04-28 Thread Alan Nisbet
Hi, In case anyone is interested s:param tag only works(for me) when value is defined in body of tag and not in value attribute doesn't work fromDate does work Alan Nisbet wrote: Hi, First time poster and relative struts newbie, I'm trying to create an ftl template that positions two s:

Re: Passing parameters to a struts action in URL

2007-01-19 Thread Nick Tucker
t; > Thanks, > > Nuwan. > > > - Original Message - > From: "Joe Yuen" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" ; "Struts Users > Mailing List" > Sent: Thursday, January 18, 2007 9:28 PM > Subject: RE: Passing

Re: Passing parameters to a struts action in URL

2007-01-18 Thread Nuwan Chandrasoma
t;Joe Yuen" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" ; "Struts Users Mailing List" Sent: Thursday, January 18, 2007 9:28 PM Subject: RE: Passing parameters to a struts action in URL In my action class: public ActionForward execute(ActionMapping mapping,

Re: Passing parameters to a struts action in URL

2007-01-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, Joe Yuen wrote: > Does anyone have an idea as to why this URL > > http://localhost:8080/Chisq/Insurance.do?action=edit&personid=1001 > > works in Firefox but not in IE6? In my action class, I can see a personid in > Firefox but in IE personi

RE: Passing parameters to a struts action in URL

2007-01-18 Thread Joe Yuen
k for one browser and not the other?? -Original Message- From: Ross, Scott [mailto:[EMAIL PROTECTED] Sent: Thu 1/18/2007 1:26 PM To: Struts Users Mailing List Subject: RE: Passing parameters to a struts action in URL I don't think this is a URL issue. What is your code to

RE: Passing parameters to a struts action in URL

2007-01-18 Thread Ross, Scott
I don't think this is a URL issue. What is your code to retreive the variables from the URL? -Original Message- From: Joe Yuen [mailto:[EMAIL PROTECTED] Sent: Thursday, January 18, 2007 4:12 PM To: Struts Users Mailing List Subject: Passing parameters to a struts action in URL Does an

Re: passing parameters to tiles include files

2006-06-17 Thread Scott Van Wart
Don Vawter wrote: I am setting the attribute in the Action class Check to make sure you don't have redirect="true" set for the action mapping. Otherwise, everything request-related is lost. - Scott - To unsubscribe, e-mail:

Re: passing parameters to tiles include files

2006-06-17 Thread Paul Benedict
Don, see my last sentence: request attributes disappear after one request. You will have to set it on every request if you need it. Or, set it in the session. - New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

Re: passing parameters to tiles include files

2006-06-17 Thread Don Vawter
I am setting the attribute in the Action class On Jun 17, 2006, at 6:10 PM, Paul Benedict wrote: Don, Request parameters and request attributes are not the same thing. Parameters come from the user's HTTP request, attributes come from the server's internal context handling. Think of the la

Re: passing parameters to tiles include files

2006-06-17 Thread Paul Benedict
Don, Request parameters and request attributes are not the same thing. Parameters come from the user's HTTP request, attributes come from the server's internal context handling. Think of the latter as extra information that pertains to processing the request. Also, request-scope values disappe

Re: Passing parameters between chained actions.

2006-06-07 Thread Scott Van Wart
Michael Jouravlev wrote: The best way to avoid these problems is not to chain actions ;-) That was a great response, thank you. Just the kind of info I need (best practices type hints as opposed to "here's what the docs say...") :). I still like the idea of chaining actions together, as it ma

Re: Passing parameters between chained actions.

2006-06-07 Thread Michael Jouravlev
Whenever you call an action via action mapping, the standard create/reset/populate/validate sequence is fired. You can avoid it by not associating OtherForm with OtherAction, but in this case Struts will not automatically populate OtherForm if you submit request from browser to OtherAction. Since

RE: Passing Parameters to ActionForward from Action

2006-02-14 Thread siva
ssage- From: Gunduz Can Topal [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 6:42 PM To: 'Struts Users Mailing List' Subject: RE: Passing Parameters to ActionForward from Action I am new to struts, there might be better ways to make this work. You can maintain state informati

RE: Passing Parameters to ActionForward from Action

2006-02-13 Thread Gunduz Can Topal
I am new to struts, there might be better ways to make this work. You can maintain state information with session registery or http parameters.. A working example: struts-config.xml ---

RE: Passing Parameters to ActionForward from Action

2006-02-13 Thread Gunduz Can Topal
I am new to struts, there might be better ways to make this work. You can maintain state information with session registery or http parameters.. A working example: struts-config.xml ---

RE: passing parameters

2006-02-01 Thread Michael TALLET
t should be dynamically, e.g: /myAction?action=<%= MyCons.EDIT %> but so it does not work. markus > -Ursprüngliche Nachricht- > Von: Gareth Evans [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 1. Februar 2006 12:14 > An: Struts Users Mailing List > Betreff: Re: pa

Re: passing parameters

2006-02-01 Thread Gareth Evans
Your Text Should do the trick. Note: You do not need the .do Gareth Markus wrote: Hi all, just a simple question. I would like to pass a single parameter with a tag. I've searched the net, but there I understand that it is only possible to pass parameters via beans. Is the a simpler wa

RE: Passing Parameters to Tiles Layout

2005-01-12 Thread David G. Friedman
Allen, You could make your action a Struts Tiles Action subclass and set a tile parameter's value manually based upon the id... For example, you could set the tile's "body" component to the value form.getBody() IF your page was submitted with "body=somepage.jsp" or something like that. If you do