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'
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
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)
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
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
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
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
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
-
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
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
---
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
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
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
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.
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 -
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
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
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:
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
> 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
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 -
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
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,
-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
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
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 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
--
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:
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.
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
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
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
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
n password;
}
public void setPassword(String password) {
this.password = password;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
}
---
n password;
}
public void setPassword(String password) {
this.password = password;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
}
---
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
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
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
38 matches
Mail list logo