• Post Reply Bookmark Topic Watch Topic
  • New Topic

externalisation of the jsp's  RSS feed

 
geeta lalchandani
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can jsp's be externalised...??

What i mean by that is.. i want to include a jsp that is placed on my C;\, in the jsp that is in my Webcontent.

Can this be done?
 
geeta lalchandani
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can this be done?? Is there a way to do this?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't believe there is a spec compliant way to do this.

The Servlet/JSP specs really push the idea of webapps being complete units; prefering to duplicate files over sharing them and creating external dependencies.

One approach to managing these duplicate files is to assemble your apps with a build tool such as Ant. With this approach, you can work with one copy of the file during development and push it out to multiple apps at build time.
 
geeta lalchandani
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One approach to managing these duplicate files is to assemble your apps with a build tool such as Ant. With this approach, you can work with one copy of the file during development and push it out to multiple apps at build time.


Will the build process not affect the application? Will I have to take the application down?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!