But, I can run from JSP and I'd like to know desperately how to call those servlets from JSP.
Are you merely trying to use the JSP simply as a means to invoke the servlet? If so, I'd say back up and let's address the real problem: why you can't invoke the servlets. [ March 02, 2004: Message edited by: Bear Bibeault ]
Kneejerk reaction: if that's the case, get yourself a real IDE. An IDE is supposed to help you get your work done, not make you set up artificial constructs to get things done. Calmer reaction: the simplest way to invoke (a better term than "call") a servlet from a JSP is with the jsp:forward action. No HTML, no nothing. Just the forward. But to do that, you need the URL formed by the servlet mapping for the servlet which you would have set up in the web.xml file. (Though if you have that, why won't the IDE let you invoke it the same way as a JSP?) Have you asked in the IDEs forum about using JDeveloper and servlets?
Originally posted by Al Kaiser: I'm using IDE JDeveloper and in there you can't run a servlet standalone. You need a JSP page to call the servlets.
servlets are not standalone desktop application. To test them you need some client which is an html page. You can use jsp to generate html page, but in the end it is html only. to call a servlet from a html page (or jsp), there are many ways. Like <form action="/myServlet"> </form> In web.xml map your servlet to "/myServlet" in servlet-mapping
Prakash Dwivedi (SCJP2, SCWCD, SCBCD)
"Failure is not when you fall down, Its only when you don't get up again"