T
Todd Prickett
Hi,
I'm a newbie with two questions, one conceptual and one technical,
about building a menubar for a struts/taglib/tiles based website.
The conceptual question is... I want to include a menubar in each of
my pages. To me, this seems like it should be a tile. However,
beyond that, I'm not sure what the best way to do this would be. My
initial thought was to create a class that reads an XML config file,
then build the HTML in my class. That HTML would then be rendered in
the resultant JSP. How would you experts handle this? I realize
there is a scripting component to taglibs, but don't think that adding
pages of taglib scripts to my JSP is the answer (is it?).
The technical question is... I stumbled across the HTML specific XML
libraries (i.e. org.w3c.dom.html). Is this a favored way of
constructing HTML within code or is there a better way? A
google/google-groups search returns VERY few results for classes
within that lib, which makes me suspect its not in vogue to use it.
If it is in vogue, can anyone provide a link to how to use them?
Javadocs on Sun's site show their syntax, but not really how to use
them.
Thanks, I look forward to hearing your opinions!
I'm a newbie with two questions, one conceptual and one technical,
about building a menubar for a struts/taglib/tiles based website.
The conceptual question is... I want to include a menubar in each of
my pages. To me, this seems like it should be a tile. However,
beyond that, I'm not sure what the best way to do this would be. My
initial thought was to create a class that reads an XML config file,
then build the HTML in my class. That HTML would then be rendered in
the resultant JSP. How would you experts handle this? I realize
there is a scripting component to taglibs, but don't think that adding
pages of taglib scripts to my JSP is the answer (is it?).
The technical question is... I stumbled across the HTML specific XML
libraries (i.e. org.w3c.dom.html). Is this a favored way of
constructing HTML within code or is there a better way? A
google/google-groups search returns VERY few results for classes
within that lib, which makes me suspect its not in vogue to use it.
If it is in vogue, can anyone provide a link to how to use them?
Javadocs on Sun's site show their syntax, but not really how to use
them.
Thanks, I look forward to hearing your opinions!