<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
<div class="moz-cite-prefix">On 10/8/15 9:50 AM, Cantor, Scott
wrote:<br>
</div>
<blockquote cite="mid:4F3B7BD8-963E-4FA7-AFB1-06AE7878C7CE@osu.edu"
type="cite">
<pre wrap="">On 10/8/15, 4:41 AM, "users on behalf of Martin Haase" <a class="moz-txt-link-rfc2396E" href="mailto:users-bounces@shibboleth.netonbehalfofMartin.Haase@DAASI.de"><users-bounces@shibboleth.net on behalf of Martin.Haase@DAASI.de></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Dear team,
I have response from our designer that it is quite impractical to
maintain both the new views/*.vm templates and the webapp/index.jsp
which shows up when calling /idp/. Any chance the latter can be
relalized using velocity templates as well, and having really all GUI
stuff under /views?
</pre>
</blockquote>
<pre wrap="">
Seems like it would be quite ugly to pull off. We'd probably have to embed use of the Velocity engine inside a JSP page or in a servlet mounted there.</pre>
</blockquote>
<br>
Fwiw, I have actually used Velocity to render content inside a JSP.
My case was a custom tag to represent a particular kind of object,
where I also needed to generate the same HTML fragments outside of
JSP anyway. This seems easier actually.<br>
<br>
But honestly, I probably wouldn't do it either of those ways. I'd
just add additional servlet mapping(s) for the MVC DispatcherServlet
and just do it as a simple controller + (Velocity) view. Unless
there's something about our setup that would make that hard, but
off-hand I don't know of anything.<br>
<br>
</body>
</html>