tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Léa Massiot <lmhe...@orange.fr>
Subject Re: WebApps sharing uploaded files
Date Mon, 03 Oct 2011 17:15:53 GMT

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>
--------------------------------------------------------

Best regards,
--
Léa
-- 
View this message in context: http://old.nabble.com/WebApps-sharing-uploaded-files-tp32570911p32583746.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Mime
View raw message