I only used String as key.
public Object getStringMapped(String key) {
return map.get(key);
}
public void setStringMapped(String key, Object value) {
map.put(key, value);
}
Regards
On 9/18/06, Lixin Chu <[EMAIL PROTECTED]> wrote:
On 9/17/06, Yujun Liang <[EMAIL PR
On 9/17/06, Yujun Liang <[EMAIL PROTECTED]> wrote:
Have you tried "Mapped Properties"?
http://struts.apache.org/1.2.9/faqs/indexedprops.html
Regards
this is a good point. I have not tried it. Is it ok (in terms of
performance) to use a custom class as the key, not using Java primitives
like
2006 1:25 PM
To: Struts Users Mailing List
Subject: Re: calling method of a bean from JSP
i do not think it works.
**
This message is intended for the addressee named and may contain
privileged information or confidential infor
stom tag library...
From: Lixin Chu [mailto:[EMAIL PROTECTED]
Sent: Sat 16/09/2006 1:25 PM
To: Struts Users Mailing List
Subject: Re: calling method of a bean from JSP
i do not think it works.
**
This message is
you could move the logic into the view/jsp layer...something like:
or maybe a custom tag library...
From: Lixin Chu [mailto:[EMAIL PROTECTED]
Sent: Sat 16/09/2006 1:25 PM
To: Struts Users Mailing List
Subject: Re: calling method of a bean
i do not think it works.
Lixin Chu wrote:
What are you trying to achieve? Maybe you're trying to put logic in your
JSPs that more properly belongs in an action.
thanks. what i am trying to do is to get the value of a field. Say I get a
list of items:
class item {
Set values;
}
The item has a set of Values:
cl
What are you trying to achieve? Maybe you're trying to put logic in your
JSPs that more properly belongs in an action.
thanks. what i am trying to do is to get the value of a field. Say I get a
list of items:
class item {
Set values;
...
}
The item has a set of Values:
class Value {
Attribu
Lixin Chu wrote:
I thought this is for getting the value of a property ? and how to pass a
Yes.
parameter to the method ? I think I have tried that but does not work.
You can't invoke arbitrary bean methods with EL; it's designed for
accessing properties, not calling arbitrary methods.
I thought this is for getting the value of a property ? and how to pass a
parameter to the method ? I think I have tried that but does not work.
or
On 9/12/06, Lixin Chu <[EMAIL PROTECTED]> wrote:
Hi,
would like to check if there is existing tag available to allow method
invocation from JSP directly, something similar to this :
"Call JavaBean methods from JSP 2.0 pages "
http://www.javaworld.com/javaworld/jw-05-2003/jw-0523-callt
Hi,
would like to check if there is existing tag available to allow method
invocation from JSP directly, something similar to this :
"Call JavaBean methods from JSP 2.0 pages "
http://www.javaworld.com/javaworld/jw-05-2003/jw-0523-calltag.html
thanks
lx
12 matches
Mail list logo