File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes calling servlet  from jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply locked New topic

calling servlet from jsp

nitin kumar
Ranch Hand

Joined: May 14, 2002
Posts: 105
Im new to Servlet.In my web.xml
<display-name>Hello Servlet</display-name>
<description>Hello, Servlet!</description>

I need to call this servlet from a jsp .So can I use
this code

<jsp:forward page="/servlet/Hello">

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
PLEASE do not post the same msg in multiple forums
I just answered this in the servlet forum.
I agree. Here's the link:
subject: calling servlet from jsp
It's not a secret anymore!