Here it comes:
public class TestServlet extends HttpServlet
{
public void doGet( HttpServletRequest req, HttpServletResponse resp )
throws IOException
{
try
{
resp.setContentType( "text/plain" );
resp.setCharacterEncoding( "utf-8" );
resp.getWriter().println( System.currentTimeMillis() );
GaeVFS.setRootPath( getServletContext().getRealPath(
"/" ) );
FileSystemManager fsManager = GaeVFS.getManager();
String p1 = req.getParameter( "p1" );
System.out.println( "p1 from request is: " + p1);
System.out.println( "param map: " +
req.getParameterMap() );
FileObject tmpFolder2 = fsManager.resolveFile( p1 );
resp.getWriter().println( p1 + ", " +
tmpFolder2.exists() );
}
finally
{
GaeVFS.clearFilesCache(); // this is important!
}
}
}
Again, for some reason, this is works well in the development server -
the problem starts when deploying the app to gae.
On Feb 18, 6:01 pm, Cristian Nicanor Babula <[email protected]>
wrote:
> This is the right way. Maybe showing your servlet's source would help us
> identify the problem.
>
>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" 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-appengine-java?hl=en.