February 15th, 2002, 08:56 AM
Having trouble calling a servlet from a jsp include
I'm having dificulties calling a servlet from within a jsp include. If I call the servlet outside of the include it works fine. Can anyone offer any advice on how to handle this problem?
February 20th, 2002, 10:38 AM
i am having the same sort of issue except im calling a tag...
if you are just trying to get a path to a page from your servlet(which i am assuming because you are putting it in an include)
i would store the path you are retrieving in your servlet and put it in a session... then, at the top of your JSP page, declare a String..
<%String path1 = (String)session.getAttribute(new Integer(1).toString()); %>
where 1 was MY name for the session...
<jsp:include page="<%=path1%>" flush="true" />