| Author |
Websphere 4.0 and j2sdkee1.3.1 support
|
riya s
Ranch Hand
Joined: Feb 28, 2003
Posts: 110
|
|
I am using the following in my servlet..I am using j2sdkee1.3.1 and I am using Websphere 4.0 Single server edition.. I wonder if Websphere 4.0 supports this.. because when i call my servlets I get 404 error request.setAttribute("query",query); RequestDispatcher rd = null; rd = getServletConfig().getServletContext().getRequestDispatcher("/AddShow.jsp"); if (rd!=null) rd.forward(request,response);
|
 |
Kiran Kumar
Ranch Hand
Joined: May 18, 2001
Posts: 107
|
|
Hi RequestDespatcher works in WAS4. just check if the jsp u r trying to access is there in the proper path or not. otherwise u can use the NamedDespatcher and use the absolute path to get the RD. hope this helps
|
Thanks<br /> <br />Kiran <br /> <br />SCEA, SCJP 1.4,<br /> <br />"First they ignore u, then they laugh at u, then they fight u, <br />then u will win<br /> <br />Mahatma Gandhi"
|
 |
riya s
Ranch Hand
Joined: Feb 28, 2003
Posts: 110
|
|
Thanks Kiran... I solved the problem now.. I downloaded j2sdkee1.2.1 and compiled files and they work under websphere 4.0 Also another mistake I made was that I did not know that jsp worked without a port number and servlets required a port number to work... I was getting 404 error for my servlets and could not figure why that was happening... When I added the port the servlets worked.. I dont know why the jsp does work without a port number...? Anyway it was a long learning process but I am satisifed now.. Thank you .. BTW I like the Gandhi quote!
|
 |
 |
|
|
subject: Websphere 4.0 and j2sdkee1.3.1 support
|
|
|