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
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
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
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,
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
5 matches
Mail list logo