Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP and Classes  RSS feed

 
Nick Ueda
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all!
Does a class have to be a JavaBean for it to run in a JSP?
Or can I declare classes and call methods just like in a normal application?
Thanks,
Nick Ueda
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As long as you are using <% scriplet %> tags you can use any java class you want anywhere in a JSP page you want. Now, you won't be able to utalize a lot of them. For example, there would be no reason to use any SWING GUI classes now would there.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!