Hi, I got a little struts app that works fine on my or any other pc - But it's supposed to be running on a little bar code scanner similar to a palm or so. As you might have guessed, I am using the application to enter bar codes. The scanner is running on Windows CE and there is a little application running that submits the scanned bar codes to any application currently running. In the case my struts application, it's running on a special Windows CE Version of Internet Explorer, supporting Javascript. When I am on the first page of my struts app, consisting of a little text input form field, When I scan a bar code, the scanner automatically sends a submit, and I guess it does so using Javascript? Anyway - the problem is when doing so, the "setMyValue()" methode is called correctly, however, for some weird reason when calling the getter method in my servlet, it returns NULL!
Sample code: My JSP: <html:form action="/myAction" focus="myValue"> <html:text property="myValue" size="14" maxlength="13" /> <html:submit property="action" value="Submit" /> <html:submit property="action" value="Abort" /> </html:form> My Bean: public String getMyValue() { System.out.println("Get MyValue: "+ myValue); // returns NULL return this.barcode; } public void setMyValue ( String myValue) { System.out.println("My MyValue: "+ myValue); // Returns myValue this.myValue = myValue; this.myValue = this.myValue.trim(); } My Action: public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ){ MyBean myBean = (MyBean)form; String myValue = myBean.getMyValue(); System.out.println("MyValue: "+ myValue); // Returns NULL Any idea, whats wrong? Thanks, Marcus --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]