• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts-Ajax Problem

 
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I am using platform: Struts 1.2.9, JDK 1.4, Tomcat 5.0.30

Basic Problem:
A JSP has a row which contains different elements (Textbox, combo box, checkbox, etc). A button is given to provide the �Add Row� functionality. It creates a dynamic row that is a replica of the same row.

There is a triple-combo-box (third based on second and second based on first) in the row. Currently I am using JS to populate but the second dynamic row gives a problem and the values are not populated in the desired manner.

I plan to use Ajax for the same.

SampleCodeProblem:I made a sample code for which i have this problem.
Generally most the available examples use �id� <input type=�text� .. id=��>. The tags for Struts do not support id. <html:text name=�� >. Span tag may be use for differentiating Ajax returns.

When I use Span tag and I use:

<span>
<html:text name=�abc� property=�xyz�>
</span>

The tomcat server gives an error for the bean not found, whereas the bean exists and the proper getXXX() and setXXX() are there in the Form class. The example in question is not giving any problem when I want to display any text/image etc. It works fine. When ever I put any tag inside <span> which requires a user input it throws an exception.

Kindly help me solve the problem.
Regards,
Roshani
 
Do you want ants? Because that's how you get ants. And a tiny ads:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic