jsp代码
<jsp:plugin type="applet" code="Picture.class"  width="200" height="150" >
<jsp:params> 
   <jsp:param   name="inputimage"   value="<%! =myFileName %>" />
</jsp:params>
其中myFileName为一字符串变量。
applet代码:
String input_image   =   this.getParameter("inputimage");//获取参数x
可就是不行,求高手指导!!!
感激不尽!

解决方案 »

  1.   


    value=" <%! =myFileName %>" 
    应该是这样子啊
    value=" <%=myFileName %>" 
      

  2.   

    不行 啊,传给applet后显示的字符串是<% =myFileName
      

  3.   

    不用标签直接写不完了。
    <applet code="Picture.class" width="32" height="32">
    <param name="inputimage" value="<% =myFileName %>">
    </applet>
      

  4.   

    换种方式写吧, ${myFileName}这样看可行吗?
      

  5.   

    <%=myFileName %>
    注意<%与=之间不要有空格
      

  6.   

    An error occurred at line: 93 in the jsp file: /facerecognition/uploadimage.jsp
    Syntax error on token "=", @ expected
    90: }
    91: %> 
    92: <applet code="Picture.class" width="32" height="32"> 
    93: <param name="inputimage" value=" <% =myFileName %>"> 
    94: </applet>
    95:    <hr>
    96:     This website recognize a face picture that you input and show the face information in a form.