This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URL - re writing

 
ramchander yshetti
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic