> <jsp: include page="/rajapp/mypkg.CurrentTime.class" flush="true" />
My guesses, Remove .class try page="servlet/mypkg.CurrentTime" or page="/rajapp/servlet/mypkg.CurrentTime" > -----Original Message----- > From: Raju Lokhande [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 16, 2002 12:53 PM > 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 missed the word "classes". Sorry about that. But > heck, you got it > right. > Can you run your servlet as > http://my-local-host-name/rajapp/servlet/mypkg.CurrentTime > What error do you get on the browser? Check you logs file for > exceptions/errors. > > RS > > > > > > "Raju Lokhande" > > <[EMAIL PROTECTED] To: > <[EMAIL PROTECTED]> > lth.net> cc: > > Subject: Re: > Calling a servlet from a jsps page > 08/16/02 01:43 PM > > Please respond to > > "Tomcat Users > > List" > > > > > > > > > > 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 02:11PM >>> > > 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 > > > > > > "Raju Lokhande" > > <[EMAIL PROTECTED] To: > <[EMAIL PROTECTED]> > lth.net> cc: > > Subject: > Calling a servlet from a jsps page > 08/16/02 01:05 PM > > Please respond to > > "Tomcat Users > > List" > > > > > > > > Greetings everyone, > I have a .jsps page as follows: > ===============Begin================== > <html> > <head><title>Times!</title></head> > <body> > The current time here is: > <jsp: include page="/rajapp/mypkg.CurrentTime.class" flush="true" /> > <P> > </body> > </html> > =============End===================== > My application web.xml entries are as follows > ===============Begin================== > <servlet> > <servlet-name> CurrentTime </servlet-name> > <servlet-class> mypkg.CurrentTime </servlet-class> > </servlet> > > <servlet-mapping> > <servlet-name> CurrentTime </servlet-name> > <url-pattern> /CurrentTime </url-pattern> > </servlet-mapping> > ==========End============ > I invoke this page as http://my-local-host-name/rajapp/times.jsps > I get no output from the servlet. > The Servlet class compiled fine. I followed the advice from > my searches in > the archives for this list server. > Any idea about what is wrong here. I am using jakarta-tomcat-4.0.3 on > Win2000. > Thanks in advance > Raju Lokhande > > > > > ************************************************************** > *********** > This message, together with any attachments, is intended only > for the use of the individual or entity to which it is addressed. It > may contain information that is confidential and prohibited from > disclosure. If you are not the intended recipient, you are > hereby notified that any dissemination or copying of this > message or any attachment is strictly prohibited. If you have > received this message in error, please notify the original sender > immediately by telephone or by return e-mail and delete this > message along with any attachments, from your computer. > Thank you. > ************************************************************** > *********** > > > -- > To unsubscribe, e-mail: < > mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: < > mailto:[EMAIL PROTECTED]> > > > > > > > > -- > To unsubscribe, e-mail: < > mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: < > mailto:[EMAIL PROTECTED]> > > > > > ************************************************************** > *********** > This message, together with any attachments, is intended only > for the use of the individual or entity to which it is addressed. It > may contain information that is confidential and prohibited from > disclosure. If you are not the intended recipient, you are > hereby notified that any dissemination or copying of this > message or any attachment is strictly prohibited. If you have > received this message in error, please notify the original sender > immediately by telephone or by return e-mail and delete this > message along with any attachments, from your computer. > Thank you. > ************************************************************** > *********** > > > -- > To unsubscribe, e-mail: < > mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: < > mailto:[EMAIL PROTECTED]> > > > > > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > ************************************************************** > *********** > This message, together with any attachments, is intended only > for the use of the individual or entity to which it is addressed. It > may contain information that is confidential and prohibited from > disclosure. If you are not the intended recipient, you are > hereby notified that any dissemination or copying of this > message or any attachment is strictly prohibited. If you have > received this message in error, please notify the original sender > immediately by telephone or by return e-mail and delete this > message along with any attachments, from your computer. > Thank you. > ************************************************************** > *********** > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>