aspose file tools*
The moose likes Servlets and the fly likes URGENT: jsp:include of servlet not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "URGENT: jsp:include of servlet not working" Watch "URGENT: jsp:include of servlet not working" New topic
Author

URGENT: jsp:include of servlet not working

David Yutzy
tumbleweed and gunslinger
Ranch Hand

Joined: Jun 29, 2001
Posts: 192
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

Joined: Mar 04, 2004
Posts: 1332
    
    2
Try dropping the protocol ("http:") from the include.
David Yutzy
tumbleweed and gunslinger
Ranch Hand

Joined: Jun 29, 2001
Posts: 192
Ok, I've tried the following:



None of them work.
danny liu
Ranch Hand

Joined: Jan 22, 2004
Posts: 185
Use <jsp:include page="/Top3/" flush="true" />


It should work.

dan
David Yutzy
tumbleweed and gunslinger
Ranch Hand

Joined: Jun 29, 2001
Posts: 192
I found the issue. In the servlet, if I change



to



it works. Anyone know why one would work and the other not?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URGENT: jsp:include of servlet not working