Rudolf Baloun <RudolfBaloun <at> atron.de> writes:

> With Tapestry 3.0 i could do this:
> 
> final ApplicationServlet servlet = cycle.getRequestContext().getServlet();
> final String encoding = servlet.getInitParameter("CSV.encoding");
> 
> but in Tapestry 4.0 there is no method "getServlet()" for the class 
> RequestContext.
> RequestContext is deprecated and will be removed in 4.1.

As all you want is to read the init param, you can do it this way in
a page class:

  @InjectMeta("CSV.encoding");
  public abstract String getCSVEncoding();

--
Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to