• Post Reply Bookmark Topic Watch Topic
  • New Topic

Regarding jsp:useBean

 
Renu Radhika
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I saw in one of whizlab's trial questions correct options the 'type' attribute as java.lang.String.Is this a correct usage?
 
Leandro Melo
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Renu.

Yes, you can use java.lang.String as the type of a bean.


[ July 06, 2007: Message edited by: Leandro Melo ]
 
Renu Radhika
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But then how will we define getter and setter methods?Its mandatory for javabeans right?
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!