| 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);
|
 |
 |
|
|
subject: servlet path
|
|
|