我有以下的ActionForm一個Struts 1應用程序: import org.apache.struts.upload.FormFile;
public class uploadedFileForm {
public FormFile theFile;
public FormFile getTheFile() {
return theFile;
}
我想在struts1框架中使用「if condition and while loop」。我有一個帶有setter()和getter()方法的Bean類,用於fname和lname屬性。如何在jsp中使用該bean變量來檢查條件?如何檢查條件? 例如: if (firstname==lastname)
{ some action... }