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)

Passing parameters to getter methods?

2010-06-24 Thread Chris Miles
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) to be called. Is this possible? Thanks Chris

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 ---

Passing parameters to

2010-03-04 Thread Ricardo Jorge
Hello. I need to access a property the includes a parameter but I cannot find a way to do it. I want to list all page names in selectedPages but I also need to specify the locale (language) the should appear because a page may have many names in different languages: This works fine. It's a norma

Re: Remotely passing parameters to struts

2008-08-12 Thread Randy Burgess
rds, Randy Burgess Sr. Software Architect D5 Systems, LLC > From: jaki <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List > Date: Mon, 11 Aug 2008 22:57:47 -0700 (PDT) > To: > Subject: Re: Remotely passing parameters to struts > > > What's the way to do i

Re: Remotely passing parameters to struts

2008-08-11 Thread jaki
his message in context: http://www.nabble.com/Remotely-passing-parameters-to-struts-tp18928369p18938494.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: Remotely passing parameters to struts

2008-08-11 Thread Randy Burgess
gt; Reply-To: Struts Users Mailing List > Date: Mon, 11 Aug 2008 08:45:37 -0700 (PDT) > To: > Subject: Remotely passing parameters to struts > > > Hi all, > > I have a web application which needs to pass parameters to a struts app > which resides on another machine.

Re: Remotely passing parameters to struts

2008-08-11 Thread Felipe Lorenz
rom a normal java method. So, is there a way to pass > arguements without using a request/response object? > -- > View this message in context: > http://www.nabble.com/Remotely-passing-parameters-to-struts-tp18928369p18928369.html > Sent from the Struts -

Remotely passing parameters to struts

2008-08-11 Thread jaki
message in context: http://www.nabble.com/Remotely-passing-parameters-to-struts-tp18928369p18928369.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

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:

Passing parameters to ftl template with s:param

2008-04-25 Thread Alan Nisbet
Hi, First time poster and relative struts newbie, I'm trying to create an ftl template that positions two s:datetimepicker(s) side by side to capture date and time. I use the s:component tag and define my template shown below. It is working relatively well however I'm unable to retrieve any

Re: [s2] Passing parameters to an action

2007-03-09 Thread Petr Blahos
> Hi all, > I was wondering how I could possibly solve this: I have an action in which > I construct quite a complex data structure. From that data structure I > display > some tables and create some charts. Now, I have got this one big-ass java > class - extending ActionSupport, in which I d

[s2] Passing parameters to an action

2007-02-22 Thread Petr Blahos
Hi all, I was wondering how I could possibly solve this: I have an action in which I construct quite a complex data structure. From that data structure I display some tables and create some charts. Now, I have got this one big-ass java class - extending ActionSupport, in which I do all the stuff -

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

Passing parameters to a struts action in URL

2007-01-18 Thread Joe Yuen
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 personid is null. I am using struts 1.2.8. Thanks, Joe Yuen --

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

passing parameters to tiles include files

2006-06-17 Thread Don Vawter
I have been trying to use a request parameter in an included tiles file (navigation.jsp) String foo = (String) request.getAttribute("menu_item"); this sets the value correctly the first time the page is hit but subsequent calls do not use the new value of the variable. What am I doing wrong

RE: Passing Parameters to ActionForward from Action

2006-02-14 Thread siva
session. So, This can be done only by passing parameters to the page. But, I couldn't understand (came across) how to pass parameters to a jsp from Action. If you came across anything about how to pass parameters to a jsp page let me know. Thanks you very much, Siva -Original Me

RE: Passing Parameters to ActionForward from Action

2006-02-13 Thread Gunduz Can Topal
n password; } public void setPassword(String password) { this.password = password; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } } ---

RE: Passing Parameters to ActionForward from Action

2006-02-13 Thread Gunduz Can Topal
n password; } public void setPassword(String password) { this.password = password; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } } ---

Passing Parameters to ActionForward from Action

2006-02-13 Thread siva
Hi, I want to know how to pass parameters from an Action to corresponding ActionForward. Basically, I am having only the jsp name in forward in struts-config.xml. But, when action is processed, I want to send some parameters to the corresponding actionforward. Can some be help me in expla

RE: Passing Parameters to Tiles Layout

2005-01-12 Thread David G. Friedman
Message- From: Tait, Allen [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 12, 2005 8:47 AM To: 'user@struts.apache.org' Subject: Passing Parameters to Tiles Layout Assume a standard Tiles layout with Header, Navigation, Body, and Footer, each implemented as a JSP. In this s

Passing Parameters to Tiles Layout

2005-01-12 Thread Tait, Allen
Assume a standard Tiles layout with Header, Navigation, Body, and Footer, each implemented as a JSP. In this setup, the navigation.jsp is responsible for dynamically generating the left hand navigation from an XML configuration file. For each page request, this component needs to build the navig