EAR PRoject with 2 module(Dynamic Web project) How link to another module?Hi,

42 views
Skip to first unread message

Giuseppe Ventura

unread,
Jan 2, 2016, 5:21:42 AM1/2/16
to Google App Engine
Hi, 
i'm doing a sample for to learn GAE. 
In my example HELLO WORLD i have created ENTERPRISE APPLICATION PROJECT with 2 Dynamic Web project inside:

-Giuseppeit_default->module:default
-Giuseppeit_task->module:task

Now when i run locally my project i view only default Module. I have changed Giuseppeit_default's index.html like:

  <body>
   
<h1>Ciao Giuseppe!</h1>
 
   
<table>
     
<tr>
       
<td colspan="2" style="font-weight:bold;">Available Servlets:</td>        
     
</tr>
     
<tr>
       
<td><a href="giuseppeit_default">GiuseppeIT_default</a></td>
     
</tr>
     
<tr>
       
<td><a href="giuseppeit_task">GiuseppeIT_task</a></td>
     
</tr>
   
</table>
 
</body>

I want a new link to second Module Giuseppeit_task. 
I have created dispatch.xml in: Giuseppeit_default\WebContent\dispatch.xml like:

<?xml version ="1.0" encoding="UTF-8"?>

<dispatch-entries>
<dispatch>
<url>localhost/</url>
<module>default</module>
</dispatch>
<dispatch>
<url>*/giuseppeit_task/*</url>
<module>task</module>
</dispatch>
</dispatch-entries>

Now when i run my project i view 2 link:

GiuseppeIT_default
GiuseppeIT_task

But when i click on GiuseppeIT_task i view ERROR 404. Why? where is the problem?

Thanks for help me
Regards
Giuseppe
 

Adam (Cloud Platform Support)

unread,
Jan 2, 2016, 9:50:08 PM1/2/16
to Google App Engine
This seems like a question that would be better posted to Stack Overflow, rather than a discussion post. The google-appengine group is intended more for general discussion rather than 1-on-1 support assistance. Please see the main Community Support page for a list of the tags we monitor.
Reply all
Reply to author
Forward
0 new messages