• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URGENT: jsp:include of servlet not working

 
David Yutzy
tumbleweed and gunslinger
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Any help is greatly appreciated!

I can call my servlet like:

http://localhost/PressReleases/Top3

and it works just fine, but when I try to include it in a JSP file like:



The request appears to stop and I get nothing. Under Tomcat, I get nothing, no exception, or error of any kind. Under SunONE, I get the following:

 
Warren Dew
blacksmith
Ranch Hand
Posts: 1332
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try dropping the protocol ("http:") from the include.
 
David Yutzy
tumbleweed and gunslinger
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I've tried the following:



None of them work.
 
danny liu
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use <jsp:include page="/Top3/" flush="true" />


It should work.

dan
 
David Yutzy
tumbleweed and gunslinger
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the issue. In the servlet, if I change



to



it works. Anyone know why one would work and the other not?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic