Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing Servlet from HTML page in VAJ

 
Sanya, Kapoor
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
http://127.0.0.1:8080/ThreeParamsForm1.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:
http://127.0.0.1:8080/ThreeParamsForm1.html
It does not return the desired servlet page.
Please if anybody can help
 
Mayer Salzer
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic