Is there a way to pause a jsp file after calling a Servlet and execute the remaining code after the servlet execution is completed?
Asked
Active
Viewed 456 times
2
-
by new servlet do u mean a new entry in web.xml ? – Barun Nov 04 '13 at 11:04
-
2not possible! you need to restart – Philipp Sander Nov 04 '13 at 11:10
-
You can consider using JRebel. See more info here: [http://stackoverflow.com/questions/13582377/jrebel-and-dynamic-class-loading][1] [1]: http://stackoverflow.com/questions/13582377/jrebel-and-dynamic-class-loading – KrzyH Nov 04 '13 at 11:23
-
1http://stackoverflow.com/questions/1884310/dynamically-add-a-servlet-to-the-servletconfig is an option. Also, JRebel is free for non-commercial use only. – Barun Nov 04 '13 at 11:40
-
I'm failing to see what JRebel has to do with the original question. – Mark Thomas Nov 05 '13 at 00:14
1 Answers
2
A dynamic include should do exactly that. Something along the lines of the following:
<jsp:include page="/path/to/your/servlet" />

Mark Thomas
- 16,339
- 1
- 39
- 60