This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes GWT and the fly likes launch via servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "launch via servlet" Watch "launch via servlet" New topic
Author

launch via servlet

cedric cavrois
Greenhorn

Joined: Jun 06, 2013
Posts: 2
Hi,

i'm not a beginner but i can't solve this problem :

I have a jsp which include my gwt script :
<meta name='gwt:module' content='org.yournamehere.Main=org.yournamehere.Main'>
<title>JSP Page</title>
<script type="text/javascript" src="org.yournamehere.Main/org.yournamehere.Main.nocache.js"></script>


When i launch the jsp via a <welcome-file>myjsp.jsp</welcome-file> in web.xml it's OK :


But when i declare a servlet in web.xml to launch the jsp, the jsp is launched but the gwt part is empty.

Could you help me? I google my issue and doesn't find anything...
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167
    
    8

Welcome to the Ranch.

Servlet to launch your JSP? I am not sure I understand. Can you show us your servlet code and web.xml mapping?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
cedric cavrois
Greenhorn

Joined: Jun 06, 2013
Posts: 2
I've find the issue :

the inclusion of the script nocache.js doesn't work when a servlet is defined in web.xml with "/" mapping, i don't know why...

In web.xml i declare a welcome-file which is a jsp which redirect me toward a servlet with mapping "/home", so i have no more servlet with mapping "/" and its work normally.

Thanks for your responses.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: launch via servlet
 
Similar Threads
*.faces suffix mapping
JSP Not able to Identify the JS, CSS file path
servlet mapping takes over
passing property arguements
what should be the first servlet to display when application launches?