Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Websphere 4.0 and j2sdkee1.3.1 support

 
riya s
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
riya s
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic