A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
JSP
Author
calling servlet from jsp
nitin kumar
Ranch Hand
Joined: May 14, 2002
Posts: 105
posted
Jun 03, 2004 05:18:00
0
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: 12268
1
posted
Jun 03, 2004 06:45:00
0
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://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: calling servlet from jsp
Similar Threads
getting the contextpath to read and write text files
call servlet from a jsp
Error while running the Controller Servlet
Jboss4.2 with Eclipse 3.3 - Page does not refresh
web.xml configuration Problem
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter