<s:file name="anUploadFile" accept="text/*" /> <s:file name="anohterUploadFIle" accept="text/html,text/plain" />
36373839404142
public String getBeanName() { return "fielderror"; } protected Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) { return new FieldError(stack, req, res); }
32333435363738
/** * @see File */ public class FileDirective extends AbstractDirective { protected Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) { return new File(stack, req, res); }
39404142434445
protected String accept; protected String size; public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) { return new File(stack, req, res); }
454647484950515253
} protected void populateParams() { super.populateParams(); File file = ((File) component); file.setAccept(accept); file.setSize(size); }
public FileModel(ValueStack stack, HttpServletRequest req, HttpServletResponse res) { super(stack, req, res); } protected Component getBean() { return new File(stack, req, res); }
28293031323334
35363738394041
414243444546474849
38394041424344