Thats my code <html:form method="POST" action="/files"> <bean:define id="processName" name="filesForm" property="processName" type="fully-qualified-class-type-name" /> <bean:define id="folder" name="filesForm" property="folder" type="fully-qualified-class-type-name" /> <html:hidden property="folder"/> <html:hidden property="processName"/> <table width="100%" border="0" cellspacing="0" cellpadding="0">
I changed it as suggested and this was the error I got org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 51 in the jsp file: /files.jsp Generated servlet error: [javac] Compiling 1 source file /usr/local/tomcat-imageshed/work/Standalone/localhost/spooleradmin/files_jsp .java:154: illegal start of expression fully-qualified-class-type-name processName = null; ^ An error occurred at line: 51 in the jsp file: /files.jsp Generated servlet error: /usr/local/tomcat-imageshed/work/Standalone/localhost/spooleradmin/files_jsp .java:154: not a statement fully-qualified-class-type-name processName = null; ^ An error occurred at line: 51 in the jsp file: /files.jsp Generated servlet error: /usr/local/tomcat-imageshed/work/Standalone/localhost/spooleradmin/files_jsp .java:154: expected fully-qualified-class-type-name processName = null; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Vance Heredia Java Wireless Architect Global Applications Lonely Planet Publications Email: [EMAIL PROTECTED] Phone: +61 3 8379 8000 http://www.lonelyplanet.com/ http://mobile.lonelyplanet.com/ http://wap.lonelyplanet.com/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----Original Message----- From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED] Sent: Wednesday, 6 August 2003 5:33 PM To: [EMAIL PROTECTED] Subject: Re: Bean tag lib help try <bean:define id="processName" name="filesForm" property="processName" type="fully-qualified-class-type-name"/> -- nagi -------Original Message------- From: Struts Users Mailing List Date: Wednesday, August 06, 2003 12:18:43 PM To: '[EMAIL PROTECTED]' Subject: Bean tag lib help Hello, I got a question. My struts-bean tag doesnot seem to work correctly. Everytime I use the Bean tag Eg <bean:define id="processName" name="filesForm" property="processName"/> I get a java.lang.ClassCastException at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:766) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481) at org.apache.jsp.files_jsp._jspService(files_jsp.java:149) The Java code looks like _jspx_th_html_form_0.setParent(_jspx_th_html_html_0); _jspx_th_html_form_0.setMethod("POST"); _jspx_th_html_form_0.setAction("/files"); 149-> int _jspx_eval_html_form_0 = _jspx_th_html_form_0.doStartTag(); if (_jspx_eval_html_form_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { do { out.write("\r\n "); /* ---- bean:define ---- */ java.lang.Object processName = null; org.apache.struts.taglib.bean.DefineTag _jspx_th_bean_define_0 = (org.apache.struts.taglib.bean.DefineTag) _jspx_tagPool_bean_define_property_name_id.get(org.apache.struts.taglib.bean ..DefineTag.class); Doea anyone have any ideas how to fix it ???? Vance Heredia ______________________________________________________________________ This email, including attachments, is intended only for the addressee and may be confidential, privileged and subject to copyright. If you have received this email in error, please advise the sender and delete it. If you are not the intended recipient of this email, you must not use, copy or disclose its content to anyone. You must not copy or communicate to others content that is confidential or subject to copyright, unless you have the consent of the content owner. ____________________________________________________ IncrediMail - Email has finally evolved - Click Here