Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
xhtml problem

xhtml problem

2007-09-04       - By pablovb

 Back

I have the same problem as you had. I??d like to know if you had already
solved it and, if so, I??d be very pleased if you send me a complete .jspx
example. Thanks.



Ray Clough wrote:
>
> That is absolutely my point.  The jstl tags work seamlessly with the jsp
> el, and allow very elegant solutions to some of the required tag
> structural problems associated with using jsp-document format.  But the
> s2-tags don't play very smoothly in some situations, which makes them much
> less useful.  If the s2 tags integrated better with jsp-el and jstl, then
> the s2-tag library would be a much stronger player.  Of course, that is
> only for those of us (purists or nutbars or lunatics or something, I don't
> know the proper term) who prefer to do everything in jsp-document syntax.
>
> - rc
>
>
>> -- -- Original Message -- --
>> From: "Laurie Harper" <laurie@(protected)>
>> To: user@(protected)
>> Subject:  Re: xhtml problem
>> Date:  Fri, 01 Jun 2007 16:36:01 -0400
>>
>>
>> That's a quite different issue from DTD validation. Yes, when you
>> use XML-format JSP documents, they must be authored in well-formed
>> XML. This isn't a Struts tags issue; the same would be true for any
>> JSP custom action (tag) from any source.
>>
>> For the case you describe below I'd probably try a combination of
>> jsp:element and jsp:attribute, or just rely on JSTL, perhaps with a
>> c:set.
>>
>> L.
>>
>> Ray Clough wrote:
>> > That is exactly how I do it now, using the xhtml1-transitional dtd.
>> But when
>> > the container assembles the page, it is not valid xhtml, because of the
>> > nested s2-tag elements.  For example, the s2 documentation uses this
>> example
>> > to dynamically change the css class of a tr element:
>> > <tr class="<s:if test="#groupStatus.odd == true
>> > ">odd</s:if><s:else>even</s:else>">
>> > Aside from the nested double quotes, which would keep it from working
>> > anyway, the s2 tags inside the tr tag will not work with a 'jsp
>> document'
>> > (Sun's name for them), but will work for a 'jsp page'.  That leaves
>> anyone
>> > using jsp document format in a world of hurt.  The s2 tag guides are
>> full of
>> > jsp page examples, but not a single jsp-document example.  My bet is
>> that
>> > whoever initially architected the s2 tags never considered this
>> > use case. The only fall-back is to mix the s2 tags with jstl and
>> > jsp-el to achieve the
>> > desired effects, but this takes more lines of code than either s2 or
>> jstl
>> > alone, and of course the s2 tags work best with the s2 data stack.
>> >
>> > - rc
>> >
>> >
>> >
>> > Manos Batsis wrote:
>> >> Ray Clough wrote:
>> >>> The failure is in the deployed code.  The processor which produces
>> html
>> >>> from the jsp markup (in tomcat, in this case) will not allow the
>> nested
>> >>> elements.  It is treating everything as pure xml, and the dtd for
>> xhtml
>> >>> won't allow that type of markup.  I could live with it if it was only
>> the
>> >>> editor which was complaining.  I have been trying to use a blend of
>> jsp
>> >>> el with the s2 tags, but that has problems too.
>> >>
>> >> Use the jsp:output [1] element to declare the DTD you want the
>> >> response XHTML to use.
>> >>
>> >> [1]
>> http://java.sun.com/products/jsp/syntax/2.0/syntaxref2022.html#1004130
>> >>
>> >> hth,
>> >>
>> >> Manos
>> >>
>> >> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>> >> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> >> For additional commands, e-mail: user-help@(protected)
>> >>
>> >>
>> >>
>> >
>>
>>
>> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>
>>
>
>
>
> - Ray Clough
> ray@(protected)
>
>
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>

--
View this message in context: http://www.nabble.com/xhtml-problem-tf3848996
.html#a12481239
Sent from the Struts - User mailing list archive at Nabble.com.


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.