• 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

Xhtml tag

 
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi. I'm new in Struts. I'm trying to include some html tags inside jsp which use struts libraries tags. I wanted some <s:textfield>-s to be displayed as unordered list.
I try something like this:


I've also try to arrange it in a table cells, using ><table><tr><td> tags, but it want to be rendered. Can I do this or not, and what is an alternative if these tags do not work e anyway??
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What happened when you tried it?
 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Absolutely nothing?! Haven't sense....
 
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
The default theme renders form tags inside tables: look at the generated HTML to see what I mean. Always look at the HTML emitted by custom tags first--it can often save you a lot of time.

If you don't want to use the standard theme ("xhtml") you can either use the "simple" theme (which has some drawbacks, like not showing validation messages, etc.), modify an existing theme, or create a new theme.
 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Aha, yes, I forgot it. But how can I now perform some appearance settings about, just as I said -if I want to make some listing of mentioned tags? As I understood I need to modify template themes for any custom appearance I would like perform?If it is, its much more complex task...
 
David Newton
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 can use the "simple" theme and add code for validation error messages if you need to, or modify/extend an existing theme.

You can also create standard JSP 2.0 JSP-based custom tags and wrap up some of the validation message functionality if the other options are too limited or too daunting. It's like this for any custom-tag-based system; you'll always have to do *something* to get functionality that isn't exactly what you want.
 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You have right, I've already do some JSP custom tags, to perform some messaging preview, but I'm trying to apply maximum "struts" without explicit JSP-s blending.
 
reply
    Bookmark Topic Watch Topic
  • New Topic