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
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&
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
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
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
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
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
7 matches
Mail list logo