• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

standard html form tag VS struts form tag??

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

Is it common to use standard html form tags (ie: <form .....> <input.....>) while using struts or people always use struts tags ( <s:form...)?
I asked this question because i m having hard time positioning elements that are generated from a Struts tag?

if people dont usually use html tags, how can i controll the positions of struts element such as using div tags...

Thanks>
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're probably having problems positioning elements because you're using the default theme, the "xhtml" theme. The "xhtml" theme emits table tags along with the input elements.

I'd say it's not that common to use standard HTML tags, because they don't display error messages or pre-populate form elements with action property values. There are several options for how to get more precise control: use the "css_xhtml" theme (or whatever it's called; I forget), use the "simple" theme and display error messages yourself, or modify/create your own theme.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic