File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Accessing Servlet from HTML page in VAJ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Accessing Servlet from HTML page in VAJ" Watch "Accessing Servlet from HTML page in VAJ" New topic

Accessing Servlet from HTML page in VAJ

Sanya, Kapoor

Joined: Mar 26, 2001
Posts: 10
Please if sombody can help me with this: I am trying to access a Servlet created in VAJ in a application/project CoreServletsProj: coreservlets1.ThreeParams1
through the HTML:
where <form action= "/servlet/coreservlets1.ThreeParams1"method="Get">
I imported ThreeParamsForm1.html in resources and also added this html file in \IBM WebSphere Test Environment\hosts\default_host\default_app\web
The problem is:
When I input in the form:
It does not return the desired servlet page.
Please if anybody can help
Mayer Salzer

Joined: Apr 01, 2002
Posts: 20
What if anything are you getting on your output page? Are you getting any error codes?
Also I noticed in your example <form action= "/servlet/coreservlets1.ThreeParams1"method="Get"> that there's no space between the "action" tag and the "method" tag. I don't know if this was just a typo when you copied it over, or if you actualy have it this way in your html page, in which case you probably got a 404 error code . .
If you're not getting anything, did you start your test environment? Is it set up correctly (including the ".webapp" file etc . .)
Good luck.
[ June 06, 2002: Message edited by: Mayer Salzer ]

Sun Certified Programmer for Java 2 Platform
I agree. Here's the link:
subject: Accessing Servlet from HTML page in VAJ
It's not a secret anymore!