• 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

Dynamic html:text

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hai.

How we can generate dynamic<html:text> in struts that is when i press enter a new row of <html:text> appear ?
 
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Anooplal .A.H:
Hai.

How we can generate dynamic<html:text> in struts that is when i press enter a new row of <html:text> appear ?



Not sure how you want this to be done but I think you want it to happen on the client side without a page submit.

<html:text> is a custom tag which executes on the server to generate the HTML markup for a text field i.e. <input type="text" > which is then rendered on the client's browser. You can't add this on the client side since it is server side code.

What you can do, is use JavaScript and the DOM to add a new text field on your page. Or you could submit the page and have your server generate as many text fields as required.
 
reply
    Bookmark Topic Watch Topic
  • New Topic