Hi guys, I'm migrating a JSP app to tapestry4. How can I migrate this simple JSP code to tapestry?
<% String dinamicallyGeneratedFileName = request.getParameter(..); %> <html> <body> MY HEADER HERE <jsp:include page="<%=dinamicallyGeneratedFileName"%>.txt"/> MY FOOTER HERE </body> </html> My text files are stored somewere on the context root, but I cannot define assets for them, because they are put there by the customer via ftp and their names are unpredictable. I would just need the ServletContext object inside my tapestry page but don't know how to get it. I could then call ServletContext.getResource() or getResourceAsStream() to load the file I need. I couldn't find a solution. Can someone point me to the right direction? Thanks a lot. Paolo --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
