Here's what I use in my index.jsp to redirect to a url mapped to an action bean/controller; i.e., I use the jstl redirect tag instead of response.redirect():
<?xml version="1.0" encoding="ISO-8859-1" ?> <%-- isElIgnored="false" needed for GAE --%> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" isELIgnored="false" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <c:redirect url="start.action" /> Don wrote: > Hi, > > Trivial question for the gurus here, > > if i do: > response.redirect("bla.jsp") > I get > "WARNING: Can not serve /bla.jsp directly. You need to include it in > <static-files> in your appengine-web.xml." on development server > (localhost) > > Everything is ok when it is run on the cloud. > Why?? > > I know I have to do this below so it works on localhost... > "<servlet> > <servlet-name>blajsp</servlet-name> > <jsp-file>/bla.jsp</jsp-file> > </servlet> > > <servlet-mapping> > <servlet-name>blajsp</servlet-name> > <url-pattern>/blajsp</url-pattern> > </servlet-mapping> > " > > > -- > > 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 google-appengine-j...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.