Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Using a class  RSS feed

 
Raees Uzhunnan
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I use a class with geter and seter methods as though like a JavaBean in JSP
Raees
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. You can use any Java class in a JSP, using scriptlets, just as you would in a Java program. Additionally, if your class is truly a bean (following the rules and patterns) you can also use the <jsp:useBean> and related tags to access and manipulate the beam.
hth,
bear
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!