Forums Register Login

using request dispatcher to call jsp from servlet in weblogic

+Pie Number of slices to send: Send
Hi,
I am trying to call a jsp file from a servlet in weblogic.
I am pasting the code below.

if(ref.equals("http://localhost:7001/register/changePasswd.jsp"))
{
Hashtable h=infobean.getErrors();
if(!(h.isEmpty()))
{
RequestDispatcher rd=sc.getRequestDispatcher("/register/messages.jsp");
rd.forward(req,res);
}
else
{
//do something and dsipatch.
}
}

I am not using any output stream.

Getting the following errors at runtime.

java.lang.NoSuchMethodError:javax.servlet.ServletResponse:method
isCommitted()Z not found.
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:95)
at register.reg.Controller.doPost(Compiled code)
//servlet name.
at javax.servlet.http.HttpServlet.service(Httpservlet.java:747)
at javax.servlet.http.HttpServlet.service(Httpservlet.java:840)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:105)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet
(ServletContextImpl.java:742)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet
(ServletContextImpl.java:686)
at weblogic.ServletContextManager.invokeServlet(ServletContextManager.java:247)
at weblogic.socket.MuxablesocketHTTP.invokeServlet(MuxableSocketHttp.java:361)
at weblogic.socket.MuxablesocketHTTP.execute(MuxableSocketHttp.java:261)
at weblogic.kernel.ExecuteThread.run(Compiled code)
has the errors got anything to do with weblogic properties file.
regards,
venumg

+Pie Number of slices to send: Send
"venumg g",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.
On top of spaghetti all covered in cheese, there was this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1780 times.
Similar Threads
NullPointerException in MultipartRequest--Urgent
Problem with using JCE!
problem running client on different machine
NullPointerException in MultipartRequest--Help In this
Urgent-Weblogic Servlet Query
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 03:13:55.