Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp:forward can't find servlet  RSS feed

 
Dave Lawrence
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I'm currently trying to call a servlet(i.e. ClientToEJB) from a jsp. I'm using weblogic web server 5.1.
I can call the Test.jsp that's in the same directory as my jsp.
But if I attempt to call the servlet at http://11.12.13.123:1234/ClientToEJB, I get a file not found
error.
<%
if (!request.getParameter("orderno").equals("")) {
%>
<jsp:forward page="http://11.12.13.123:1234/ClientToEJB" />
<% }else{ %>
<jsp:forward page="Test.jsp" />
<% } %>
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

1) Did you add a servlet mapping in the web.xml
2) Is your servlet within a package ?
3) Are you able to call your servlet without the forward ?
I mean : http://11.12.13.123:1234/ClientToEJB in the url of your browser works ?
 
Dave Lawrence
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bill,
It's yes to 2 & 3. I have ref the servlet within weblogic.properties.
 
Dave Lawrence
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
can any body help with this problem.
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this...
http://11.12.13.123:1234/servlet/yourPackageName/ClientToEJB
------------------
Bosun
SCJP for the Java� 2 Platform
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My previous post was not exactly correct.
http://11.12.13.123:1234/servlet/yourPackageName.ClientToEJB
 
Dave Lawrence
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank's for all the help, it all works.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!