AJAX Validation example

2009-10-23 Thread shenxiaojing
Hello, all Is anybody using the example from http://struts.apache.org/2.1.8/docs/ajax-validation.html ? It doesn't work at all. Or anybody can send a successful example to me? Thank you -Karen - To unsubscribe, e-mail: user-u

答复: struts2.1.8 generator tag problem

2009-10-18 Thread shenxiaojing
Thank you for the advice.:) -邮件原件- 发件人: Dale Newfield [mailto:d...@newfield.org] 发送时间: 2009年10月18日 12:30 收件人: Struts Users Mailing List 主题: Re: struts2.1.8 generator tag problem shenxiaojing wrote: > http://struts.apache.org/2.1.8/docs/generator.html > Example Three doesn&

struts2.1.8 generator tag problem

2009-10-16 Thread shenxiaojing
http://struts.apache.org/2.1.8/docs/generator.html Example Three doesn't work!!! Example Three: Generate an iterator with var attribute <% Iterator i = (Iterator) pageContext.getAttribute("myAtt"); while(i.hasNext()) { String s = (String) i.next(); %> <%=s%> <%} %> This generat

reply: about s:generator (struts 2.1.8) - new information

2009-10-16 Thread shenxiaojing
get it from the request scope. Try pageContext.getAttribute("myAtt"). (*Chris*) On Fri, Oct 16, 2009 at 7:14 PM, shenxiaojing wrote: > Hello, all > > Sorry for sending my email twice, I found something wired. > > Document from http://struts.apache.org/2.x/docs/generat

答复: about s:generator (struts 2.1.8) - new information

2009-10-16 Thread shenxiaojing
get it from the request scope. Try pageContext.getAttribute("myAtt"). (*Chris*) On Fri, Oct 16, 2009 at 7:14 PM, shenxiaojing wrote: > Hello, all > > Sorry for sending my email twice, I found something wired. > > Document from http://struts.apache.org/2.x/docs/generat

about s:generator (struts 2.1.8) - new information

2009-10-16 Thread shenxiaojing
Hello, all Sorry for sending my email twice, I found something wired. Document from http://struts.apache.org/2.x/docs/generator.html tell us: var - The name to store the resultant iterator into page context, if such name is supplied but: <% java.util.Iterator i = (java.util.Iterator) request

about s:generator (struts 2.1.8)

2009-10-16 Thread shenxiaojing
Hello, all Could you tell me why Iterator i is null? My struts version is 2.1.8 It's my code: <% java.util.Iterator i =(java.util.Iterator)pageContext.getAttribute("myAtt"); while(i.hasNext()) { String s = (String) i.next(); %> <%=s%> <%} %> JSP tells me NullPointerExceptio