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
可就是不行,求高手指导!!!
感激不尽!
<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
可就是不行,求高手指导!!!
感激不尽!
value=" <%! =myFileName %>"
应该是这样子啊
value=" <%=myFileName %>"
<applet code="Picture.class" width="32" height="32">
<param name="inputimage" value="<% =myFileName %>">
</applet>
注意<%与=之间不要有空格
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.