title: What are the best practices for passing JSP variables to html tag's attributes?
body: <p>I have a code like <code>&lt;div id="test&lt;%=j%&gt;" class="test"  &gt;
                    &lt;/div&gt;</code> and my editor shows problems with the matching divs. I suspect this is responsible for a lot of ghosts in my code where values are not populated in beans, etc. Is this a correct way of doing this? Any guidelines or best practices that I should follow?</p>