Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-16-2007, 07:13 PM   PM User | #1
charon
Regular Coder

 
Join Date: Jun 2002
Posts: 317
Thanks: 0
Thanked 0 Times in 0 Posts
charon is an unknown quantity at this point
Method within JSP page

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........
charon is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:02 PM.


Advertisement
Log in to turn off these ads.