Results 1 to 2 of 2
  1. #1
    miq.system is offline Member
    Join Date
    Nov 2009
    Posts
    4
    Rep Power
    0

    Question define list<myclass> in xhtml

    hi.
    i curious whit this problem :
    -when use html 4
    Java Code:
    <%
    	List<TableUser> entries = TableUser.getEntries();
    %>
    it work

    -when use xhtml
    Java Code:
    <jsp:scriptlet>
    	List<TableUser> entries = TableUser.getEntries();	
    </jsp:scriptlet>
    error cause <TableUser> recognized ad xml tag, need </TableUser>

    are xhtml does not support Templete? or use special char to define "<" ?

  2. #2
    miq.system is offline Member
    Join Date
    Nov 2009
    Posts
    4
    Rep Power
    0

    Talking solved

    found it
    Surround with <![CDATA[

    Java Code:
    	<jsp:scriptlet>
    	[B]<![CDATA[[/B]		
    	List<TableUser> t  = TableUser.getEntries(); 	    
    	[B]]]>[/B]
    	</jsp:scriptlet>

Similar Threads

  1. return myClass
    By aldo in forum New To Java
    Replies: 3
    Last Post: 12-21-2008, 06:22 PM
  2. Eclipse with xhtml and Facelets
    By thiagofmam in forum Eclipse
    Replies: 0
    Last Post: 12-03-2008, 02:42 AM
  3. diff between WML d XHTML
    By bakiya in forum Sun Java Wireless Toolkit
    Replies: 0
    Last Post: 11-02-2007, 11:26 AM
  4. Implements MyClass extends JFrame
    By coco in forum AWT / Swing
    Replies: 1
    Last Post: 08-06-2007, 03:43 AM
  5. XHTML Doclet 0.2
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 07-08-2007, 05:46 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •