try {
String result;
// Find the simple object.
Simple simple = simple_factory_ref.find_simple();
if (changeCase.equals(defaultCase)) {
// Invoke the to_upper opeation on WebLogic Enterprise Simple object
org.omg.CORBA.StringHolder buf =
new org.omg.CORBA.StringHolder(mixed);
simple.to_upper(buf);
result = buf.value;
}
else
{
// Invoke the to_lower opeation on WebLogic Enterprise Simple object
result = simple.to_lower(mixed);
}
page.getBody()
.addElement(new HeadingElement("Output String: " + result, 4));
// Return the html to the client browser