| Newsgroups |
gmane.education.weblabs.webreports.devel |
| Message-ID |
<[email protected]> |
This is a multi-part message in MIME format.
--------------050605080607040504090105
Content-Type: multipart/alternative;
boundary="------------070102020404010804040206"
--------------070102020404010804040206
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Hi,
still not sure if anybody tried to setup the webapp so far. Here is a
step-by-step-guidance which is working for me:
"What's to do for successfully running all build-tasks": (hey - what a
title!)
### build ###
is ok from the stand:
Excluded: scr-files in "/test" are missing (now)... would be a good idea
to re-add them in cvs. Please copy from the former version:
The junit-section in build.xml is running properly and produces
*beautiful* test-reports -> allmost all tests are OK. This seems the
proper way to handle the application at this state of development...
junit.jar must (for some classloader-reason) copied to
ant_install_dir/lib/ therefore (and should not be in classpath).
### docs ###
are build with errors - should be adequate for now...
### deploy ###
is ok - needs some changes in build.properties:
needs the path to the webapp: "web.dir=webreports_project_path/web"
needs the path to tomcat: "web.dir=your_tomcat_path"
I choosed the existing webreports/web -path for webapp-root, which seems
a good idea... ;-)
### restart ###
There are some more things to do now:
put a file named "webreports.xml" into your tomcat/webapp-dir:
<Context path="/webreports" docBase="F:\projects\webreports\web"
debug="0" privileged="false">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_webreports_log." suffix=".txt"
timestamp="true"/>
</Context>
http://localhost:8080/webreports/ is your URL to webapp now. docBase
must point your webapp-root (...webreports/web).
STRUTS:
There are some struts-template in use, so a struts setup is needet,
which is no bad idea anyway:
Deploy struts.war's (simply put into a tomcat/webapp and run the
server). Take all tld's and struts-config.xml from the
struts-blank/WEB-INF-dir and copy to webreports/web/WEB-INF/. Copy
struts.jar into the webreportwebapp/lib.
WIKI:
I added wiki to the app -> I don't know too much about "wiki", so I just
added:
Deploy the JSPWiki.war. Copy all jar's from the wiki's webapp's lib into
the webreport/webapp/lib. Copy jspwiki.tld into webreports/web/WEB-INF/.
Copy jspwiki.properties into webreports/web/WEB-INF/ and configure for
your needs.
WEB.XML:
At last there are some adds in web.xml: Config's for struts and wiki are
needet. I paste the content at the end of the mail... not sure if
attachments are working for mailing-list.
Ok, here we are: Running ant with "compile", "test", "doc", "deloy" and
"restart" should work now.
restart brings up an exception if tomcat isn't already up - ignore.
I hope I didn't forget anything - wicked thing that webapp ;-)
Bye and have *fun*!
Siegfried
The WEBINF:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>AddNote</servlet-name>
<servlet-class>org.weblabs.wr.servlets.AddNote</servlet-class>
</servlet>
<servlet>
<servlet-name>ShowNote</servlet-name>
<servlet-class>org.weblabs.wr.servlets.ShowNote</servlet-class>
</servlet>
<!-- ### Wiki-Stuff #################################### -->
<!--
Now, let's define the XML-RPC interfaces. You probably don't have to
touch these.
First, we'll define the standard XML-RPC interface.
-->
<servlet>
<servlet-name>XMLRPC</servlet-name>
<servlet-class>com.ecyrd.jspwiki.xmlrpc.RPCServlet</servlet-class>
<init-param>
<param-name>handler</param-name>
<param-value>com.ecyrd.jspwiki.xmlrpc.RPCHandler</param-value>
</init-param>
<init-param>
<param-name>prefix</param-name>
<param-value>wiki</param-value>
</init-param>
</servlet>
<!--
OK, this then defines that our UTF-8 -capable server.
-->
<servlet>
<servlet-name>XMLRPC-UTF8</servlet-name>
<servlet-class>com.ecyrd.jspwiki.xmlrpc.RPCServlet</servlet-class>
<init-param>
<param-name>handler</param-name>
<param-value>com.ecyrd.jspwiki.xmlrpc.RPCHandlerUTF8</param-value>
</init-param>
<init-param>
<param-name>prefix</param-name>
<param-value>wiki</param-value>
</init-param>
</servlet>
<!--
Attachment exchange handler.
-->
<servlet>
<servlet-name>AttachmentServlet</servlet-name>
<servlet-class>com.ecyrd.jspwiki.attachment.AttachmentServlet</servlet-class>
</servlet>
<!--
And finally, let us tell the servlet container which
URLs should correspond to which XML RPC servlet.
-->
<!-- By default, this is disabled. If you want to enabled it,
just uncomment the whole section. -->
<!-- ### Wiki-Stuff ends here ############################# -->
<!-- Mapping for the showNote servlet -->
<servlet-mapping>
<servlet-name>ShowNote</servlet-name>
<url-pattern>/notes/*</url-pattern>
</servlet-mapping>
<!-- Mapping for the showNote servlet -->
<servlet-mapping>
<servlet-name>AddNote</servlet-name>
<url-pattern>/addnotes/*</url-pattern>
</servlet-mapping>
<!-- ### Wiki-Stuff #################################### -->
<!-- REMOVE ME TO ENABLE XML-RPC
<servlet-mapping>
<servlet-name>XMLRPC</servlet-name>
<url-pattern>/RPC2/</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>XMLRPC-UTF8</servlet-name>
<url-pattern>/RPCU/</url-pattern>
</servlet-mapping>
AND REMOVE ME TOO -->
<servlet-mapping>
<servlet-name>AttachmentServlet</servlet-name>
<url-pattern>/attach</url-pattern>
</servlet-mapping>
<!-- This means that we don't have to use redirection
from index.html anymore. Yay! -->
<welcome-file-list>
<welcome-file>Wiki.jsp</welcome-file>
</welcome-file-list>
<!--
Here we define the users which are allowed to access JSPWiki
editor.
I'll provide here an example case where you can set up a Wiki
which allows everyone read access, but only authenticated
users are allowed to edit (i.e. access the Edit.jsp page).
To enable this, remove the comments signs.
We setup here two sample roles, "admin" and "user".
There is no real difference between these two for now.
You must also add to your $TOMCAT_HOME/conf/tomcat-users.xml
the actual user accounts.
-->
<!-- START OF ACCESS RESTRICTION
<security-constraint>
<web-resource-collection>
<web-resource-name>Protected Area</web-resource-name>
<url-pattern>/Edit.jsp</url-pattern>
<http-method>DELETE</http-method>
<http-method>GET</http-method>
<http-method>POST</http-method>
<http-method>PUT</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>admin</role-name>
<role-name>user</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>JSPWiki Editor</realm-name>
</login-config>
-->
<!-- ### Wiki-Stuff ends here ############################# -->
<!-- Struts Tag Library Descriptors -->
<taglib>
<taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
<taglib>
<taglib-uri>/WEB-INF/weblabs.tld</taglib-uri>
<taglib-location>/WEB-INF/weblabs.tld</taglib-location>
</taglib>
</web-app>
Yishay Mor wrote:
Feeyoo.
And can you even, ah, install and run it?
-----Original Message-----
From: [email protected]
To: Yishay Mor
Sent: 9/25/03 6:19 PM
Subject: Re: [Webreports-developers] New CVS structure
Hi,
looks much better now! Building runs without puttings a hand on the
files.
Ciao, Siegfried
Yishay Mor wrote:
>I added a module called "webreports" under the CVS root. Essentially,
>
>
>I intend to place all code there and remove all other modules, so you
>can checkout the whole codebase by running "co webreports" instead of
>"co .". I tried to clean it up, it should build now. Can someone
>please try?
>
>
>
[email protected] wrote:
> Hi all!
> I had a first try on setting up the work environment - no idea who of
> you already did so... however: Yishay suggestet to share my *pains*:
>
> ### Compiling Pain ###:
>
> -> org.weblabs.jspwiki.plugins.ShowContext is in file named
> showWikiContext.java
>
> -> jar for com.ecryd.jspwiki.* is not included in buildfile:
>
> I took JSPWiki.jar from jspwiki-2.0.50-bin.zip
> available at http://www.jspwiki.org/Wiki.jsp?page=JSPWikiDownload
> (what ever it is?)
>
> -> AddNote.java imports org.weblabs.wr.tags.NoteTag which is missing
> as src-file.
>
> -> org.weblabs.wr.servlets.AddBibNote.java
> ('at the end of file' - no linenumbers for this editor? ;-) ):
> resp.getWriter().print(POPUP_HTML);
> ... where POPUP_HTML seems undefined.
>
>
> ### Tomcat Pain ###:
>
> Could not figure out where the webapp-root should be at least.
> Separating the app-folder from tomcat-installation did not work for me
> - likly my fault. I tried to copy all what needed to an ordinary web-app:
>
> struts tld's and struts-config.xml are missing. Copying all this from
> an empty struts-template makes the server running - somehow. I'am
> shure there is some-one out there who wants to test the server-setup
> in detail... ;-)
>
> Bye and good Luck!
>
> Siegfried
>
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Webreports-developers mailing list
> Webreports-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/webreports-developers
>
>
--------------070102020404010804040206
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Hi,<br>
still not sure if anybody tried to setup the webapp so far. Here is a
step-by-step-guidance which is working for me:<br>
<br>
"What's to do for successfully running all build-tasks": (hey - what a
title!)<br>
<br>
### build ###<br>
is ok from the stand:<br>
Excluded: scr-files in "/test" are missing (now)... would be a good
idea to re-add them in cvs. Please copy from the former version: <br>
<br>
The junit-section in build.xml is running properly and produces
*beautiful* test-reports -> allmost all tests are OK. This seems the
proper way to handle the application at this state of development...
junit.jar must (for some classloader-reason) copied to
ant_install_dir/lib/ therefore (and should not be in classpath).<br>
<br>
### docs ### <br>
are build with errors - should be adequate for now...<br>
<br>
### deploy ###<br>
is ok - needs some changes in build.properties:<br>
needs the path to the webapp: "web.dir=webreports_project_path/web"<br>
needs the path to tomcat: "web.dir=your_tomcat_path"<br>
<br>
I choosed the existing webreports/web -path for webapp-root, which
seems a good idea... ;-)<br>
<br>
### restart ###<br>
There are some more things to do now:<br>
<br>
put a file named "webreports.xml" into your tomcat/webapp-dir:<br>
<br>
<Context path="/webreports" docBase="F:\projects\webreports\web"<br>
debug="0" privileged="false"><br>
<br>
<Logger className="org.apache.catalina.logger.FileLogger"<br>
prefix="localhost_webreports_log." suffix=".txt"<br>
timestamp="true"/><br>
<br>
</Context><br>
<br>
<a class="moz-txt-link-freetext" href="http://localhost:8080/webreports/">http://localhost:8080/webreports/</a> is your URL to webapp now. docBase
must point your webapp-root (...webreports/web).<br>
<br>
<br>
STRUTS:<br>
There are some struts-template in use, so a struts setup is needet,
which is no bad idea anyway:<br>
Deploy struts.war's (simply put into a tomcat/webapp and run the
server). Take all tld's and struts-config.xml from the
struts-blank/WEB-INF-dir and copy to webreports/web/WEB-INF/. Copy
struts.jar into the webreportwebapp/lib.<br>
<br>
<br>
WIKI:<br>
I added wiki to the app -> I don't know too much about "wiki", so I
just added:<br>
<br>
Deploy the JSPWiki.war. Copy all jar's from the wiki's webapp's lib
into the webreport/webapp/lib. Copy jspwiki.tld into
webreports/web/WEB-INF/. Copy jspwiki.properties into
webreports/web/WEB-INF/ and configure for your needs.<br>
<br>
WEB.XML:<br>
At last there are some adds in web.xml: Config's for struts and wiki
are needet. I paste the content at the end of the mail... not sure if
attachments are working for mailing-list.<br>
<br>
Ok, here we are: Running ant with "compile", "test", "doc", "deloy"
and "restart" should work now.<br>
restart brings up an exception if tomcat isn't already up - ignore.<br>
<br>
I hope I didn't forget anything - wicked thing that webapp ;-)<br>
<br>
Bye and have *fun*!<br>
<br>
Siegfried<br>
<br>
<br>
The WEBINF:<br>
<br>
<br>
<br>
<?xml version="1.0" encoding="ISO-8859-1"?><br>
<br>
<!DOCTYPE web-app<br>
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"<br>
<a class="moz-txt-link-rfc2396E" href="http://java.sun.com/dtd/web-app_2_3.dtd">"http://java.sun.com/dtd/web-app_2_3.dtd"</a>><br>
<br>
<web-app><br>
<br>
<servlet><br>
<servlet-name>AddNote</servlet-name><br>
<servlet-class>org.weblabs.wr.servlets.AddNote</servlet-class><br>
</servlet><br>
<br>
<servlet><br>
<servlet-name>ShowNote</servlet-name><br>
<servlet-class>org.weblabs.wr.servlets.ShowNote</servlet-class><br>
</servlet><br>
<br>
<br>
<!-- ### Wiki-Stuff #################################### --><br>
<br>
<!--<br>
Now, let's define the XML-RPC interfaces. You probably don't
have to<br>
touch these.<br>
<br>
First, we'll define the standard XML-RPC interface.<br>
--><br>
<servlet><br>
<servlet-name>XMLRPC</servlet-name><br>
<servlet-class>com.ecyrd.jspwiki.xmlrpc.RPCServlet</servlet-class>
<br>
<init-param><br>
<param-name>handler</param-name><br>
<param-value>com.ecyrd.jspwiki.xmlrpc.RPCHandler</param-value><br>
</init-param><br>
<br>
<init-param><br>
<param-name>prefix</param-name><br>
<param-value>wiki</param-value><br>
</init-param><br>
</servlet><br>
<br>
<!--<br>
OK, this then defines that our UTF-8 -capable server.<br>
--><br>
<br>
<servlet><br>
<servlet-name>XMLRPC-UTF8</servlet-name><br>
<servlet-class>com.ecyrd.jspwiki.xmlrpc.RPCServlet</servlet-class>
<br>
<init-param><br>
<param-name>handler</param-name><br>
<param-value>com.ecyrd.jspwiki.xmlrpc.RPCHandlerUTF8</param-value><br>
</init-param><br>
<br>
<init-param><br>
<param-name>prefix</param-name><br>
<param-value>wiki</param-value><br>
</init-param><br>
</servlet><br>
<br>
<br>
<!--<br>
Attachment exchange handler.<br>
--><br>
<br>
<servlet><br>
<servlet-name>AttachmentServlet</servlet-name><br>
<servlet-class>com.ecyrd.jspwiki.attachment.AttachmentServlet</servlet-class><br>
</servlet><br>
<br>
<br>
<!--<br>
And finally, let us tell the servlet container which<br>
URLs should correspond to which XML RPC servlet.<br>
--><br>
<br>
<!-- By default, this is disabled. If you want to enabled it,<br>
just uncomment the whole section. --><br>
<br>
<!-- ### Wiki-Stuff ends here ############################# --><br>
<br>
<br>
<br>
<!-- Mapping for the showNote servlet --><br>
<servlet-mapping><br>
<servlet-name>ShowNote</servlet-name><br>
<url-pattern>/notes/*</url-pattern><br>
</servlet-mapping><br>
<br>
<!-- Mapping for the showNote servlet --><br>
<servlet-mapping><br>
<servlet-name>AddNote</servlet-name><br>
<url-pattern>/addnotes/*</url-pattern><br>
</servlet-mapping><br>
<br>
<br>
<br>
<!-- ### Wiki-Stuff #################################### --><br>
<br>
<!-- REMOVE ME TO ENABLE XML-RPC<br>
<br>
<servlet-mapping><br>
<servlet-name>XMLRPC</servlet-name><br>
<url-pattern>/RPC2/</url-pattern><br>
</servlet-mapping><br>
<br>
<servlet-mapping><br>
<servlet-name>XMLRPC-UTF8</servlet-name><br>
<url-pattern>/RPCU/</url-pattern><br>
</servlet-mapping><br>
<br>
AND REMOVE ME TOO --><br>
<br>
<servlet-mapping><br>
<servlet-name>AttachmentServlet</servlet-name><br>
<url-pattern>/attach</url-pattern><br>
</servlet-mapping><br>
<br>
<br>
<!-- This means that we don't have to use redirection<br>
from index.html anymore. Yay! --><br>
<welcome-file-list><br>
<welcome-file>Wiki.jsp</welcome-file><br>
</welcome-file-list><br>
<br>
<!--<br>
Here we define the users which are allowed to access JSPWiki<br>
editor.<br>
<br>
I'll provide here an example case where you can set up a Wiki<br>
which allows everyone read access, but only authenticated<br>
users are allowed to edit (i.e. access the Edit.jsp page).<br>
<br>
To enable this, remove the comments signs.<br>
<br>
We setup here two sample roles, "admin" and "user".<br>
There is no real difference between these two for now.<br>
<br>
You must also add to your $TOMCAT_HOME/conf/tomcat-users.xml<br>
the actual user accounts.<br>
--><br>
<br>
<!-- START OF ACCESS RESTRICTION<br>
<security-constraint><br>
<web-resource-collection><br>
<web-resource-name>Protected
Area</web-resource-name><br>
<url-pattern>/Edit.jsp</url-pattern><br>
<http-method>DELETE</http-method><br>
<http-method>GET</http-method><br>
<http-method>POST</http-method><br>
<http-method>PUT</http-method><br>
</web-resource-collection><br>
<br>
<auth-constraint><br>
<role-name>admin</role-name><br>
<role-name>user</role-name><br>
</auth-constraint><br>
</security-constraint><br>
<br>
<login-config><br>
<auth-method>BASIC</auth-method><br>
<realm-name>JSPWiki Editor</realm-name><br>
</login-config><br>
<br>
--><br>
<br>
<!-- ### Wiki-Stuff ends here ############################# --><br>
<br>
<!-- Struts Tag Library Descriptors --><br>
<taglib><br>
<taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri><br>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location><br>
</taglib><br>
<br>
<taglib><br>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri><br>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location><br>
</taglib><br>
<br>
<taglib><br>
<taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri><br>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location><br>
<br>
<taglib><br>
<taglib-uri>/WEB-INF/weblabs.tld</taglib-uri><br>
<taglib-location>/WEB-INF/weblabs.tld</taglib-location><br>
</taglib><br>
<br>
<br>
</web-app><br>
<br>
<br>
<br>
<br>
Yishay Mor wrote:<br>
<pre wrap=""> Feeyoo.
And can you even, ah, install and run it?
-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
To: Yishay Mor
Sent: 9/25/03 6:19 PM
Subject: Re: [Webreports-developers] New CVS structure
Hi,
looks much better now! Building runs without puttings a hand on the
files.
Ciao, Siegfried
Yishay Mor wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I added a module called "webreports" under the CVS root. Essentially,
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<pre wrap="">I intend to place all code there and remove all other modules, so you
can checkout the whole codebase by running "co webreports" instead of
"co .". I tried to clean it up, it should build now. Can someone
please try?
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a> wrote:<br>
<blockquote type="cite" cite="mid3F6F5E46.7050607-X8nW9FoeYQOqo7HgDxclTdBPR1lH4CV8@public.gmane.org">Hi
all!
<br>
I had a first try on setting up the work environment - no idea who of
you already did so... however: Yishay suggestet to share my *pains*:
<br>
<br>
### Compiling Pain ###:
<br>
<br>
-> org.weblabs.jspwiki.plugins.ShowContext is in file named
showWikiContext.java
<br>
<br>
-> jar for com.ecryd.jspwiki.* is not included in buildfile:
<br>
<br>
I took JSPWiki.jar from jspwiki-2.0.50-bin.zip
<br>
available at <a class="moz-txt-link-freetext" href="http://www.jspwiki.org/Wiki.jsp?page=JSPWikiDownload">http://www.jspwiki.org/Wiki.jsp?page=JSPWikiDownload</a>
<br>
(what ever it is?)
<br>
<br>
-> AddNote.java imports org.weblabs.wr.tags.NoteTag which is missing
as src-file.
<br>
<br>
-> org.weblabs.wr.servlets.AddBibNote.java
<br>
('at the end of file' - no linenumbers for this editor? ;-) ):
resp.getWriter().print(POPUP_HTML);
<br>
... where POPUP_HTML seems undefined.
<br>
<br>
<br>
### Tomcat Pain ###:
<br>
<br>
Could not figure out where the webapp-root should be at least.
Separating the app-folder from tomcat-installation did not work for me
- likly my fault. I tried to copy all what needed to an ordinary
web-app:
<br>
<br>
struts tld's and struts-config.xml are missing. Copying all this from
an empty struts-template makes the server running - somehow. I'am shure
there is some-one out there who wants to test the server-setup in
detail... ;-)
<br>
<br>
Bye and good Luck!
<br>
<br>
Siegfried
<br>
<br>
<br>
<br>
<br>
<br>
-------------------------------------------------------
<br>
This sf.net email is sponsored by:ThinkGeek
<br>
Welcome to geek heaven.
<br>
<a class="moz-txt-link-freetext" href="http://thinkgeek.com/sf">http://thinkgeek.com/sf</a>
<br>
_______________________________________________
<br>
Webreports-developers mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Webreports-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org">[email protected]</a>
<br>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/webreports-developers">https://lists.sourceforge.net/lists/listinfo/webreports-developers</a>
<br>
<br>
<br>
</blockquote>
</body>
</html>
--------------070102020404010804040206--
--------------050605080607040504090105
Content-Type: text/xml;
name="web.xml"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="web.xml"
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>AddNote</servlet-name>
<servlet-class>org.weblabs.wr.servlets.AddNote</servlet-class>
</servlet>
<servlet>
<servlet-name>ShowNote</servlet-name>
<servlet-class>org.weblabs.wr.servlets.ShowNote</servlet-class>
</servlet>
<!-- ### Wiki-Stuff #################################### -->
<!--
Now, let's define the XML-RPC interfaces. You probably don't have to
touch these.
First, we'll define the standard XML-RPC interface.
-->
<servlet>
<servlet-name>XMLRPC</servlet-name>
<servlet-class>com.ecyrd.jspwiki.xmlrpc.RPCServlet</servlet-class>
<init-param>
<param-name>handler</param-name>
<param-value>com.ecyrd.jspwiki.xmlrpc.RPCHandler</param-value>
</init-param>
<init-param>
<param-name>prefix</param-name>
<param-value>wiki</param-value>
</init-param>
</servlet>
<!--
OK, this then defines that our UTF-8 -capable server.
-->
<servlet>
<servlet-name>XMLRPC-UTF8</servlet-name>
<servlet-class>com.ecyrd.jspwiki.xmlrpc.RPCServlet</servlet-class>
<init-param>
<param-name>handler</param-name>
<param-value>com.ecyrd.jspwiki.xmlrpc.RPCHandlerUTF8</param-value>
</init-param>
<init-param>
<param-name>prefix</param-name>
<param-value>wiki</param-value>
</init-param>
</servlet>
<!--
Attachment exchange handler.
-->
<servlet>
<servlet-name>AttachmentServlet</servlet-name>
<servlet-class>com.ecyrd.jspwiki.attachment.AttachmentServlet</servlet-class>
</servlet>
<!--
And finally, let us tell the servlet container which
URLs should correspond to which XML RPC servlet.
-->
<!-- By default, this is disabled. If you want to enabled it,
just uncomment the whole section. -->
<!-- ### Wiki-Stuff ends here ############################# -->
<!-- Mapping for the showNote servlet -->
<servlet-mapping>
<servlet-name>ShowNote</servlet-name>
<url-pattern>/notes/*</url-pattern>
</servlet-mapping>
<!-- Mapping for the showNote servlet -->
<servlet-mapping>
<servlet-name>AddNote</servlet-name>
<url-pattern>/addnotes/*</url-pattern>
</servlet-mapping>
<!-- ### Wiki-Stuff #################################### -->
<!-- REMOVE ME TO ENABLE XML-RPC
<servlet-mapping>
<servlet-name>XMLRPC</servlet-name>
<url-pattern>/RPC2/</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>XMLRPC-UTF8</servlet-name>
<url-pattern>/RPCU/</url-pattern>
</servlet-mapping>
AND REMOVE ME TOO -->
<servlet-mapping>
<servlet-name>AttachmentServlet</servlet-name>
<url-pattern>/attach</url-pattern>
</servlet-mapping>
<!-- This means that we don't have to use redirection
from index.html anymore. Yay! -->
<welcome-file-list>
<welcome-file>Wiki.jsp</welcome-file>
</welcome-file-list>
<!--
Here we define the users which are allowed to access JSPWiki
editor.
I'll provide here an example case where you can set up a Wiki
which allows everyone read access, but only authenticated
users are allowed to edit (i.e. access the Edit.jsp page).
To enable this, remove the comments signs.
We setup here two sample roles, "admin" and "user".
There is no real difference between these two for now.
You must also add to your $TOMCAT_HOME/conf/tomcat-users.xml
the actual user accounts.
-->
<!-- START OF ACCESS RESTRICTION
<security-constraint>
<web-resource-collection>
<web-resource-name>Protected Area</web-resource-name>
<url-pattern>/Edit.jsp</url-pattern>
<http-method>DELETE</http-method>
<http-method>GET</http-method>
<http-method>POST</http-method>
<http-method>PUT</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>admin</role-name>
<role-name>user</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>JSPWiki Editor</realm-name>
</login-config>
-->
<!-- ### Wiki-Stuff ends here ############################# -->
<!-- Struts Tag Library Descriptors -->
<taglib>
<taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
<taglib>
<taglib-uri>/WEB-INF/weblabs.tld</taglib-uri>
<taglib-location>/WEB-INF/weblabs.tld</taglib-location>
</taglib>
</web-app>
--------------050605080607040504090105--
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf