This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
1. When to use attributes and when to use parameters? 2. Why we should learn custom tag models when we can develop the same with JSTL and EL ?
Ans1)whenever u want to set any kind of object into [request,session ] u have to use attributes(setAttribute(String,Object)) .I guess There is no other way to do this.Parameters are passed from the jsp pages for the controls (like input tag,textarea,text,button etc..).There is no method to set it explicitely.
Ans2 Yeh ,u can very well use Jstl and EL in ur jsp .But there funtionality is somewhat limited to wat has been provided.What if u want to use ur own logic into jsp page without using scripting ?? In this case u hav to write ur custom tag/custom tag file.