===菜鸟提问===请问怎么在jsp页面上生成一个csv文件?? csv文件不就是用分割符来分隔的文件,一般用逗号:","只用你按照CSV文件的格式生成文件然后下载就行了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <%set fs = server.createobject("scripting.filesystemobject")If fs.FileExists("d:\temp\test.CSV") then fs.DeleteFile"d:\temp\test.CSV", TrueEnd ifset myfile = fs.createtextfile("d:\temp\test.CSV",true)myfile.writeline "title1" & "," & "title2" & "," & "title3"myfile.writeline "0021" & "," & "rrwe" & "," & "0.30" myfile.writeline "0021" & "," & "rrwe" & "," & "0.30" myfile.closeset myfile=nothing%>--〉生成csv文件 如果我现在在action里面有一个list数据,里面就是一行一行的csv,应该怎么设置内容?谢谢~~ 谁帮我把这串翻译成明文 谢谢 请教一个菜鸟问题 关于page编译指令! axis如何取得对象中的对象及对象中包含list<T>的数据呢? 求一个刷网页投票的软件 JSP连接数据库的问题 又来了一个弱智的jsp问题啊,我搞不定,希望大家赐教! 关于JSTL的问题,比较急! struts-config.xml中的path=**.jsp?Id=,请问如何传递参数Id进来 拜托,session中属性值消失的问题 请教jsp+servlet+javabean如何实现将消息发送到指定号码的手机上? 急救! return 與void比較的迷惑.
set fs = server.createobject("scripting.filesystemobject")
If fs.FileExists("d:\temp\test.CSV") then
fs.DeleteFile"d:\temp\test.CSV", True
End if
set myfile = fs.createtextfile("d:\temp\test.CSV",true)
myfile.writeline "title1" & "," & "title2" & "," & "title3"
myfile.writeline "0021" & "," & "rrwe" & "," & "0.30"
myfile.writeline "0021" & "," & "rrwe" & "," & "0.30"
myfile.close
set myfile=nothing%>--〉生成csv文件
谢谢~~