x=show.y;
你在这想干什么?show后面应该是你javabean的方法

解决方案 »

  1.   

    这么说吧
    我的bean中是这样定义的
    private int[] recid
    public int[] getRecid() {
        return recid;
      }
      public void setRecid(int[] recid) {
        this.recid = recid;
      }
    在jsp中我如何取这个自定义数组呀
      

  2.   

    package com
    public class mine{
     public int[] y(){
       int[] i = new int[2];
       i[0]=1;
       i[1]=2;
       return i;
     }
    }<jsp:useBean id='show' class="com.mine">
    <%
      int[] x=show.y();
      
    %>
      

  3.   

    <%
      int[] x=show.getRecid();
      
    %>
      

  4.   

    首先你要传入一个数组啊.
    int x=new int[];
    show.setRecid(x);
      

  5.   

    int x=new int[];
    这句话对吗?!
    在bean中用set和get方法就可以了
    class myBean{
      private int[] y=null;
      public void setY( int[] y ){
         this.y = y ;
      }
      public int[] getY(){
        return y ;
      }
    }
      

  6.   

    int[] i = new int[2];
    初始化的时候要指定数组大小
      

  7.   

    int[] x= new int[];
    这只是初始化并创建一个实例。
    <%
    int[] x=show.getRecid();
    %>
    可以了。
      

  8.   

    jsp就是java啊!不懂java是学不好jsp的。