Hi,
 
Looks to me like your doGet is not geting called.
 
Mit freundlichen Grüßen/Regards
Chris Peto
Freelance System Development, Resource Solutions
Founding Partner, Vectoreal
---------------------------------------
Frankfurt, Germany
Mobile: +49 (0) 173 308 7843
Tel:+49(0) 6103 80 21 98
Web: http://www.resource-solutions.de
<http://www.resource-solutions.de/> 
     http://www.vectoreal.com <http://www.vectoreal.com/> 
SVG editor: http://www.resource-solutions.de/svgeditor.html
mailto:[EMAIL PROTECTED]
------------------------------------
Member of: SPARK - SVG Programmers' Application Resource Kit
SVG site:  http://www.schemasoft.org/svg/main.svg
HTML site: http://www.schemasoft.org/
Widgets Example:
http://www.resource-solutions.de/cgui_widgets/sliderzoom.svg 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Donnerstag, 3. Februar 2005 09:12
To: svg-developers@yahoogroups.com
Subject: [svg-developers] How to pass data from an servlet to a
svg-dokument with get-url ?(example only working partially)


My example fails although the files are on the same server and
urlRequestStatus.success == true.
How can I set the output?
For example I just want a String to be sent back with the value "test"
and
retrieve it with urlRequestStatus.content
Thanks for your consideration!

Client: SVG-Side
function GetData(text)
{
  getURL("http://kwmotw1.k1:7764/servlet/GetUrlHandler",callback);
}
function callback(urlRequestStatus)
{
  
  var output
    
  if(urlRequestStatus.success)
  {
    //--> I don't get any values!!!  
    alert(urlRequestStatus.content);
    alert(urlRequestStatus.contentType);
  }
  else {
  alert('no Success');
  }
}
... on click getData.....

Server_Servlet
public class GetUrlHandler extends HttpServlet 
{
  private static final String CONTENT_TYPE = "image/svg xml";
  public void init(ServletConfig config) throws ServletException
  {
    super.init(config);
  }
  public void doGet(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, IOException
  {
    response.setContentType(CONTENT_TYPE);
   
    PrintWriter out = response.getWriter();
    out.println("<svg width='500' height='500'>");
    out.println("</svg>");
    out.println("test");

   
    out.close();
  }
  public void  doPost(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, IOException
   {
      doGet(request,response);
     
   }
}





[Non-text portions of this message have been removed]



-----
To unsubscribe send a message to:
[EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
---- 



  _____  

Yahoo! Groups Links


*       To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
  

*       To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 
  

*       Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> . 




[Non-text portions of this message have been removed]



-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to