Quantcast
Channel: { return this.contents() } » JSP
Browsing all 3 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article



Image may be NSFW.
Clik here to view.

JSP, 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 Article

Image may be NSFW.
Clik here to view.

Keeping 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
Browsing all 3 articles
Browse latest View live




Latest Images