Hi,
my web.xml contains this Code:
.....
<servlet>
<servlet-name>B2xSale</servlet-name>
<servlet-class>my.package.MyApplicationServlet</servlet-class>
<init-param>
<param-name>org.apache.tapestry.application-specification</param-name>
<param-value>/WEB-INF/myApplication.application</param-value>
</init-param>
<init-param>
<param-name>CSV.encoding</param-name>
<param-value>UTF-16LE</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
......
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.
How can i access to the ApplicationServlet in Tapestry 4.0?
Best Regards
Rudolf B.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]