This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
1 <a href="<c:url url='/cart.jsp?userid='ramesh'/>">View Cart</a> >> in this case, the url attribute for c:url will be completed partailly coz of multiple usage of single quote. So Containter will treat the value of URL as url='/cart.jsp?userid='. Hence this is wrong.
I feel the correct answer should be 4. this way the parameter is passed using 'param'.