#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2002
    Location
    Maryland
    Posts
    0
    Rep Power
    0

    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?

    Dennis
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Posts
    68
    Rep Power
    14
    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...
    then...


    <jsp:include page="<%=path1%>" flush="true" />

IMN logo majestic logo threadwatch logo seochat tools logo