Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using request dispatcher to call jsp from servlet in weblogic

 
venumg g
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic