Re: calling method of a bean from JSP

2006-09-18 Thread Yujun Liang
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

Re: calling method of a bean from JSP

2006-09-17 Thread Lixin Chu
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

Re: calling method of a bean from JSP

2006-09-17 Thread Lixin Chu
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

Re: calling method of a bean from JSP

2006-09-17 Thread Yujun Liang
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

RE: calling method of a bean from JSP

2006-09-16 Thread Strachan, Paul
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

Re: calling method of a bean from JSP

2006-09-15 Thread Lixin Chu
i do not think it works.

Re: calling method of a bean from JSP

2006-09-15 Thread Laurie Harper
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

Re: calling method of a bean from JSP

2006-09-14 Thread Lixin Chu
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

Re: calling method of a bean from JSP

2006-09-14 Thread Laurie Harper
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.

Re: calling method of a bean from JSP

2006-09-13 Thread Lixin Chu
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.

Re: calling method of a bean from JSP

2006-09-13 Thread Monkeyden
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

calling method of a bean from JSP

2006-09-12 Thread Lixin Chu
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