Hello Randy
these variables are available from the context of the application:
for (Parameter parameter : getContext().getParameters()) {
System.out.println(parameter.getName() + " " +
parameter.getValue());
}
or
getContext().getParameters().getFirst("defaultGatewayID");
This context is transferred to the resource, so the samecode works also in
your resource.
Best regards,
Thierry Boileau
hello,
> I my web.xml i have the following:
> <servlet>
> <servlet-name>AppServlet</servlet-name>
> <servlet-class>
> org.restlet.ext.servlet.ServerServlet
> </servlet-class>
> <init-param>
> <param-name>defaultGatewayID</param-name>
> <param-value>1</param-value>
> </init-param>
> </servlet>
>
> my question is how to i get the value of defaultGatewayID?
>
> The second part of this question. My resources will need this value. What
> is the correct way for my resources access this from value
> (defaultGatewayID) from the Application
>
> Thanks for any help
>
> ------------------------------------------------------
>
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2702687
>
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2702988