Léa Massiot wrote:
Hello,

I solved my problem:
1) in WebApp "w1", upload files to the directory "w1\uf1\",
2) in WebApp "w2", upload files to the directory "w1\uf2\",
3) then you can have the same JSP "foo.jsp" for both WebApps.
Put one JSP in "w1" and another one in "w2".
The JSP itself contains a switch:
--------------------------------------------------------
<c:choose>
        <c:when test="<a_test>">
                < a href="/w1/uf1/f.txt">Link 1</ a>
        </c:when>
        <c:otherwise>
                < a href="/w2/uf2/f.txt">Link 2</ a>
        </c:otherwise>
</c:choose>
--------------------------------------------------------

From your original description (post of 30/09) I am a bit puzzled as to how this resolves your problem. Do you mean that you are going to create a new JSP for every new file someone may ever upload ? Or do they always upload the same file "f.txt" ?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to