See the basic difference between c:set and jsp:useBean is: c:set is a JSTL tag while jsp:useBean is a JSP action.
Second thing, you can use jsp:useBean either to retrieve a bean or create a bean object. While c:set is used to set the property of an already existing bean not to create a bean or get a bean. c:set works somewhat similar to jsp:setProperty action for java beans.
And third thing, there is no scope attribute for c:set(when you are using it with target attribute) JSTL tag as it is there for jsp:useBean JSP action. And if you provide the value of target attribute as an EL expression, searching is from most restrictive scope to least restrictive scope.
Q1) I want know when to use <c:set target>? Q2)Please let me know things that we can do with bean in parallel with <c:set target> with code? Q3) <c:set target> helps to add an entry in map isone advantage as to beans? Am i correct? Q4) Please give simple code that helps me to undertand c:set target in parallel with bean actions?
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads