To the best of my knowledge. You can't include a servlet in a JSP page. You
can do a submit to a servlet, or have a servlet forward data to a JSP page.
-Original Message-
From: Raju Lokhande [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 16, 2002 1:06 PM
To: [EMAIL PROTECTED]
Subject:
output.
Check the tomcat examples...such as Hello World, etc.
John Turner
[EMAIL PROTECTED]
-Original Message-
From: Wills, Mike N. (TC) [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 16, 2002 2:09 PM
To: 'Tomcat Users List'
Subject: RE: Calling a servlet from a jsps page
To the best
Assuming rajapp is your context, your jsp:include / statement will be:
jsp:include page=/CurrentTime flush=true /
or
jsp:include page=/servlet/mypkg.CurrentTime flush=true /
Ofcourse make sure your class is under
appBaseDirectory/rajapp/WEB-INF/mypkg
RS
My class is under c:\jakarta-tomcat\4.0.3\webapps\rajapp\WEB-INF\classes\mypkg
I tried both of your suggestions
jsp:include page=/CurrentTime flush=true /
or
jsp:include page=/servlet/mypkg.CurrentTime flush=true /
Any idea what is happening here?
Thanks
Raju Lokhande
[EMAIL PROTECTED] 08/16/02
cc:
Subject: Re: Calling a servlet from a
jsps page
08/16/02 01:43 PM
a servlet from a jsps page
My class is under
c:\jakarta-tomcat\4.0.3\webapps\rajapp\WEB-INF\classes\mypkg
I tried both of your suggestions
jsp:include page=/CurrentTime flush=true /
or
jsp:include page=/servlet/mypkg.CurrentTime flush=true /
Any idea what is happening here?
Thanks
Raju Lokhande
[EMAIL
:
Subject: Re: Calling a servlet from a
jsps page
08/16/02 01:43 PM
Please respond
[EMAIL PROTECTED]To:
[EMAIL PROTECTED]
lth.net cc:
Subject: Re: Calling a servlet from a
jsps page
To: [EMAIL PROTECTED]
Subject: Re: Calling a servlet from a jsps page
Yes, I can run my servlet in IE as
http://my-local-host-name/rajapp/servlet/mypkg.CurrentTime
and the browser shows the expected output which is current time.
Raju Lokhande
[EMAIL PROTECTED] 08/16/02 02:55PM
Oops! I