This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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);
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: servlet path
 
Similar Threads
Swing - servlet communication
AJAX
problem in running exec() from servlet
creating a web application in eclipse
Can't get parameter in struts when using input type="file"...?