SuperX-Kernmodul
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

43 lines
840 B

<%
StringTokenizer tk;
String paragraph="";
SxResultRow maskRow;
try {
SxResultSet masksRs = ServletUtils.execute("Wiki Seite ", queryWiki,mandantenid);
if (masksRs.size() == 1)
{
maskRow = (SxResultRow) masksRs.first();
wikiHeader=maskRow.get(0).toString();
wikiBody=maskRow.get(1).toString();
}
}
catch(Exception e)
{
System.out.println("DBConnection is not ready yet: "+ e.toString());
}
if(!wikiBody.equals(""))
{
WikiModel wikiModel = new WikiModel("/superx/images/${image}",
"/superx/${title}");
try {
wikiModel.setUp();
info_text_html = wikiModel.render(wikiBody);
} catch (Exception e1) {
tk = new StringTokenizer(wikiBody, "\n", false);
while (tk.hasMoreElements()) {
paragraph=tk.nextElement().toString();
info_text_html += "<p>"+paragraph+"</p>";
}
}
finally {
wikiModel.tearDown();
}
}
%>