件原件-
发件人: 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
件原件-
发件人: 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
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
> 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
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
6 matches
Mail list logo