java - JSP Servlet Script, Passing Parameters -


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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -