--- In [email protected], "brettmiller79" 
<[EMAIL PROTECTED]> wrote:
>
> Does anyone have a simple example of using JSP with SVG embeded in it?
> Thanks. 

<%@ page import = "java.io.*" %>
<%@ page import = "java.net.*" %>
<jsp:directive.page contentType="image/svg+xml"/>
<% String fonte = new String(request.getParameter("font"));%>
<svg width="400" height="400" xmlns="http://www.w3.org/2000/svg";> 
<rect width="400" height="400" fill="beige"/>
<g font-family="<%=fonte%>">
<text x="10" y="20" font-size="15">Font is <%=fonte%></text>
<text x="10" y="40" font-size="15">Example of text normal</text>
.............
</g>
</svg>

This example display examples for font-family passed by parameter
This run fine in FF 2 Opera 9.1 and IE6 with Adobe plugin
But in IE7 give script error when IE7 try to put it as object in html
file ... see posts about this question

Michel





-----
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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> 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