Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
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
JSP - A mailing list about Java Server Pages specification and reference
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
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
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
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Tomcat XML example

Tomcat XML example

2003-07-20       - By Martin Gainty

 Back
Reply:     1     2     3     4     5  

Display Error Reported in bugzilla [21740]

Martin

-- -- Original Message -- --
From: "Christian FEARD" <cfeard@(protected)>
To: <JSP-INTEREST@(protected)>
Sent: Sunday, July 20, 2003 2:47 AM
Subject: Re: Tomcat XML example


> Martin,
>
> try putting ':jsp' after 'xmlns'
>
> christian
> __ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____
>
>
>
>
>
>
> Martin Gainty <mgainty@(protected)>
> Sent by: A mailing list about Java Server Pages specification and
> reference <JSP-INTEREST@(protected)>
> 20-07-03 00:24
> Please respond to A mailing list about Java Server Pages specification and
> reference
>
>
>         To:     JSP-INTEREST@(protected)
>         cc:
>         Subject:        Tomcat XML example
>
>
> <?xml version="1.0"?>
> <jsp:root xmlns="http://java.sun.com/JSP/Page"
>   version="1.2">
> <jsp:directive.page contentType="text/html"/>
> <jsp:directive.page import="java.util.Date Source code of java.util.Date, java.util.Locale Source code of java.util.Locale"/>
> <jsp:directive.page import="java.text.*"/>
>
> <jsp:declaration>
>   String getDateTimeStr(Locale l) {
>     DateFormat df =
> SimpleDateFormat.getDateTimeInstance(DateFormat.MEDIUM,
> DateFormat.MEDIUM, l);
>     return df.format(new Date());
>   }
> </jsp:declaration>
>
> <html>
> <head>
>   <title>Example JSP in XML format</title>
> </head>
>
> <body>
> This is the output of a simple JSP using XML format.
> <br />
>
> <div>Use a jsp:scriptlet to loop from 1 to 10: </div>
> <jsp:scriptlet>
> // Note we need to declare CDATA because we don't escape the less than
> symbol
> <![CDATA[
>   for (int i = 1; i<=10; i++) {
>     out.println(i);
>     if (i < 10) {
>       out.println(", ");
>     }
>   }
> ]]>
> </jsp:scriptlet>
>
> <!-- Because I omit br's end tag, declare it as CDATA -->
> <![CDATA[
>   <br><br>
> ]]>
>
> <div align="left">
>   <!-- If we don't use <span> or <jsp:text> or any other tag to enclose
> the
> label,
>        then the date/time string is printed BEFORE the label.  Is this a
> Tomcat 4.0.1 bug? -->
>   <div>
>     Use a jsp:expression to write the date and time in the browser's
> locale:
>   </div>
>   <jsp:expression>getDateTimeStr(request.getLocale())</jsp:expression>
> </div>
>
>
> <jsp:text>
>   <p>This sentence is enclosed in a jsp:text element.</p>
> </jsp:text>
>
> </body>
> </html>
> </jsp:root>
>
> produces this output:
> The XML page cannot be displayed
> Cannot view XML input using XSL style sheet. Please correct the error and
> then click the Refresh button, or try again later.
>
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
-- ---
>
> Reference to undeclared namespace prefix: 'jsp'. Line 3, Position 17
>
>   version="1.2">
>
> Advice?
>
> Martin
>
>
===========================================================================
> To unsubscribe: mailto listserv@(protected) with body: "signoff
JSP-INTEREST".
> For digest: mailto listserv@(protected) with body: "set JSP-INTEREST
DIGEST".
>
> Some relevant archives, FAQs and Forums on JSPs can be found at:
>
>  http://java.sun.com/products/jsp
>  http://archives.java.sun.com/jsp-interest.html
>  http://forums.java.sun.com
>  http://www.jspinsider.com
>

===========================================================================
To unsubscribe: mailto listserv@(protected) with body: "signoff JSP-INTEREST".
For digest: mailto listserv@(protected) with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com



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