Meaningless Drivel is fun!*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Attributes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Attributes" Watch "Attributes" New topic
Author

Attributes

Angelina Gracy
Greenhorn

Joined: Apr 10, 2006
Posts: 3
Hai friends.

Kindly help me with answering these doubts:

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 ?

Thanks to all
Angelina
singh santosh
Ranch Hand

Joined: Jan 13, 2006
Posts: 136
hi angelina,


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.

regards

-santosh
[ April 21, 2006: Message edited by: singh santosh ]
 
 
subject: Attributes