Hi there
I'm trying to minimize the amount of scriplet code in a jsp page and would like to accomplish this by using JSTL.
I'll give you a brief overview of my design:
The client sends a request which is handled by a controller servlet. This servlet returns data from the database building the appropriate beans to be forwarded on to my view in the HttpRequest object.
My JSP then retrieves the object and prints out its value:
<%String pageState = (String)request.getAttribute("viewState");%>
<%=pageState%>
I'm aware of how to use print the values of request parameters, not added by my servlet, using:
<c ut value="${param.myParam}"/>
But this will not work in the example I have provided in my scriplet (maybe it does and I'm just crazy).
Can you please provide me with some insight or direct me to a resource that explains this?
Thanks very Much.
Raul
I'm trying to minimize the amount of scriplet code in a jsp page and would like to accomplish this by using JSTL.
I'll give you a brief overview of my design:
The client sends a request which is handled by a controller servlet. This servlet returns data from the database building the appropriate beans to be forwarded on to my view in the HttpRequest object.
My JSP then retrieves the object and prints out its value:
<%String pageState = (String)request.getAttribute("viewState");%>
<%=pageState%>
I'm aware of how to use print the values of request parameters, not added by my servlet, using:
<c ut value="${param.myParam}"/>
But this will not work in the example I have provided in my scriplet (maybe it does and I'm just crazy).
Can you please provide me with some insight or direct me to a resource that explains this?
Thanks very Much.
Raul