This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes 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 ""tag:useObject"?" Watch ""tag:useObject"?" New topic
Author

"tag:useObject"?

Bob CHOI
Ranch Hand

Joined: Nov 10, 2006
Posts: 127
In jsp, we can use jsp:useBean to create a bean object.

Can we create other type of object with standard action or jstl than scripting e.g. <% request.setAttribute("name", new Object()) %>?

Probably we have to write our own custom tag "tag:useObject" for it, do we? :roll:


Hard work rewards
Bob CHOI
Ranch Hand

Joined: Nov 10, 2006
Posts: 127
just once more tiny try, i see: jsp:useBean actually does "tag:useObject" 2!!!
Bob CHOI
Ranch Hand

Joined: Nov 10, 2006
Posts: 127
We can use jsp:bean to create any type, which has non-parameterized constructor i assume. If such type without public setter, not so much pratical use can be foreseen since its object state is unable to be updated by standard action or jstl. Right?
 
Consider Paul's rocket mass heater.
 
subject: "tag:useObject"?