Hi All,
I am using Spring and Velocity.My requirement is, there is a hyperlink, when the user clicks the hyperlink it should call my spring action class and show the data for that Id.
when i used < a href=”<pass the URL here>”> it works fine. Instead of that if i call javascript function and saying,
[code=html]document.forms[0].action=”my actoin path”;
document.form[0].submit();
if i give like this , it goes to the action and it submits the form,so i am unable to view my edit page. because once i submit it goes to the SUCCESS page.
i want to know why it happen like this, what difference it really makes when you use < a href> and document.forms[0].submit()??
Pls share with me.
Regards
Kishan.