java - JSP Servlet Script, Passing Parameters -
this question has answer here:
the error [i new user can't post images (just links)] http://i.imgur.com/aejev.png
my ask.jsp(lines 15-20)------------------------------------------------------
<%! string corpus = new string(); string getstory() { corpus = request.getparameter("story"); return corpus; } %>
it seems cannot find symbol "request" although have sent 'processstory' servlet shown below:-
finally { requestdispatcher rd = request.getrequestdispatcher("/ask.jsp"); request.setattribute("story", storytold); rd.forward(request, response); out.close(); }
try chaning <%!
<%
, request.getparameter()
request.getattribute()
. way why defining method in scriptlet?
Comments
Post a Comment