Main -> Support Zone -> InSite Archives -> May Front Page -> Tips & Techs |
InSite, May 1999 Tips & Techs Pointers from Open SiteSearch Product Support Staff |
Modifying EmailRecs.java
Malia Watson, Open SiteSearch Support Specialist
Following are instructions for customizing messages included with email of bookmarked selections.
Steps | Example | |
1. | Open Locate: StringBuffer s = new StringBuffer( ); |
StringBuffer s = new StringBuffer(); if (name != null && name.length() > 0) s.append("Hello "); if (name != null && name.length() > 0) { s.append(name); s.append(", "); } s.append("\n"); if (note != null && note.length() > 0) { s.append(note); s.append("\n"); }
s.append("Thanks for using WebZ. \n"); |
2. | Edit text in the s.append methods Substitute your institution's message |
s.append("University Systems");
|
3. | Save file then recompile NOTE: In order for the file to successfully compile, your CLASSPATH must be set correctly.
For more information about setting the CLASSPATH variable: |
javac EmailRecs.java |
[Main][Documentation][Support][Technical Reference][Glossary][Search] |