• Post Reply Bookmark Topic Watch Topic
  • New Topic

Global and Common function and constants in JSP

 
Guddu Ali
Ranch Hand
Posts: 40
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to use common functions and constants in one jsp page which are used in another jsp page on page load time?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSPs should not contain Java code or common constants; that's the programming style of 10 years ago. They're used for creating the V in MVC, not the M, and not the C.

If you want to include JSP snippets in other JSPs, then there are 2 ways to do this: http://docs.oracle.com/javaee/1.4/tutorial/doc/JSPIntro10.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!