File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

calling servlet from jsp

nitin kumar
Ranch Hand

Joined: May 14, 2002
Posts: 105
hi,
Im new to Servlet.In my web.xml
<servlet>
<servlet-name>Hello</servlet-name>
<servlet-class>exercise.HelloWorldServlet</servlet-class>
<display-name>Hello Servlet</display-name>
<description>Hello, Servlet!</description>
<init-param>
<param-name>aaa</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>numMax</param-name>
<param-value>5</param-value>
</init-param>
</servlet>

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

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

bye
nitin
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
PLEASE do not post the same msg in multiple forums
I just answered this in the servlet forum.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: calling servlet from jsp