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

2009-10-16 Thread shenxiaojing
件原件- 发件人: Chris Pratt [mailto:thechrispr...@gmail.com] 发送时间: 2009年10月17日 10:58 收件人: Struts Users Mailing List 主题: Re: about s:generator (struts 2.1.8) - new information Personally, I don't allow scriplets in our company code, but the value is placed in the page context, but you're trying to

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

2009-10-16 Thread shenxiaojing
件原件- 发件人: Chris Pratt [mailto:thechrispr...@gmail.com] 发送时间: 2009年10月17日 10:58 收件人: Struts Users Mailing List 主题: Re: about s:generator (struts 2.1.8) - new information Personally, I don't allow scriplets in our company code, but the value is placed in the page context, but you're trying to

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

2009-10-16 Thread Chris Pratt
Personally, I don't allow scriplets in our company code, but the value is placed in the page context, but you're trying to 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

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

2009-10-16 Thread Alex Siman
> iterator into page context so try this: jspContext.getAttribute("myAtt "); leftkaren wrote: > > 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 resu

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