Where you are defining this function? inside a Servlet that extends
RemoteServiceServlet or

inside a servlet that simply extends HttpServlet..?

I guess it will not work with a subclass of
RemoteServiceServlet .............!!





On Sep 15, 10:59 pm, mdwarne <mike.wa...@gmail.com> wrote:
> 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 <raahoo...@gmail.com> 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- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to