You might want to use a framework like Struts or Spring. I also have a
redirect.jsp in my app like Rusty, only that any of my Spring MVC
controllers can use it and package in the request the url where the
page will be redirected.

Anyway the benefit I see here is that for one you don't have to
declare it as <static> in the appengine-web.xm (it works for me) and
of course many others that the framework can give.

On Nov 28, 2:49 am, Don <lydonchan...@gmail.com> 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.


Reply via email to