Possible questions to help zero in on the problem:

1. What is the your client--is it a web browser (which type)?

2. Can your client read the same SVG document if instead of being sent by the servlet, the SVG doc is on the local filesystem? (I wonder if the problem is with the client not being able to display the svg text element, not with the servlet.)

3. Can you trap (e.g., if the client is a web browser, right-clicking and choosing "view source") the document that the servlet is sending and see that the text element is indeed within the document. ( Here, I want to see if your client is OK but the problem is with your servlet code not creating the svg text element.)

Glen

Laurent FALLET schrieb:

Yes I've done it (drawing a rectangle), even text but with the method
drawString, from a Graphics2D component. I can send graphics2D objects,
but is it possible to create a text element, fix attributes, and then put
the element into svg document, without using graphics2D?
Laurent




Were you able to send non-text items in the SVG Document--e.g., a simple
rectangle, circle, etc.?
I don't know if your problem is that you just can't send *text*, or if
you can't send anything; the latter may indicate problems not related to
SVG.

Glen

Laurent FALLET schrieb:



Hello,
I'm starting with Batik, and I'm trying to do a servlet sending a svg
document to a client. I want to put a text in this SVG. I tried with a
graphics2D, but without success... the SVG document seems to be empty.
Is there a simple way to draw text?
Could anyone give a little piece of code?
Thanks,
Laurent





--------------------------------------------------------------------- To
unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to