java - Empty JSP param object after servlet forwarding -


i'm sorry if trivial issue, revolting amount of time has been wasted. i'm getting started java servlets/jsp, trying render template parameters passed on servlet. code servlet goes follows (doget() method):

request.setattribute("attr", "an attribute"); request.getrequestdispatcher("/comissoes").forward(request, response); 

in jsp template, try:

<c:out default="no such attribute..." value="${attr}" /> 

i've checked , servlet routs correct urls , jsps, jstl expressions correctly evaluated (using tomcat 7.0 + jstl 1.2), no data being embedded in forwarded request servlet jsp template. older scriptlet syntax apparently not allowed server. so, what's happening?


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -