what is the syntax for passing parameter in custom tag?
For instance,
calculateTotal is defined in my tld file and it takes two numbers(num1,num2) and add them. what will be the syntax in the jsp to display the total using calculateTotal .
At this point, I'd suggest you start completely over using SimpleTagSupport and don't add anything to the tag implementation that you don't understand the purpose of.
Think you might have solved the above problem with the help of SimpleTagSupport.
I would like to show you the same with TagSupport:
In my application there are 2 jsp files. One of them captures input (two numbers) from the user, keeps them in request Scope and forwards it to result page where i display the result using my <gopi:add/> tag.
for that you need to change the following in the above addition of 2 numbers example: