I've heard/been told to stay away from EL, because the performance is rather poor, something about every single page view requiring a compilation. I like using the struts tags, I've used a few of the JSTL tags, but anytime I've used EL I've been kind of put off by tryning to get the EL variables to work with any other scripting variables.
Is there any truth to the poor performance? and is there any easy way to get the EL variables to work with other scripting variables?
Originally posted by Tad Dicks: Is there any truth to the poor performance? and is there any easy way to get the EL variables to work with other scripting variables?
The performance shouldn't be any worse than the Struts tags. Every page view does not require compilation, although if it did that WOULD be horrible on performance. If you want it to work well with scripting variables you'll have to set them to context: pageContext.setAttribute("myVariable", myVariable);
You should be able to accomplish just about everything you could need without using scriptlets. If you avoid scriptlets & logic/bean tags, this context/compatability becomes a non-issue.
Joined: Dec 02, 2000
I got it working with the Struts Iterate tag and the bean:write But when am building the list ,every row has a check box and I need to associate the value of the firstname with that checkbox so that I can delete that particualr name from DB. How can I do using <html:checkbox
Your question is large in scope. I recommend consulting the Struts user guide for help with the use of html:checkbox, try out what you can, and if you absolutely can't figure it out go ahead and post your progress with a request for some help. Otherwise, it looks like you are asking others to do your work for you without putting any effort in it yourself.