This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes URL - re writing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "URL - re writing" Watch "URL - re writing" New topic
Author

URL - re writing

ramchander yshetti
Ranch Hand

Joined: Apr 22, 2006
Posts: 97
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..
Kannan TKannan
Greenhorn

Joined: Jul 20, 2006
Posts: 5
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URL - re writing
 
Similar Threads
Vina notes
is Khalid Mughal Book (2nd edition) available in Indian edition. please give me URL
Anybody want a JavaRanch shirt?
how to take the jxam exam
down load jboss for linux