Re: HashMap with bean:define

2006-03-27 Thread Ahmed Hashim
Sure, I prefer to use JSTL rather than Struts taglib, but jsp:useBean should be replaced too by JSTL or Struts tags. bean:define id=map3 name=actionForm property=map / c:set target=${map3} property=id value=123 / c:set target=${map3} property=name value=ahmed / using this way is best case for

HashMap with bean:define

2006-03-26 Thread Ahmed Hashim
Dear All, % java.util.HashMap rawSourceMap=new java.util.HashMap(); rawSourceMap.put(id, 123); rawSourceMap.put(name, ahmed); pageContext.setAttribute(ourrefLink,rawSourceMap); % html:link action=Action name=ourrefLink bean:message bundle=job key=job.joblist.button1 / /html:link

Re: HashMap with bean:define

2006-03-26 Thread Mark Lowe
On 3/26/06, Ahmed Hashim [EMAIL PROTECTED] wrote: Dear All, % java.util.HashMap rawSourceMap=new java.util.HashMap(); rawSourceMap.put(id, 123); rawSourceMap.put(name, ahmed); pageContext.setAttribute(ourrefLink,rawSourceMap); % html:link action=Action name=ourrefLink

Re: HashMap with bean:define

2006-03-26 Thread Ahmed Hashim
Thanks Mark, I tried it and it is working fine with Valid XHTML output, It is the best solution I have till now. But I hope that I can make it using Struts Tags if anyone know. Thanks. On 3/26/06, Mark Lowe [EMAIL PROTECTED] wrote: On 3/26/06, Ahmed Hashim [EMAIL PROTECTED] wrote: Dear All,

Re: HashMap with bean:define

2006-03-26 Thread Mark Lowe
On 3/26/06, Ahmed Hashim [EMAIL PROTECTED] wrote: Thanks Mark, I tried it and it is working fine with Valid XHTML output, It is the best solution I have till now. But I hope that I can make it using Struts Tags if anyone know. I dont think there is, the handy thing with jstl is the way that