Pulling an env var or Java variable into a view in V3

Wessel, Keith kwessel at illinois.edu
Fri Jun 12 17:22:22 EDT 2015


I’m going to apologize in advance if this is a dumb question. I’m in the process of moving our login page from login.jsp in V2 into the spiffy new views in V3. I’ve worked with views a bit, but I’m no pro.

In our current setup, we display a rather inconspicuous note at the bottom of the login and error pages telling the user which IDP node they’re on. Helps us find login errors in the logs when they send us a screenshot. I used to do this by pulling in the system hostname and displaying it in my jsp code. Recently, I changed that to passing it to the jvm at start-up to give me more control over how it got displayed: -DidpNodeName=$node_hostname. It was nice either way because the IDP code could be the same on all cluster nodes and only the shell script was changed. It was in my .profile, so not even the tomcat start script had to differ.

Is there an easy way to pull something similar into the new login.vm? I’ve considered just putting the hodename in the message file. That would mean my message file would need to be different on each node, and I can live with that, but I suspect there’s a better way. Thoughts?

Of course, the best solution is to probably just pipe all logs to a central location so I don’t have to wonder which server to check for a reported issue. ☺

Keith



More information about the users mailing list