• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get JSP packed in WEB-INF/lib/*.jar file ?  RSS feed

 
Petar Thomas
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...

What I wish is actually to have parts of the application stored in jars... so that I can import jar and View components as well .... and then build the whole application with imported jars.... kind of programmaticaly.. ( )

Can I make a JSP , then put it in the jar, and somehow on the server maybe extract it, compile it, or what is necessary, maybe register url path if it would be done on that way... , and be able to get it with request...?

There is a Freemaker "template engine", but I need JSP engine becaouse of the tags.

Is it maybe the most obviouse solution to use ServletContext.getRealPath() method and try to write to a file system, and how much that would be a correct solution at all? It would be nicest to be able to compile JSP when I need it, from where I need it...

Thank you...

[edit]
Actually, this is neither important neither urgent to me. I can do it on easier way as well...
[edit]
but it would be nice to have it , if it's possible...

Thank You.



 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FreeMarker supports the use of custom tags.
 
Petar Thomas
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!