The Error [I am a new user so I can’t post images (just links)]
https://i.stack.imgur.com/ApkME.png
My ask.jsp(lines 15-20)——————————————————
<%!
String corpus = new String();
String getStory()
{
corpus = request.getParameter("story");
return corpus;
}
%>
It seems to say it cannot find the symbol “request” although I have sent it from my ‘processStory’ servlet as shown below:-
finally {
RequestDispatcher rd = request.getRequestDispatcher("/ask.jsp");
request.setAttribute("story", storyTold);
rd.forward(request, response);
out.close();
}
Try chaning
<%!to<%andrequest.getParameter()torequest.getAttribute().By the way why are you defining a method in your scriptlet?