I have two web pages one is a jsp page and another one is struts page how i differentiate in servlet whether the response is from jsp or the response is from struts. Please clear my doubts.
posted 10 years ago
Most novices misunderstand the flow of web applications. When response is sended back to browser, browser do not have any special knowledge who generated request (servlet, jsp, struts(manual?,jsp?,velocity?)). But you can pass this information by yourself. For example, generate hidden field in response form, so your next submit processing can investigate this parameter.