You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jspwiki.apache.org by Lo...@log-net.com on 2009/03/02 17:10:02 UTC
embedding wiki in app
Is there an easy way to embed JSPWiki in our current J2EE application? Or
a subset of the functionality?
Thanks,
Lou
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LOG-NET, Inc.
The Logistics Network Management System
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
230 Half Mile Road
Third Floor
Red Bank, NJ 07701
PH: 732-758-6800
FAX: 732-747-7497
http://www.LOG-NET.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CONFIDENTIAL & PRIVILEGED
Unless otherwise indicated or if obvious from the nature of the content,
the information contained herein is privileged and confidential
information/work product. The communication is intended for the use of the
individual or entity named above. If the reader of this transmission is
not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this communication in error, please
notify the sender immediately by telephone (732-758-6800) or by electronic
mail (postmaster@LOG-NET.com), and destroy any copies, electronic, paper
or otherwise, which you may have of this communication. Thank you.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Re: embedding wiki in app
Posted by Murray Altheim <mu...@altheim.com>.
Louis.Masters@log-net.com wrote:
> Is there an easy way to embed JSPWiki in our current J2EE
> application? Or a subset of the functionality?
I've been using a combination of Jetty and JSPWiki embedded in a
standalone Java application for many years now. Once I have Jetty
up and running the wiki starts up with no problems.
The trick is to use JSPWiki's cascading properties feature. If you
open WEB-INF/jspwiki.properties, read its values, then write a file
named "WEB-INF/jspwiki.properties.0" containing modified values as
needed by your application, the WikiEngine will overwrite the
original values with the cascading properties file. This allows you
to modify things like boolean settings, paths, packages and search
paths, etc. I've found it sufficient to permit me to embed the
WikiEngine. You just need to be sure you write your cascading file
prior to the wiki engine starting up.
Another thing I'm doing is creating a WikiEngine whose sole purpose
is to parse wiki text content and fire events. For this I ended up
needing to disable the AAA features by implementing a WebAuthorizer
that simply passes true values for all methods (permitting anyone
to do anything, since there's never actually anybody except the
application itself). This needed a few default wiki pages and uses
the raw template. There is no UI.
None of this was particularly difficult.
See the javadocs on the PropertyReader:
https://svn.apache.org/repos/asf/incubator/jspwiki/trunk/src/java/org/apache/wiki/PropertyReader.java
for details on the cascading properties feature.
Murray
...........................................................................
Murray Altheim <murray09 at altheim dot com> === = =
http://www.altheim.com/murray/ = = ===
SGML Grease Monkey, Banjo Player, Wantanabe Zen Monk = = = =
Boundless wind and moon - the eye within eyes,
Inexhaustible heaven and earth - the light beyond light,
The willow dark, the flower bright - ten thousand houses,
Knock at any door - there's one who will respond.
-- The Blue Cliff Record
Re: embedding wiki in app
Posted by Janne Jalkanen <Ja...@ecyrd.com>.
Yes. Some pointers are available from
http://www.jspwiki.org/wiki/EmbeddingJSPWiki
And I know some embedders are lurking on this list too!
/Janne
On Mar 2, 2009, at 18:10 , Louis.Masters@log-net.com wrote:
> Is there an easy way to embed JSPWiki in our current J2EE
> application? Or
> a subset of the functionality?
>
> Thanks,
> Lou
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> LOG-NET, Inc.
> The Logistics Network Management System
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 230 Half Mile Road
> Third Floor
> Red Bank, NJ 07701
> PH: 732-758-6800
> FAX: 732-747-7497
> http://www.LOG-NET.com
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> CONFIDENTIAL & PRIVILEGED
> Unless otherwise indicated or if obvious from the nature of the
> content,
> the information contained herein is privileged and confidential
> information/work product. The communication is intended for the use
> of the
> individual or entity named above. If the reader of this
> transmission is
> not the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is
> strictly
> prohibited. If you have received this communication in error, please
> notify the sender immediately by telephone (732-758-6800) or by
> electronic
> mail (postmaster@LOG-NET.com), and destroy any copies, electronic,
> paper
> or otherwise, which you may have of this communication. Thank you.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Re: embedding wiki in app
Posted by Alexey Kakunin <ak...@emdev.ru>.
We are using JspWiki in our EmForge (http://www.emforge.org) for storing all
textual information.
During integration we placed JspWiki into Spring Framework environment and
written own JSF-based UI.
Some examples of possible integration you can seein EmForge Source-Code -
WikiService Implementation:
http://www.emforge.org/browser/EmForge/trunk/emforge-core/src/main/java/org/emforge/wiki
2009/3/2 <Lo...@log-net.com>
> Is there an easy way to embed JSPWiki in our current J2EE application? Or
> a subset of the functionality?
>
> Thanks,
> Lou
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> LOG-NET, Inc.
> The Logistics Network Management System
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 230 Half Mile Road
> Third Floor
> Red Bank, NJ 07701
> PH: 732-758-6800
> FAX: 732-747-7497
> http://www.LOG-NET.com
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> CONFIDENTIAL & PRIVILEGED
> Unless otherwise indicated or if obvious from the nature of the content,
> the information contained herein is privileged and confidential
> information/work product. The communication is intended for the use of the
> individual or entity named above. If the reader of this transmission is
> not the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited. If you have received this communication in error, please
> notify the sender immediately by telephone (732-758-6800) or by electronic
> mail (postmaster@LOG-NET.com), and destroy any copies, electronic, paper
> or otherwise, which you may have of this communication. Thank you.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
With Best Regards,
Alexey Kakunin, EmDev Limited
Professional Software Development:
http://www.emdev.ru