<% String st = ""; %>
<% st = <jsp:getProperty name = "mysql" property ="s" />%>
<%out.print(st);%>
为什么这样会报错呢?
An error occurred at line: 35 in the jsp file: /My.jsp
Syntax error on token(s), misplaced construct(s)
32:
33: out.print("<h1>"+ st+"</h1>");
34: %>
35: <% st = <jsp:getProperty name = "mysql" property ="s" />%>
36: <%
37:
38: out.print("<h1>"+ st+"</h1>");
要怎么样才能把这个值赋到st里面呢?
推荐回答
还没有选出推荐答案,请稍候访问或查看其他回答!