This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

precompile jsp

 
jonathan Greens
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
During deplooyment, I wish to precompile jsp for faster performance. But some of my jsps are meant to be statically included by other jsps, so those jsps alone will cause compilation problem. Is there a way to go around this problem?
thank you
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes,
The standard way of dealing with this is to give the jsp fragment files a ".jspf" extension. Since the compilers only look for files with ".jsp" extensions, the fragments will be ignored except when being merged with the parent jsp.
 
karthikeyan Chockalingam
Ranch Hand
Posts: 259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In few servers, you can set the flag to compile at startup and also specify the compilation order. Which server are you using ?
 
jonathan Greens
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using websphere v6.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic