Hi all,

i've implemented a custom servlet (which is extending from GWTShellServlet)
only to response my main gwt page requests, otherwise, will call super.doGet
or super.doPost. it is like this;

/**
 * Custom servlet which extends GWT's one to make it possible to use other
 * formats(like JSP, FreeMarker) as application main page.
 *
 * @author Hasan
 */
public class CustomShellServlet extends GWTShellServlet {
    @Override
    protected void doGet(final HttpServletRequest request, final
HttpServletResponse response) throws ServletException, IOException {
        if (processIfMyCustomRequest(request, response))
            return;
        super.doGet(request, response);
    }

    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {
        if (processIfMyCustomRequest(request, response))
            return;
        super.doPost(request, response);
    }
.......
}

this is working at hosted mode but not working when i want to deploy my app
to an external tomcat instance. When i made my custom request (in fact,
which will generate the main gwt html file with some additional script
codes), it is entering my custom servlet, responding main application html
normally but i see an empty screen whose html source (view source) seems
normal - as below;

request: http://localhost:8080/apiks/ApiksApp.do
response:

<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta name="gwt:property" content="locale=tr">
    <!--                                           -->

    <!-- Any title is fine                         -->
    <!--                                           -->
    <title>ApiksApp</title>

    <script type="text/javascript" language="javascript">
            var parameters = {
                        action: "",
                        id: ""
            };
    </script>

    <!--                                           -->
    <!-- This script loads your compiled module.   -->
    <!-- If you add any GWT meta tags, they must   -->
    <!-- be added before this line.                -->

    <!--                                           -->
    <script type="text/javascript" language="javascript"
src="edu.hacettepe.bote.ApiksApp.nocache.js"></script>
  </head>

  <!--                                           -->
  <!-- The body can have arbitrary html, or      -->
  <!-- you can leave the body empty if you want  -->
  <!-- to create a completely dynamic UI.        -->
  <!--                                           -->

  <body>

    <!-- OPTIONAL: include this if you want history support -->
    <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1'
style="position:absolute;width:0;height:0;border:0"></iframe>

  </body>
</html>

result: empty screen!

web.xml content:

<!-- custom servlet extending from GWTShellServlet -->
    <servlet>
        <servlet-name>shell</servlet-name>

<servlet-class>edu.hacettepe.bote.server.servlet.CustomShellServlet</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>shell</servlet-name>
        <url-pattern>/*</url-pattern>
    </servlet-mapping>

<!-- servlet class to implement RPC calls-->
<servlet>
    <servlet-name>ApiksService</servlet-name>

<servlet-class>edu.hacettepe.bote.server.service.ApiksServiceImpl</servlet-class>
</servlet>

<servlet-mapping>
    <servlet-name>ApiksService</servlet-name>
    <url-pattern>/ApiksService</url-pattern>
</servlet-mapping>
------------------------------------------------------------------------------

seems it's not loading gwt script file... or something i can not see...
anybody knows? what may be the problem?

Thanks in advance,

Hasan...

--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to