• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

"tag:useObject"?

 
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:
 
Bob CHOI
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
just once more tiny try, i see: jsp:useBean actually does "tag:useObject" 2!!!
 
Bob CHOI
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
reply
    Bookmark Topic Watch Topic
  • New Topic