http://docs.ofbiz.org/display/OFBTECH/Framework+Introduction+Videos+and+Diagrams

sqlien sent the following on 11/14/2007 2:46 AM:
> Hi, 
> thak your for your responses, but my problem is  not yet resolved :
> 1) i can not use  public static String getWebSiteId(ServletRequest request)
> because  i have not the object request from DispatcherContext
> 2) I have tack a look at DispatcherContext no method appropriated for my
> problem
> 
> Thanks you 
> 
> 
> sqlien wrote:
>> Hi,
>>
>> in my method implementation of my service i want to get a value of
>> variable which is defined in my web.xml like this:
>>
>> <context-param>
>>      <param-name>myVariable</param-name>
>>      <param-value>value</param-value>
>> </context-param>
>>
>> I remember that i dont use the following code code because i have not
>> access to th object "request" in my method implementation. i means i can't
>> get the object "request" from the object "DispatchContext":
>>
>> ServletContext context =(ServletContext)
>> request.getAttribute("ServletContext");
>>
>> context.getInitParameter("myVariable")
>>
>>
>>
>> please how to do that ?
>>
>> thanks
>>
>>
> 

Reply via email to