Hi..

I know it is a very simple question, but really have no idea as I can't find any sample via all the forums and tutorial.

I have created a simple function within a JSP page as I just want to see if the format is correct(normally I'm creating packages/classes), but fail with error ~" ; expected". Really wonder why.

Code:
int getStr(int a)
{
try{

int v=0;
v=1;
return v;
	
}catch (Exception e){}
}
pls advise........