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
Post a Comment