Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot find servlet

Status
Not open for further replies.

larsgrill

Programmer
Aug 6, 2003
9
DK
Hi,

I have a problem.

From docman.jsp I can submit a form and a find a servlet.

When I in docman.jsp open another window (by use of JavaScript) and from this window (deldoc.jsp) tries to submit a form to a servlet, I get a page not found because it looks in the same folder as the jsp files. But the servlets are placed in an entirely different place.

If I change the JavaScript which submits the form, so that it's submitted from the first page, ie. docman.jsp, it works fine.

Is there anything I'm missing here? I've tried accessing different servlets and I think it perhaps has got to do with some kind of configuration. Please let me know if there's anything specific you need to know.

Cheers,
Lars
 
What do you have in your web.xml.
What action do you have in your form?
What is the javascript?
Why javascript?

And there is a servlets and jsp page on this.



Christiaan Baes
Belgium

"My new site" - Me
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top