Friday 15 February 2013

How to redirect to JSP and add values to the stack in EL -


I'm confused with the way to add value to the stack in EL, how do I code < Code> Redirect to JSP and Add Value to Stack in EL.

Is it fair or not

  @WebServlet (name = "A", UrlPatterns = {"/ next"}) @WebInitParam (name = "Test", value = "annotation") @WebServlet (name = "A", urlPatterns = {"/ next"}, initParams = {@WebInitParam (name) = "test", value = "annotation")}  
       

To add value, you can set the request attributes directly.

  request.setAttribute ("attributeName", "attributeValue");   

You have forwarded in JSP,

  # {requestScope.attributeName}    

No comments:

Post a Comment