File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets 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
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Websphere 4.0 and j2sdkee1.3.1 support
 
Similar Threads
Problem witth NoInitialContextException
Not able to run the AdviceClient program mentioned in Chapter 1 of Head First EJB
Unable to test a web service in WSAD 5.0
Unable to test a web service in WSAD 5.0
error when deploying to WAS 4