> Possible questions to help zero in on the problem: > > 1. What is the your client--is it a web browser (which type)?
It's a web browser, either Opera or Mozilla, with the Adobe plug in. I can see my svg, I can edit the source, everything works well on this side. > 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.) I'm just short because I don't know well Batik, I've no problem in generating the svg, but in putting elements inside (as a matter of fact, a text element). Is there a tutorial of Batik somewhere? I found this one : http://xml.apache.org/batik/svggen.html but it's abour SVGGraphics2D. > 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 The problem is more that I don't know how to code than in the client nor in the servlet ;) Have a nice day, Laurent > 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] -- Laurent FALLET - [EMAIL PROTECTED] Elève-ingénieur à l'INSA de Rouen - http://asi.insa-rouen.fr/~lfallet/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]