Editing JSP message keys?

0
No votes yet

I'm trying to change the copyright information on the login page.
The login page info is coming from /opt/luminis/webapps/luminis/jsp/lib/footer.jsp
Once logged into the portal, the info is coming from /opt/luminis/webapps/luminis/WEB-INF/uPortal/org/jasig/portal/layout/tab-column/nested-tables/nested-tables.xsl

In the footer.jsp there is the following:
fmt:setBundle basename="com.pipeline.lib.footer" />
span id="copyright" fmt:message key="copyright.message" / /span

I am assuming that to change the message, I have to find "copyright.message" within the file that the bundle is pointing to. However there is no file called "com.pipeline.lib.footer" or directory either. Is this defined somewhere else? Or am I completely misunderstanding how the jsp works?

I know how to edit the html code within the jsp file, then stop the webserver, compilejsp, then start the webserver. That works fine, I just can't find where the messages are.

I am pretty sure that this is defined in a .properties file, but I can't search through them to find a text string.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Searching for message keys

Even searching the system for the message key didn't come up with anything other then the file that calls it.

Command:
find $CP_ROOT . | xargs grep -l "copyright.message" 2> /dev/null
Result:
/opt/luminis/webapps/luminis/jsp/lib/footer.jsp

jar/ldap

Luminis isn't very consistent as to where and how it stores data, code, etc. My guess is that the copyright.message string is somewhere either in the LDAP or in a JAR file. You'd have to try to guess which jar file might contain this, un-jar it, change the appropriate file(s) within, re-jar it, and restart the webserver.

You can unjar and rejar these via command-line (see the customization guide someone provided the link to), or you can actually use winzip to uncompress them.

We simply hard-coded our copyright message in the footer instead of using their variable and try to define that variable. It works just fine, and we didn't have to go through hundreds of files to find it.

Found the footer properties

Found it:
/opt/luminis/webapps/luminis/WEB-INF/lib/lumins-resources-4.0.1.jar

There are several properties that start with footer. I can't imagine trying to guess which jar file and then which properties file that some of these things are pointing to.

I would also be very worried that any changes made would be overwritten in a future upgrade with a new jar file.

For now we'll just edit the jsp file and hardcode it in there.

Try this

Try this link http://www.lumdev.net/node/41

enjoy :)

rich