the syntax which you are using, have you written a taglib, or are you using
jstl, coz these syntax are they in jsp ? I dont think so.

Regards,
Vikramjit Singh,
Systems Engineer,
GTL Ltd.
Ph. 7612929-1059


-----Original Message-----
From: Robert S. Sfeir [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 10:50 AM
To: [EMAIL PROTECTED]
Subject: JSP 1.2 and XML Syntax


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm trying to use proper XML syntax to build my JSP pages and am
following the specs form the Sun site.  I keep getting an error and am
not sure if it's due to the JBoss/Jetty implementation I'm using (JBoss
3.0.1 / Jetty 4.01) or if I'm doing something wrong which I can't figure
out.

The error I get is pretty lame and doesn't say much:

HTTP ERROR: 500 /index.jsp(42,-1) Use "<" for "<" in attribute values.

and the line it's croking on is: <a
href="<jsp:expression>response.encodeURL("logout-
action.do")</jsp:expression>">Logout</a>

The full scriptlet block looks like this:

<jsp:scriptlet>
        if(session.getAttribute("person") == null)
        {
</jsp:scriptlet>
        <a HREF="login.jsp">Login</a>
<jsp:scriptlet>
        }
        else
        {
</jsp:scriptlet>
        <a href="<jsp:expression>response.encodeURL("logout-
action.do")</jsp:expression>">Logout</a>
<jsp:scriptlet>
        }
</jsp:scriptlet>


what gives?

R
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)

iD8DBQE9SXTAK/1j/4sLi/ARAtl8AJ9xQw7RexMi3XdC2MvDEIrj2mH5sgCcCur1
rSWfUZ9q+v+5IGxe8Nb0cAE=
=e7Yl
-----END PGP SIGNATURE-----

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to