This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Modern JavaScript for the Impatient and have Cay Horstmann on-line!
See this thread for details.
Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

launch via servlet

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
cedric cavrois
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Yeah, but does being a ninja come with a dental plan? And what about this tiny ad?
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic