On Wed, Jun 13, 2012 at 11:12 AM, Kiran Badi <[email protected]> wrote:

> why I not getting the url of jsp something like
>
> http://localhost:8080/ourstory/myiddata.jsp

If you want 'clean' URLs you should get rid of the '.jsp' too, but ...

The bottom line is the value for 'id' needs to come from somewhere.
Your choices are:

1) Embed it in the URL for GET requests, either via query string or
    as path info  (e.g. /story/data/17 ) and handle the security aspect
    (if any) yourself

2) Use a form to POST the request with the id included (a bit clunky,
     same security issue)

3) Save the 'id' in session and use that -- everyone sees the same URL
     e.g. /story/data but with unique data. Obviously, this doesn't work for
     a resource that's intended to be shared  :-)

HTH,
-- 
Hassan Schroeder ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to