• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Websphere 4.0 and j2sdkee1.3.1 support

 
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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);
 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
reply
    Bookmark Topic Watch Topic
  • New Topic