Difference between c:forEach and logic:iterate
I have always wanted to know the difference between JSTL c:forEach iteration tag and Struts logic:iterate tag. I have never needed to use struts logic iterate tag because c:forEach took care of my...
View ArticleJSP, EL and JS
Can you identify the bug in the piece of code below? <a href=”javascript:void(0)” onclick=”foo(‘${bar}’)”>Moo</a> Your code goes for a toss if bar contains single quotes. When you are...
View ArticleKeeping JSPs independent of application context
All most all JSPs invariably contain script or link tags. Say, for example, we have the following in our JSP <script src=”/js/foo.js” type=”text/javascript”></script> This is fine as long...
View Article
More Pages to Explore .....