A couple of questions for the group:

1) Is it possible to access the HttpServletRequest object from within a
JavaBean in a JSP page without passing it in explicitly with a method
such as <% bean.processRequest(request); %>?

2) What is the best/cleanest way to gain access to the real path to a
resource from within a JavaBean in a JSP page? I am familiar with
the ServletContext.getRealPath(virtualPath) method, but, as with
#1 above, would rather not have to get the real path within the JSP
page and pass it into the bean if there is a way to do it without
using a scriptlet. My ultimate goal here is to read a list of image
files from a local directory and display them randomly for each
request.

Thanks in advance,
--jeff

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to