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

about jspInit  RSS feed

 
santhosh kumar vk
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
How to override jspInit() method in jsp
 
avi sinha
Ranch Hand
Posts: 453
Google Web Toolkit Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can override it as



but i think you should not do it. A jsp is just for the view and if you are overriding it then you are introducing business logics in it.
which is not recommended.

avi sinha
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The time for putting Java code in JSP pages is long past. Time to move onto accepted best practices.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This wasn't an accepted practice even back when Java code in JSPs was an accepted practice.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Newton wrote:This wasn't an accepted practice even back when Java code in JSPs was an accepted practice.

Good point.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!