How we can use Javascript functions to do some operation at client side with the struts taglibs, i.e. <html:submit>, <html:reset>, <html:button> and so on.....??? Please reply me soon....
I tried, but it is giving some error in java and JSP.
Can you try a simple alert inside a javascript function, and call it by some event like onClick or onSubmit through a <html:button> or a <html:submit> taglib ???
And please give me that example, whatever you will try, OK.
Kishore Sahu wrote:But please give me a tried example.
you mean , you ask surya to do your work ? search in google , get some sample and make your needs ,if any suggestion you can get help from here(javaranch) . in this way only you can learn i believe
And I am not asking Surya to do my work..
I am really harassed. because I am new to struts and JSP too.
I don't know much about it. So I asked an example.
Please help me.
And I am not asking Surya to do my work..
I am really harassed. because I am new to struts and JSP too.
I don't know much about it. So I asked an example.
Please help me.
The onClick, onblur, all this JS events will work as they work with non Struts tags, And if you see the JSP code with struts tags, you ll find they are translated into simple html code,
So If you wrote
Yaah Sagar, that's right
but I tried with <html:button> with its onClick attribute, but no output.
I just tried to get an alert through a javascript function, which I called by the event onClick of <html:button> taglib.
So, I am really waiting for you guys, to reply something sensible to me.