File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Websphere and the fly likes Websphere 4.0 and j2sdkee1.3.1 support Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Websphere 4.0 and j2sdkee1.3.1 support" Watch "Websphere 4.0 and j2sdkee1.3.1 support" New topic

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
RequestDispatcher rd = null;
rd = getServletConfig().getServletContext().getRequestDispatcher("/AddShow.jsp");
if (rd!=null)
Kiran Kumar
Ranch Hand

Joined: May 18, 2001
Posts: 107
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!
I agree. Here's the link:
subject: Websphere 4.0 and j2sdkee1.3.1 support
It's not a secret anymore!