Forums Register Login

Problem forwarding a request

+Pie Number of slices to send: Send
Hi all, I have a problem with a servlet forwarding a client's request
The code in my servlet is the following:

For some users I get an exception when trying to forward:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
The weird fact is that the forward inside my catch block works fine!

I'm using Weblogic 5.1 and jdk 1.4

Thank you.
+Pie Number of slices to send: Send
I have never been able to get a forward to work without adding a / before the page.



You may need to supply more than just the page name as this will look at the root of your context.
[ September 24, 2004: Message edited by: Gregg Bolinger ]
It is an experimental device that will make my mind that most powerful force on earth! More powerful than this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 768 times.
Similar Threads
Problem with RequestDispatcher
How to arraylist value pass servlet action to JSP file
forward method in jsp
Can I forward a local variable to another servlet?
how to transfer Streams from one servlet to another servlet
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 03:41:17.