|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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" /> |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > Calling a servlet from a jsp include |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|