Hi,

I want to transform a WikiMarkup-text into HTML. But I want the HTML-code
from the PREVIEW and not from the VIEW-Context.

In my JSP-File: section == WikiMarkup of one section


    WikiEngine engine = WikiEngine.getInstance( getServletConfig() );   
    String requestContext = PageCommand.PREVIEW.getRequestContext();
    WikiContext wikiContext = engine.createContext(request, requestContext);
    String html = engine.textToHTML(wikiContext, section);      


The string contains the html-code from the VIEW-Context and not from the
PREVIEW-Context. What is my mistake?


-- 
View this message in context: 
http://www.nabble.com/textToHTML%28%29-with-PREVIEW-Context-tp23042986p23042986.html
Sent from the JspWiki - User mailing list archive at Nabble.com.

Reply via email to