Forums Register Login

URL - re writing

+Pie Number of slices to send: Send
hai,
would you please tell me about url-rewriting.
and please give me a sample program on it,so that i can demonstrate it.



hava a nice day..
+Pie Number of slices to send: Send
Consider a servlet which accepts 2 parameters.
You need to invoke this servlet when the user clicks the hyperlinke "CallServlet".
Now on clicking this "CallServlet" hyperlink that CallServlet.java should be invoked. This "CallServlet" takes 2 input parameters. To pass those 2 input parameters you can use url re-writing.
For ex
res.sendRedirect("CallServlet?param1=value1¶m2=value");

So here CallServlet url is appended with param1=value1¶m2=value2.
BWA HA HA HA HA HA HA! 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 836 times.
Similar Threads
how to take the jxam exam
Vina notes
Anybody want a JavaRanch shirt?
down load jboss for linux
is Khalid Mughal Book (2nd edition) available in Indian edition. please give me URL
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 12:02:33.