Im downloading a csv file from the server in a doGet method. This
works perfectly in hosted and web mode but not when deployed so i
assume i am configuring something wrong as the doGet method never gets
called.
client code is:
private void download(String search) {
Log.warn("requesting csv from server");
String link = GWT.getModuleBaseURL() + "/signoff";
if (search != null && search.length() > 0) {
link += '?' + URL.encode(search);
}
DOM.setElementAttribute(RootPanel.get("__download").getElement(),
"src", link);
}
html body is:
<body>
<script type="text/javascript" language="javascript"
src="com.paretopartners.signoff.signoffClient.nocache.js"></script>
<iframe id="__gwt_historyFrame" style="width:0;height:0;border:
0"></iframe>
<iframe src="" id="__download" style="width:0;height:0;border:0"></
iframe>
</body>
my server has the doGet method:
protected void doGet(final HttpServletRequest req, final
HttpServletResponse resp) throws
IOException {
log.log(Level.WARN, "downloading CSV");
}
And as i said i think this is almost certainly a config issue but i
cant seem to work it out. my web.xml currently contains:
<servlet>
<servlet-name>SignoffServiceImpl</servlet-name>
<servlet-class>com.paretopartners.signoff.server.SignoffServiceImpl</
servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>SignoffServiceImpl</servlet-name>
<url-pattern>/signoff</url-pattern>
</servlet-mapping>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---