• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

servlet and jsp in weblogic 5.1

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I am using weblogic 5.1, and I need help in invoking a servlet class from jsp.
I registered my servlet in a weblogic.property file with a virtual name.
I was trying to use
<jsp:forward page="/servlets/package name/UserAuthorization1" >
and it gives me HTTP 400 Error,
I was trying to use
<jsp:forward page="http:ip address/virtual name/server name.servlet">
(in IIS server we specified servlet as extension for servlets)
and it still does not work.
Thanks

 
Ranch Hand
Posts: 919
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I believe that the string that you pass it is the URI (a relative URL), so in other words, if you start the string with a '/' the path is relative to the root URL defined in your ServletContext object.
If you omit the leading '/' you are saying that the path of the page you are forwarding to is relative to your current page.
I hope that helps.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic