Monday, February 27, 2012

Re: How do I call getServletContext from within GWT?

Thanks!

On Feb 22, 7:49 pm, Daniel Mauricio Patino León
<ceo.lion....@gmail.com> wrote:
> getServletContext().getRealPath("/")
>
> Since RemoteServiceServlet is a subclass of HttpServlet
>
> Will give you the path. This on server side ofcourse.
>
> 2012/2/22 Bill M <blinte...@aol.com>
>
>
>
>
>
> > Hi all,
>
> > Can someone explain to me how to call getServletContext() from within
> > GWT?
>
> > I need to obtain the servlet's real path so I can open a file.
>
> > Could someone shoot me some sample code on how to do this?
>
> > Thanks so much.
>
> > PS - Are there any GWT books out there that are uptodate on the
> > current features of GWT?
> >  I haven't seen any.
>
> > --
> > 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+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> ISC. Daniel Mauricio Patiño León.
> Director ejecutivo
> Liondev S.A. de C.V.- 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment