I am working on a project, I need to have a servlet running that retrieves data from a socket interface and then go to a directory path and retreive a JSP page. The JSP file will basically be an HTML file with one parameter that needs to be embedded. The parameter will need to be dynamically passed from the servlet to the JSP page and presented to a user. I have not done Servlets & JSPs for quite some time and do not remember how to do this. Please Help Randall Stevens
Sounds like you need to attach the retrieved parameter to the request with setAttribute, then use RequestDispatcher to forward the request to the JSP. The JSP will then be able to getAttribute by name. Bill
Joined: Jul 01, 2003
I feel stupid, I do not know how to do that.
subject: I need help with JSP & Servlet interaction