Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old February 15th, 2002, 08:56 AM
dsummers dsummers is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Location: Maryland
Posts: 0 dsummers User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to dsummers Send a message via AIM to dsummers Send a message via Yahoo to dsummers
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

Reply With Quote
  #2  
Old February 20th, 2002, 10:38 AM
wolfespawn wolfespawn is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 68 wolfespawn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via AIM to wolfespawn
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" />

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Calling a servlet from a jsp include


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway