struts值问题

private String []biaozhun; 并且有相应的set get方法
public String createCategory1(){
this.create(mzIndustry);
int rationId=addbiaozhunService.getd();
for(int a=0;a<biaozhun.length;a++){
String s=biaozhun[a];

addbiaozhunService.addinsert(s,rationId);
}
return this.SUCCESS;
}

我吧东西存到了s中 然后调用方法入库

那请问 怎么能在前台jsp页面中 取到biaozhun数组里的值的?

我现在前台写的是
<%
session.setAttribute("fileds[]",biaozhun);
String fileds[];
int b=0;
for(int a=0;a {
fileds[b++]=biaozhun[a];
}
%>

但是报错 请问这个咋解决??

还有一个问题就是 因为我们声明完一个东西 因为有SET GET方法 所以已经把值存到session那几个东西里去了 所以前台直接用JSTL就能取到值 这个理解对么??大侠们 那上面那个问题 数组要怎么解决呢?

[quote]可是我这取值部分是对的 一共是15个值 我${biaozhun[0]}到${biaozhun[5]}都跟数据库的东西对不上 ${biaozhun[6]}才跟数据库的东西对上号 [/quote]

[b]这个你在 Action中 输出 biaozhun的内容看看。[/b]

[quote]
还有我们声明完一个东西 因为有SET GET方法 所以已经把值存到session那几个东西里去了 所以前台直接用JSTL就能取到值 这个理解对么? [/quote]

[b]已经说过,是在Request中,不在Session中[/b]

[b]试试这样:[/b]

[code="java"]<%
String[] fileds = request.getAttribute("biaozhun");
%>[/code]

[code="java"]<%
String[] fileds = (String[]) request.getAttribute("biaozhun");
%>[/code]

[b]
应该可以,不用你的循环了。[/b]

[code="html"]



[/code]

[b]试试这样可以不?[/b]



[code="html"]



[/code]

这样可以取得的到的。
[color=blue]
[b]Aciton中的属性,在request中,不在Session中。[/b][/color]