using c:out with EL replacing bean:write

2005-12-19 Thread Srini Pillai
Hi all, I know this is more of a JSTL question but it would be really helpful if anyone could help me understand the usage of c:out with Expression Language (EL) which replaces the bean:write /. I believe Struts did not implement EL for bean:write / tag and few others and suggests using c:out /

Re: using c:out with EL replacing bean:write

2005-12-19 Thread Rick Reumann
On 12/19/05, Srini Pillai [EMAIL PROTECTED] wrote: This is the code I tried to display a link with a value in the dynamic form: c:forEach var=counter begin=0 end=${numTextFields} . a href=html-el:rewrite page=/FAEditor.do/?methodToCall=removeElementid=c:out

Re: using c:out with EL replacing bean:write

2005-12-19 Thread Srini Pillai
Thanks Rick, for responding quickly. I'm not sure what you are attempting to do with: value=${request['FAEditorForm'].id_${counter}} I am trying to access the value from the ActionForm for property 'id_0', 'id_1' etc... depending on the value of the ${counter}. The example you had suggested

Re: using c:out with EL replacing bean:write

2005-12-19 Thread Rahul Akolkar
On 12/19/05, Srini Pillai [EMAIL PROTECTED] wrote: Thanks Rick, for responding quickly. I'm not sure what you are attempting to do with: value=${request['FAEditorForm'].id_${counter}} snip/ Thumb rule: EL expressions that look like this are invalid: ${...${...}...} (unless you have

Re: using c:out with EL replacing bean:write

2005-12-19 Thread Craig McClanahan
On 12/19/05, Srini Pillai [EMAIL PROTECTED] wrote: Thanks Rick, for responding quickly. I'm not sure what you are attempting to do with: value=${request['FAEditorForm'].id_${counter}} I am trying to access the value from the ActionForm for property 'id_0', 'id_1' etc... depending on the

Re: using c:out with EL replacing bean:write

2005-12-19 Thread Srini Pillai
Craig, The looping I had mentioned is for displaying the text boxes (which grows dynamically) as well. Not sure how I could move that to the action class. Unless I am missing something. I understand the fact that the arguments and values for a link can be fed as a Map as you had suggested but the

Re: using c:out with EL replacing bean:write

2005-12-19 Thread Borut Hadžialić
I think you what u want to write is ${FAEditorForm[formProperty]} instead of ${FAEditorForm.formProperty} On 12/19/05, Srini Pillai [EMAIL PROTECTED] wrote: Rahul, Thanks for your reply... I tried to test the solution you had suggested, but ${FAEditorForm.formProperty} doesn't seem to