users@glassfish.java.net

Re: Virtual Servers on GlassFish v1 and V2

From: <glassfish_at_javadesktop.org>
Date: Mon, 01 Dec 2008 20:34:46 PST

I'll have to look into the jamwiki's source code.

In the meantime, I have a custom JSF/JSP web application and it has same behavior ( or inconsistency between v1 and v2/v3). I am using the following to generate the links:

${pageContext.request.contextPath}

Here's a sample of the generated links:

In v1:

${pageContext.request.contextPath}/en/StartingPoints = http://aaa.com/en/StartingPoints
${pageContext.request.contextPath}/en/Special:RecentChanges = http://aaa.com/en/Special:RecentChanges
${pageContext.request.contextPath}/en/Sandbox = http://aaa.com/en/Sandbox

In v2/v3:

${pageContext.request.contextPath}/en/StartingPoints = http://aaa.com/jamwiki-war/en/StartingPoints
${pageContext.request.contextPath}/en/Special:RecentChanges = http://aaa.com/jamwiki-war/en/Special:RecentChanges
${pageContext.request.contextPath}/en/Sandbox = http://aaa.com/jamwiki-war/en/Sandbox
[Message sent by forum member 'amerigo5' (amerigo5)]

http://forums.java.net/jive/thread.jspa?messageID=319476