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

servlet path

Manon Baratt
Ranch Hand

Joined: Jan 30, 2006
Posts: 58
I have an application I was running in Eclipse using Tomcat. I used index.jsp which redirected to a servlet. When I try to run this application in RAD using the WebSphere App server, I get a 500 error. My servlets are stored under Java Resources/JavaSource. What changes do I make to web.xml to get this working?

Thanks.
Prabhu Venkatachalam
Ranch Hand

Joined: Nov 16, 2005
Posts: 502

Seems like URL is wrong.

Check web.xml entry and .jsp form URL entry matches.
[ December 27, 2006: Message edited by: Prabhu Venkatachalam ]

Prabhu Venkatachalam<br />SCJP 1.4,SCWCD 1.4<br />prabhu.venkatachalam@gmail.com
Manon Baratt
Ranch Hand

Joined: Jan 30, 2006
Posts: 58
Here is the requestdispatcher line I use in my index.jsp.

RequestDispatcher rd = request.getRequestDispatcher("servlet/MyServlet");
rd.forward(request, response);

This soultion worked under Tomcat.
Manon Baratt
Ranch Hand

Joined: Jan 30, 2006
Posts: 58
I mistyped the lines. Below is the correct lines.

RequestDispatcher rd = request.getRequestDispatcher("/MyServlet");
rd.forward(request, response);
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlet path
 
Similar Threads
AJAX
Swing - servlet communication
Can't get parameter in struts when using input type="file"...?
creating a web application in eclipse
problem in running exec() from servlet