My requirements dictate that I call my servlet from HTML.
The servlet then uses JNDI to look up an EJB.
Both my servlet and EJB work within the VisualCafeEE IDE, but I cannot get it to run outside that environment.
Could you please send me the correct HTML and Servlet source code. I can be reached at cbasoli at edeploy dot com or 303-854-3216.
Thank you, 'Soli
-
HTML calling a Servlet? (5 messages)
- Posted by: Web Master
- Posted on: September 05 2000 14:18 EDT
Threaded Messages (5)
- HTML calling a Servlet? by Avi jit on September 05 2000 18:34 EDT
- HTML calling a Servlet? by Robert Baty on September 06 2000 13:37 EDT
- HTML calling a Servlet? by Alain Kouadja on July 20 2004 06:03 EDT
- HTML calling a Servlet? by Mohit Gupta on July 20 2004 09:15 EDT
- Hello World ! by Andrei Karneyenka on July 20 2004 09:55 EDT
-
HTML calling a Servlet?[ Go to top ]
- Posted by: Avi jit
- Posted on: September 05 2000 18:34 EDT
- in response to Web Master
Hi ,
I am sure you can do this by this :
<FORM method="POST" action="full_path_of_servlet/servlet_name" >
.....
.....
</FORM>
so by clicking a button your servlet will be triggered and do whatever you want to do in servlet .
hope this lelps ,
Avijit -
HTML calling a Servlet?[ Go to top ]
- Posted by: Robert Baty
- Posted on: September 06 2000 13:37 EDT
- in response to Web Master
yes use
<FORM method="POST" action="full_path_of_servlet/servlet_name" >
.....
.....
</FORM>
however, the "full_path_of_servlet" piece of the action command may be causing you problems. The default configuration for most IDEs is "/servlet/" so your form would be
<FORM method="POST" action="servlet/loginservlet" >
for the loginservlet.
however, if you work in a multiple application environment someone could have set up an "application alias" for your project. If that has happened then you will need to put whatever that is in place of the word servlet above.
-
HTML calling a Servlet?[ Go to top ]
- Posted by: Alain Kouadja
- Posted on: July 20 2004 06:03 EDT
- in response to Web Master
Hello,
How do you for call a servlet without using <form ... action="MaServlet" >
Thank you -
HTML calling a Servlet?[ Go to top ]
- Posted by: Mohit Gupta
- Posted on: July 20 2004 09:15 EDT
- in response to Alain Kouadja
Use href in anchor tag
-Mohit -
Hello World ![ Go to top ]
- Posted by: Andrei Karneyenka
- Posted on: July 20 2004 09:55 EDT
- in response to Web Master
My requirements dictate that I call my servlet from HTML.
Does TSS looks like as a Javascript/HTML newbie forum ?
The servlet then uses JNDI to look up an EJB.
Both my servlet and EJB work within the VisualCafeEE IDE, but I cannot get it to run outside that environment.
Could you please send me the correct HTML and Servlet source code. I can be reached at cbasoli at edeploy dot com or 303-854-3216.
Thank you, 'Soli