Forum: how to extract the url?

74b12171278329601699336d0236b099?d=identicon&s=25 Wrapster Aol (wrapster)
on 2009-02-16 15:08

I am trying to extract the url and base the processing on it..
Have written a series of webrick servlets for this purpose...
But am unable to extract the url.

Supposing i have 2 forms, say
<form action='form1' method='post'>

<form action='form2' method='post'>

How do i extract the url from these 2 forms and process accordingly?
i tried with req.uri , but webrick reports an error...
how do i call it?

Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.