You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Clarke, Agnes" <Ag...@nl.compuware.com> on 2001/02/06 15:49:43 UTC

Struts and XHTML

Hi all,

I'm a newbie to STRUTS, so please forgive my ignorance!

1. Does STRUTS support XHTML? Struts tags seem to generate uppercase tag
names, which is invalid XHTML...

2. When STRUTS generates an <input> element, the unique identifier for the
field is placed in the name attribute (deprecated since HTML 4.0 or even
earlier) and not the id attribute.

3. Does STRUTS-generated HTML in general honor well-formed XML restrictions
(eg closing end tags, quoting attribute values, etc)?

Finally, where is the STRUTS FAQ page?

Regards,

Agnes Clarke

Re: Struts and XHTML

Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
"Clarke, Agnes" wrote:

> Hi all,
>
> I'm a newbie to STRUTS, so please forgive my ignorance!
>
> 1. Does STRUTS support XHTML? Struts tags seem to generate uppercase tag
> names, which is invalid XHTML...
>

XHTML is not supported directly, but the "html" tag library strives to render
code that is compatible with most XHTML requirements.

Which tags in particular are you finding generate upper case tag names?  There
were some tags in 0.5 that produced mixed case attributes, but AFAIK all the
tags rendered with current 1.0 code are pure lower case.

>
> 2. When STRUTS generates an <input> element, the unique identifier for the
> field is placed in the name attribute (deprecated since HTML 4.0 or even
> earlier) and not the id attribute.
>

I missed catching that one -- let me look into it further.

>
> 3. Does STRUTS-generated HTML in general honor well-formed XML restrictions
> (eg closing end tags, quoting attribute values, etc)?
>

Yes, to the maximum degree feasible.  It renders closing tags for all the
"open" tags that have nested content (like <form> and <html>), but does not
render XML-style no content tags (<br/>) with the trailing slash included.  All
attribute values are quoted.

Of course, Struts has no control over the non-Struts tags -- it is still up to
the page designer to create valid syntax of the entire page.

>
> Finally, where is the STRUTS FAQ page?
>

There is not really a FAQ page per se -- the best source of information is
searching the STRUTS-USER mailing list archives.

>
> Regards,
>
> Agnes Clarke

Craig



Re: Ted's FAQ "What Web sites are already Powered by Struts?"

Posted by Andrew Semprebon <se...@eqsystems.com>.
----- Original Message -----
From: "Mike Campbell" <ug...@unixgeek.com>
To: <st...@jakarta.apache.org>
Sent: Friday, February 09, 2001 2:02 PM
Subject: Re: Ted's FAQ "What Web sites are already Powered by Struts?"


> Not to start any sort of editor Jihad, but emacs does all the above
> mentioned stuff (plus tons more) and it's free.  (Works on NT, too.)
>

I've tried on three different occasions to learn emacs, but it works so
darned different from everything else on MS Windows that it just never
clicked.

I too prefer using a programmers editor more than an IDE. Lately, I've been
using jedit, which is slow, but has better java support than my former
editor and is Open Source. Anyway, I'd be interested in hearing other
people's suggestions as well.


Re: Ted's FAQ "What Web sites are already Powered by Struts?"

Posted by Mike Campbell <ug...@unixgeek.com>.
>>>>> "DW" == David Winterfeldt <dw...@yahoo.com> writes:

>> + What development tool should I use?

DW> I like UltraEdit if you're on Windows as a editor. It is pretty
DW> light, but it does syntax highlighting for java, jsp, html, perl,
DW> sql, c++, etc. Opens any file (binary, text, unix-dos-windows line
DW> returns and file types) and can open files through FTP. It has a
DW> column mode which makes it nice to comment out a number of rows.
DW> It's only $30 dollars. I used to use Visual Cafe a lot, but it's
DW> nice to be in something that doesn't grind away at the hard drive
DW> and take up so much memory.

Not to start any sort of editor Jihad, but emacs does all the above
mentioned stuff (plus tons more) and it's free.  (Works on NT, too.)


Re: Ted's FAQ "What Web sites are already Powered by Struts?"

Posted by David Winterfeldt <dw...@yahoo.com>.
> + What development tool should I use?
I like UltraEdit if you're on Windows as a editor.  It
is pretty light, but it does syntax highlighting for
java, jsp, html, perl, sql, c++, etc.  Opens any file
(binary, text, unix-dos-windows line returns and file
types) and can open files through FTP.  It has a
column mode which makes it nice to comment out a
number of rows.  It's only $30 dollars.  I used to use
Visual Cafe a lot, but it's nice to be in something
that doesn't grind away at the hard drive and take up
so much memory.

David

--- Ted Husted <ne...@husted.com> wrote:
> I believe I've added the Powered by Struts sites
> submitted to this
> thread so far. Thanks so much!
> 
> I've also fleshed out more of the "kickstart" FAQ at
> 
> 
> < http://husted.com/about/struts/kickstart.html >. 
> 
> There are still three questions on my list, in case
> anyone wants to
> jump in. 
> 
> + What development tool should I use?
> + How do I develop a Struts application?
> + How do I troubleshoot a problem with a Struts
> application?
> 
> I've some notes about these at the bottom of the
> page, again, in case
> anyone wants to jump in ;-).
> 
> When this is complete, I'll propose it for the
> documentation package. 
> 
> Of course, any comments or suggestions would be
> welcome!
> 
> 
> -- Ted Husted, Husted dot Com, Fairport NY USA.
> -- Custom Software ~ Technical Services.
> -- Tel 716 425-0252; Fax 716 223-2506.
> -- http://www.husted.com/about/struts/
> 


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

Re: Ted's FAQ "What Web sites are already Powered by Struts?"

Posted by Ted Husted <ne...@husted.com>.
I believe I've added the Powered by Struts sites submitted to this
thread so far. Thanks so much!

I've also fleshed out more of the "kickstart" FAQ at 

< http://husted.com/about/struts/kickstart.html >. 

There are still three questions on my list, in case anyone wants to
jump in. 

+ What development tool should I use?
+ How do I develop a Struts application?
+ How do I troubleshoot a problem with a Struts application?

I've some notes about these at the bottom of the page, again, in case
anyone wants to jump in ;-).

When this is complete, I'll propose it for the documentation package. 

Of course, any comments or suggestions would be welcome!


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/about/struts/



Re: Ted's FAQ "What Web sites are already Powered by Struts?"

Posted by David Winterfeldt <dw...@yahoo.com>.
The registration and logon section of this site use
struts.  It has just recently gone live.

http://www.clickstarttutoring.com

David

--- Dan Connelly <ds...@adelphia.net> wrote:
>   a.. Brewtrade - http://java-genius.com/ 
>   b.. TeaTimeJ -
> http://www.webappcabaret.com/teatimej/ 
> What!  Only two public sites powered by Struts? 
> And, java-genius.com always gives me a DNS error
> anyway.  So there's really only one site in this
> list that I would dare suggest to people who ask me
> about Struts in the real world.
> 
> There must be more public sites than this.   There's
> http://jakarta.apache.org/struts  at least (although
> it doesn't do anything showy).
> 
> Please help me explain to MVC-clueless colleagues
> and bosses why I am spending so much time getting
> into Jakarta Struts (as opposed to the superficially
> similar, released, commercial, freely downloadable
> JSP taglibs, like Allaire's JRun Tag Library or
> WDIG's TeaServlets).     Please post up some
> additions to Ted's list.
> 
> Also, how about adding more "Struts competitors" to
> my list of two?  (And, while you're at it, do the
> competitive analysis.)
> 
> Dan Connelly  (who is not Dan Connolly, W3C)
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/

Ted's FAQ "What Web sites are already Powered by Struts?"

Posted by Dan Connelly <ds...@adelphia.net>.
  a.. Brewtrade - http://java-genius.com/ 
  b.. TeaTimeJ - http://www.webappcabaret.com/teatimej/ 
What!  Only two public sites powered by Struts?  And, java-genius.com always gives me a DNS error anyway.  So there's really only one site in this list that I would dare suggest to people who ask me about Struts in the real world.

There must be more public sites than this.   There's http://jakarta.apache.org/struts  at least (although it doesn't do anything showy).

Please help me explain to MVC-clueless colleagues and bosses why I am spending so much time getting into Jakarta Struts (as opposed to the superficially similar, released, commercial, freely downloadable JSP taglibs, like Allaire's JRun Tag Library or WDIG's TeaServlets).     Please post up some additions to Ted's list.

Also, how about adding more "Struts competitors" to my list of two?  (And, while you're at it, do the competitive analysis.)

Dan Connelly  (who is not Dan Connolly, W3C)



Re: Struts and XHTML (and FAQ)

Posted by Ted Husted <ne...@husted.com>.
On 2/6/2001 at 3:49 PM Clarke, Agnes wrote:
>Finally, where is the STRUTS FAQ page?

I've started a draft of a "obligatory kickstart FAQ" at 

< http://www.husted.com/about/struts/kickstart.html >

and am taking notes for something more comprehensive. 

If I ever get enough of it done, we can propose it for the
documentation. 

If anyone wants to pickup on one of the listed questions, don't
hesitate!

Unfortunately, the interactive Jakarta FAQ-o-Matic is still out of
commission. I was able to have them open up a Struts category, but my
account doesn't have sufficient karma to add questions :-(



-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/about/struts/