aspose file tools*
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 Spring in Action this week in the Spring 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?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: "tag:useObject"?