This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Code re-use - what's the best practice  RSS feed

 
Reggie McDougal
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a reusable piece of code I use for navigation that will be the
same thoughout the application, for navigation in all my jsp's.

next, last, previous etc...

Now my question is what is the best practice in storing this code, I need to used the request object as you can see below.

1. Should I use an include.jsp
2. A bean??

If some one could give an idea of what the best appraoch is would be great.


 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66203
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perfect opportunity for a custom tag.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!