|
enhydra newbie -- form data handling help/tips needed: msg#00054java.enhydra.general
Hi, Form.html has a text field named inputName. I have the following code for FormResultPresentatio, which is the ACTION po of Form.html: =============================================================== 1.public class FormResultPresentation implements HttpPresentation { 2. 3. public void run(HttpPresentationComms comms) 4. throws HttpPresentationException, IOException, 5. NonUniqueQueryException, DataObjectException { 6. 7. FormResultHTML formResult; 8. FormHTML formHTML=new FormHTML(); 9. HTMLInputElement value; 10. formResult=(FormResultHTML)comms.xmlcFactory.create(FormResultHTML.class); 11. value=formHTML.getElementInputName();//getting the value of inputName 12. formResult.setTextName(value.getAccept()); 13. comms.response.writeDOM(formResult); } } ============================================== As per the XMLC tutorial, getElement* returns the instance of HTMLInputElement, so I have declared value as HTMLInputElement. How to send this value as string to setTextName(String) method of formResult? In short, I am basically trying to assign all form input values from Form.html to string variables in the above script? Since I am new to both Java and enhydra, I may be entirely wrong on my approach, any tips/pointers to relevant doc would be highly appreciated. Thanks. Damar
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | problem about kSOAP,kXML, Perapote Fuangfoovongrat |
|---|---|
| Next by Date: | RE: enhydra newbie -- form data handling help/tips needed, Thorsten Hilker |
| Previous by Thread: | problem about kSOAP,kXML, Perapote Fuangfoovongrat |
| Next by Thread: | RE: enhydra newbie -- form data handling help/tips needed, Thorsten Hilker |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |