login.vm customization question

Cantor, Scott cantor.2 at osu.edu
Fri Jul 17 19:16:51 EDT 2015


On 7/17/15, 6:59 PM, "users on behalf of O'Dowd, Josh" <users-bounces at shibboleth.net on behalf of Josh.O'Dowd at mso.umt.edu> wrote:

>Sorry to split my reply.  Your last suggestion is to switch to JSPs.  Is there an instruction set for doing that properly with v3.x somewhere?

I believe I documented the basics somewhere, but if not, you rename or remove the vm file and put your JSP in edit-webapp/WEB-INF/jsp and rebuild/restart, and it should log the Velocity failure and then find the JSP. Name is the same of course, it's just looking for <viewname>.jsp instead of <viewname>.vm

The hard part is all the work involved in building the view properly and I don't think we have examples of that left live right now. The objects supplied to the view context are of course the same, but there's obviously more syntax needed to use them.

An old snapshot of the login view in JSP form was in alpha1:

http://svn.shibboleth.net/view/java-identity-provider/tags/3.0.0-alpha1/idp-war/src/main/webapp/WEB-INF/jsp/login.jsp

The standard SWF variables are in request attributes to get the form built right.

I don't believe we had examples of using Spring properties for content indirection at that point, but Rod just did something with that recently in this regular JSP page:

http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-war/src/main/webapp/WEB-INF/jsp/metadata.jsp


I was going to try and maintain a feature parity version in JSP but it just got to be too much work. If somebody offers to maintain views in JSP, I'm not against keeping them in the distribution.

-- Scott



More information about the users mailing list