<identifier> expected error

i have writen a simple code but in which during compilation i get error as <identifier> expected

package com.mycompany.messages.action;

import java.io.IOException;

import java.io.*;

//import com.mycompany.message.bean.sambean;

publicclass samaction

{

//BeanName obj = (BeanName) form // here form is a parameter passed in Action execute method.

javax.servlet.http.HttpServletRequest request = (javax.servlet.http.HttpServletRequest)javax.faces.context.FacesContext.getCurrentInstance().getExternalContext().getRequest();

String comb = request.getParameter("myform:combo");

System.out.println(comb);

//sambean bea = new sambean();

public String getSuc(){

System.out.println("hi");

return"success";

}

}

[1315 byte] By [my.doubtsa] at [2007-11-26 17:47:18]
# 1
Lines like System.out.println must be inside methods or static initializers.
atmguya at 2007-7-9 4:59:36 > top of Java-index,Developer Tools,Java Compiler...