I've never had to do that, but I have a good feeling it moved to a HiveMind service.

http://jakarta.apache.org/tapestry/UsersGuide/hivemind.html

I wish I could be more help.


----- Original Message ----- From: "Rudolf Baloun" <[EMAIL PROTECTED]>
To: "Tapestry users" <[email protected]>
Sent: Friday, February 03, 2006 12:40 AM
Subject: ApplicationServlet Tapestry 4.0


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]



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

Reply via email to