Hi,
I access a report folder, and compile Jasper reports from a servlet...
public String getReportPath() {
return this.getServletContext().getRealPath("reports/src");
}
Returns: <Full_Path_of _Context>/reports/src
Mike
On Sep 14, 12:11 am, Raul <[email protected]> wrote:
> Hello GWTians
>
> I am having a trouble in accessing a local folder inside my
> application from the RemoteServiceServlet.
>
> At client side it is OK with GWT.getHostPageBaseURL()+"images"
>
> But i am not yet find a solution to access the same folder in my
> server code i.e. from a RemoteServiceServlet.
>
> I have the directory structure like:
>
> GuestBook.war
> --> WEB-INF
> -->images <------ i wanna access this folder at my server side
> code
> -->GuestBook.css
> -->GuestBook.html
>
> I have tried lot of methods like:
>
> this.getThreadLocalRequest().getServletPath()+"../images"
> this.getThreadLocalRequest().getContextPath()+"/images"
>
> by all possible ways..
>
> but it was not fruitful
>
> Kindly advise how can I access any directory (created manualy) inside
> my application war directory from a RemoteServiceServlet class..????
>
> Thanks in advance.
>
> Raul
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---