aspose file tools*
The moose likes Servlets and the fly likes Please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Please help" Watch "Please help" New topic
Author

Please help

karna nithi
Greenhorn

Joined: Nov 29, 2001
Posts: 8
Hi,
My name is nithi. I tried to forward from jsp to servlet i got the following error! What may be the problem?
Error 404
An error has occured while processing request:http://cdpsslpint/webapp/CDPSblApp/webapp/CDPSblApp/LendableSecServlet
Message: File not found: //webapp/CDPSblApp/LendableSecServlet
Target Servlet: file
Nithi
k swamy
Greenhorn

Joined: Jul 31, 2001
Posts: 14
Hi
That indicates that ur servlet class file is missing in the specified path
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16012
    
  19

Also, "cdpsslpint" had better be your SERVER name, not a directory name, because that's what your web browser thinks it is!


Customer surveys are for companies who didn't pay proper attention to begin with.
karna nithi
Greenhorn

Joined: Nov 29, 2001
Posts: 8
Originally posted by Tim Holloway:
Also, "cdpsslpint" had better be your SERVER name, not a directory name, because that's what your web browser thinks it is!

karna nithi
Greenhorn

Joined: Nov 29, 2001
Posts: 8
Hai,
cdpsslpint is server name. The details
Server: WebSphere Application Server for OS/390

Config:
Description Web Application: CDPSblApp
Virtual Host SES5websrv1
Engine websrv1
Document Root /websrv1/WebSphere/CDPSblApp/web
Classpathwebsrv1/WebSphere/CDPSblApp/servlets: /websrv1/WebSphere/CDPSblApp/classes:
/websrv1/WebSphere/CDPCommonUtilities/servlets
Root URI /webapp/CDPSblApp

When i tried to forward one jsp to another or jsp to servlet i am get the following error.
Example:
<jsp:forward page="/webapp/CDPSblApp/lender/AddLenderForm.jsp" />
Error in log:
Dec 04, 2001 10:56:50.492 AM 21f7bf80:24:470001:5:Thread[Thread-29,5,main] DefaultErrorR X Error 404 Message: [jsp] reported an errorTarget Servlet: jsp
What is wrong with my settings. Help Me
thanks in advance

karna.....

Originally posted by Tim Holloway:
Also, "cdpsslpint" had better be your SERVER name, not a directory name, because that's what your web browser thinks it is!

k swamy
Greenhorn

Joined: Jul 31, 2001
Posts: 14
Hi
Try with this url
http://cdpsslpint/webapp/CDPSblApp/LendableSecServlet
Swamy
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Have you tried :
karna nithi
Greenhorn

Joined: Nov 29, 2001
Posts: 8
Hai swamy,
while calling with this url
http://cdpsslpint/webapp/CDPSblApp/LendableSecServlet
Which workin. When i forward from jsp to Servlet which is not working.
in Jsp i am using
<%use:forward page="/webapp/CDPSblApp/LendableSecServlet">
That time i am getting the following error in log
Dec 04, 2001 10:56:50.492 AM 21f7bf80:24:470001:5:Thread[Thread-29,5,main] DefaultErrorR X Error 404 Message: [jsp] reported an errorTarget Servlet: jsp
What i have to do? Give me advice. Thanks
thanks
karna

Originally posted by k swamy:
Hi
Try with this url
http://cdpsslpint/webapp/CDPSblApp/LendableSecServlet
Swamy

karna nithi
Greenhorn

Joined: Nov 29, 2001
Posts: 8
Hi Mike,
Thanks
I haven't try this let try and i will get back to you.
thanks
karna
Originally posted by Mike Curwen:
[B]Have you tried :[/B]

k swamy
Greenhorn

Joined: Jul 31, 2001
Posts: 14
Hi Karna
Jus try out putting only the Servlet name in the jsp forward tag.U need not mention any root uri n all.Hope this helps.
Swamy.
karna nithi
Greenhorn

Joined: Nov 29, 2001
Posts: 8
Hai Swamy,
It has done. I given the servlet name only in jsp forward tag. Thank you very much for your kind help.
keep in touch.
Thanks Lot
karna
Originally posted by k swamy:
Hi Karna
Jus try out putting only the Servlet name in the jsp forward tag.U need not mention any root uri n all.Hope this helps.
Swamy.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Please help