Hi,
in my servlet I do this:
RequestDispatcher rd = mServletContext.getRequestDispatcher(
"/views/" + pViewName + ".jsp");
rd.forward(mRequest, mResponse);
All requests are handled by a servlet, which then forwards to the
appropiate JSP.
I have a google app engine project with a maven structure (generated from
the skeleton-archetype). So my structure looks like this.
- src
- main
- java
- ... (code)
- webapp
- views
- LoginView.jsp
- MainView.jsp
- ... (more jsp)
- WEB-INF
- test
My web.xml:
<?xml version="1.0" encoding="utf-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
<servlet>
<servlet-name>HtmlStarterServlet</servlet-name>
<servlet-class>com.kupkik.ui.html.HtmlStarterServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HtmlStarterServlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>
It all deploys and runs well on the google app engine.
But the local server creates infinite loops. I use the local server from
the google app engine sdk dev_appserver.cmd. It seems, that the forwarding
gets handled by HtmlStarterServletagain and thus an infinite loop is
created. It should show the JSP, like it does online.
Can someone explain the different behaviour of the online google app engine
and the local server of the SDK ? And does someone know a solution so that
it works with both?
Thanks a lot!
Usul
P.S.
Output in browser:
HTTP ERROR 500
>
> Problem accessing /. Reason:
>
> INTERNAL_SERVER_ERROR
>
> Caused by:
>
> java.lang.StackOverflowError
>
>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.