%@page pageEncoding="utf-8" contentType="text/html" %> <%@ page import ="java.util.Hashtable" %> <%@ page import ="java.util.StringTokenizer" %> <%@ page import ="de.superx.common.SxResultSet,de.superx.common.SxResultRow,de.superx.servlet.ServletUtils" %> <% String mandantenid="default"; //Ermittlung der Mandantenid zuerst aus Session, //wenn leer (d.h. User ist noch nicht angemeldet) //dann über request-Parameter Object mandantobject=request.getSession().getAttribute("MandantenID"); if(mandantobject != null) mandantenid=mandantobject.toString(); String mandantparam=request.getParameter("MandantenID"); if(mandantparam !=null && !mandantenid.equals("")) mandantenid=mandantparam; String wikiHeader="Willkommen zu SuperX"; String wikiBody=""; String queryWiki = "select contents_short,contents_long \n" + "from sx_captions where id='WIKI_WELCOME' and locale='de'" ; String content="=Wiki Test="; String default_text_html=""; 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()); } content=wikiBody; %> <% if(!content.equals("")) { out.println(content); } else { //Default Text falls es keine Wiki Seite gibt: %>
|
|||||||||
|
|||||||||
|
|||||||||
|
Community |
|
|
Forum |
|
|
Download |
|
|
Weitere Infos und Support |
