I have a WebSphere (Java) application that I need to “convert” to be a Notes application (due to the security restrictions). The web application is set up to have a WAR file for the UI and JAR file(s) for all the business and database logic.
The only way I can think of doing this is to create Agents and have “println” statements outputting the HTML and dynamic values retrieved by the objects from the JAR file(s).
Agent Example:
import com.mybusiness.*;
import lotus.domino.*;
import java.util.*;
import java.io.PrintWriter;
public class SearchAgent extends AgentBase
{
public void NotesMain()
{
PrintWriter out = this.getAgentOutput();
out.println("<p>Output some static html text in this paragraph element.</p>");
List searchResults = (new MyFinder()).findAll();
Iterator iterator = searchResults.iterator();
int i = 0;
out.println("<table>");
while(iterator.hasNext())
{
BusinessObj obj = (BusinessObj)iterator.next();
out.println("<tr><td>" + i + "<td><td>" + obj.getName() + "</td></tr>");
i++;
}
out.println("</table>");
}
}
I’m hoping their is a way to use Notes Pages, Forms, Views, etc to keep from having HTML embedded in the Java code.
Thanks in advance!