Re: JSP 1.2 and XML Syntax

2002-08-02 Thread Alan Meyer

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

Looks to me like you're using double quotes incorrectly.  Try using
single quotes for the outer quotation.

   href='response.encodeURL("logout-
   action.do")'>Logout

--
Alan Meyer
AM Systems, Inc.
Randallstown, MD, USA
[EMAIL PROTECTED]

===
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



Re: JSP 1.2 and XML Syntax

2002-08-02 Thread Hans Bergsten

Robert S. Sfeir wrote:
>
> 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:  href="response.encodeURL("logout-
> action.do")">Logout
>
> The full scriptlet block looks like this:
>
> 
>if(session.getAttribute("person") == null)
>{
> 
>Login
> 
>}
>else
>{
> 
> action.do")">Logout
> 
>}
> 
>
>
> what gives?

The XML syntax is primarily intended for tools that generate or parse
JSP documents, because writing it by hand is messy. The reason is that
an XML document must be well-formed; no elements in attributes, all
start tags followed by end tags, nested correctly, etc. When you mix
HTML template data and XML JSP elements, it's not always obvious how
to apply the well-formedness rules. In your example, the main problem
is that you try to use an element () as the attribute
value of another (); it doesn't matter that one is HTML and one is
JSP. An additional complication is that you want to insert a dynamic
value between quotes, ending up with the start quote in one place and
the end quote in another. This also confuses the XML parser unless you
tell it explicitly that you know what you're doing.

To fix both these problems, you need to write the snippet like this:


response.encodeURL("logout-action.do")


The  element separates the HTML template text from the JSP
element, the CDATA sections takes care of the quote problem.

I strongly recommend that you stick to the classic syntax since the
XML syntax really just complicates life when you write the pages
manually.

Hans
--
Hans Bergsten   [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pageshttp://TheJSPBook.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



Re: JSP 1.2 and XML Syntax

2002-08-02 Thread Robert S. Sfeir

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Nope, try again.  Same error.  I know about quote nesting, and it's not
the problem.

R
On Friday, August 2, 2002, at 04:08 AM, Ritesh Gupta wrote:

> Hi,
>
> I think the Joel is right except that the sequence of inner and outer
> quotes should be the other way round. That is :
>
> 
>
> The inner quotes form the part of a method call and should be in double
> quotes.
>
> Hope that helps.
>
> Regards,
> Ritesh
>
>
> - Original Message -
> From: Joel Carklin <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, August 02, 2002 1:40 PM
> Subject: Re: JSP 1.2 and XML Syntax
>
>
> Hi,
>
> just a shot in the dark here, because I haven't used these particular
> tags, but it appears to me that you have double quotes nested within
> double quotes. Surely the compiler would read the first opening as a
> beginning quote and the second opening quote as the end?
>
> Ie  
> then text in the middle of nowhere:
>
> logout-action.do
>
> and then text in quotes again:
>
> ")"
>
> perhaps if you replace inner quotes with single qoutes it would work?
>
>  href="response.encodeURL('logout-action.do') sion>">
>
> hope that helps
> Joel
>
> =
> 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
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (Darwin)

iD8DBQE9Smb0K/1j/4sLi/ARAodAAJ9DlkTdQeB+HOcPbH7FAO7r6OfZMQCgsPCR
LOr/bvSCYkf8akCQ6OpFCtc=
=M0Kz
-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



Re: JSP 1.2 and XML Syntax

2002-08-02 Thread Robert S. Sfeir

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I am using the one from sun, the standard DTD that is on their site for
JSPXML.

This happens on Tomcat, Jetty and Orion.  I don't think this is
something I'm doing wrong.

I think the issue is that with JSPXML the HTML becomes XHTML, and there
seems to be an issue with having < and > inside the href in XHTML, but I
can't seem to find anything in XHTML that would tell me how to AT LEAST
espcape those characters properly

Gosh I would hate to drop this method of writing because the advantages
are tremendous!

R

On Friday, August 2, 2002, at 03:32 AM, GW wrote:

> Yes the syntax is called XML-JSP Syntax
> the file gets saved as jsp and the xml gets parsed presenting a normal
> jsp.
>
> Hi Robert
>
> One Question...
>
> Did you create your own DTD? or are you using one from sun
> 500 is internal and it doesn't look like there's anything wrong with the
> code.
>
>
>
>
>
> - Original Message -
> From: "Vikramjit Singh" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, August 02, 2002 5:58 AM
> Subject: Re: JSP 1.2 and XML Syntax
>
>
>> 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: > href="response.encodeURL("logout-
>> action.do")">Logout
>>
>> The full scriptlet block looks like this:
>>
>> 
>> if(session.getAttribute("person") == null)
>> {
>> 
>> Login
>> 
>> }
>> else
>> {
>> 
>> > action.do")">Logout
>> 
>> }
>> 
>>
>>
>> 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
>>
>>
>
> =
> ==
> 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
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (Darwin)

iD8DBQE9SmelK/1j/4sLi/ARAjwWAJ965CoInhWKHYVUKqBNZxf+UopvQgCdGwAB
MNVBTfHkOMCyDdL40356MpE=
=eRbi
-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



Re: JSP 1.2 and XML Syntax

2002-08-02 Thread Robert S. Sfeir

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

They're JSP, it's XML-JSP.  Look on Sun's site.

R
On Thursday, August 1, 2002, at 11:58 PM, Vikramjit Singh wrote:

> 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:  href="response.encodeURL("logout-
> action.do")">Logout
>
> The full scriptlet block looks like this:
>
> 
> if(session.getAttribute("person") == null)
> {
> 
> Login
> 
> }
> else
> {
> 
>  action.do")">Logout
> 
> }
> 
>
>
> 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
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (Darwin)

iD8DBQE9SmfVK/1j/4sLi/ARAi1JAJ9SHUf8v/+u/zIoJgwZqYKE+i6vpQCguRVw
SA+IqDzCe2IZlYBxmdWQjxY=
=7fl4
-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



Re: JSP 1.2 and XML Syntax

2002-08-02 Thread Robert S. Sfeir

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

No tried both of those.  Is this just completely esoteric or what?  I
spend a good 8 hours searching all over the web and Sun's site for this
info and nothing!

R
On Friday, August 2, 2002, at 04:10 AM, Joel Carklin wrote:

> Hi,
>
> just a shot in the dark here, because I haven't used these particular
> tags, but it appears to me that you have double quotes nested within
> double quotes. Surely the compiler would read the first opening as a
> beginning quote and the second opening quote as the end?
>
> Ie  
> then text in the middle of nowhere:
>
> logout-action.do
>
> and then text in quotes again:
>
> ")"
>
> perhaps if you replace inner quotes with single qoutes it would work?
>
>  href="response.encodeURL('logout-action.do') sion>">
>
> hope that helps
> Joel
>
> 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
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (Darwin)

iD8DBQE9SmbJK/1j/4sLi/ARAnUaAKC7i59iM76Hs65uX/16QtE20K1O8gCeKWyv
VpDdwVG9BqcqGY9NinSC8Fg=
=O6RJ
-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



Re: JSP 1.2 and XML Syntax

2002-08-02 Thread GW

http://java.sun.com/products/jsp/tags/12/syntaxref123.html
http://www.onjava.com/pub/a/onjava/2001/11/28/jsp_xml.html

- Original Message -
From: "Vikramjit Singh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 02, 2002 10:45 AM
Subject: Re: JSP 1.2 and XML Syntax


> >
> >
> > Yes the syntax is called XML-JSP Syntax
> > the file gets saved as jsp and the xml gets parsed presenting
> > a normal jsp.
>
> Can you tell where can find information about these tags. Any link or
> reference shall be useful.
>
> >
> > Hi Robert
> >
> > One Question...
> >
> > Did you create your own DTD? or are you using one from sun
> > 500 is internal and it doesn't look like there's anything
> > wrong with the
> > code.
> >
> >
> >
> >
> >
> > ----- Original Message -
> > From: "Vikramjit Singh" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, August 02, 2002 5:58 AM
> > Subject: Re: JSP 1.2 and XML Syntax
> >
> >
> > > 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:  > > href="response.encodeURL("logout-
> > > action.do")">Logout
> > >
> > > The full scriptlet block looks like this:
> > >
> > > 
> > > if(session.getAttribute("person") == null)
> > > {
> > > 
> > > Login
> > > 
> > > }
> > > else
> > > {
> > > 
> > >  > > action.do")">Logout
> > > 
> > > }
> > > 
> > >
> > >
> > > 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
> &

Re: JSP 1.2 and XML Syntax

2002-08-02 Thread Vikramjit Singh

>
>
> Yes the syntax is called XML-JSP Syntax
> the file gets saved as jsp and the xml gets parsed presenting
> a normal jsp.

Can you tell where can find information about these tags. Any link or
reference shall be useful.

>
> Hi Robert
>
> One Question...
>
> Did you create your own DTD? or are you using one from sun
> 500 is internal and it doesn't look like there's anything
> wrong with the
> code.
>
>
>
>
>
> - Original Message -
> From: "Vikramjit Singh" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, August 02, 2002 5:58 AM
> Subject: Re: JSP 1.2 and XML Syntax
>
>
> > 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:  > href="response.encodeURL("logout-
> > action.do")">Logout
> >
> > The full scriptlet block looks like this:
> >
> > 
> > if(session.getAttribute("person") == null)
> > {
> > 
> > Login
> > 
> > }
> > else
> > {
> > 
> >  > action.do")">Logout
> > 
> > }
> > 
> >
> >
> > 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
> >
> >
>
> ==
> =
> 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



Re: JSP 1.2 and XML Syntax

2002-08-02 Thread Ritesh Gupta

Hi,

I think the Joel is right except that the sequence of inner and outer
quotes should be the other way round. That is :



The inner quotes form the part of a method call and should be in double
quotes.

Hope that helps.

Regards,
Ritesh


- Original Message -
From: Joel Carklin <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 02, 2002 1:40 PM
Subject: Re: JSP 1.2 and XML Syntax


Hi,

just a shot in the dark here, because I haven't used these particular
tags, but it appears to me that you have double quotes nested within
double quotes. Surely the compiler would read the first opening as a
beginning quote and the second opening quote as the end?

Ie  "

perhaps if you replace inner quotes with single qoutes it would work?



hope that helps
Joel

=
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



Re: JSP 1.2 and XML Syntax

2002-08-02 Thread Joel Carklin

Hi,

just a shot in the dark here, because I haven't used these particular 
tags, but it appears to me that you have double quotes nested within 
double quotes. Surely the compiler would read the first opening as a 
beginning quote and the second opening quote as the end?

Ie  "

perhaps if you replace inner quotes with single qoutes it would work?



hope that helps
Joel

==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



Re: JSP 1.2 and XML Syntax

2002-08-02 Thread GW

Yes the syntax is called XML-JSP Syntax
the file gets saved as jsp and the xml gets parsed presenting a normal jsp.

Hi Robert

One Question...

Did you create your own DTD? or are you using one from sun
500 is internal and it doesn't look like there's anything wrong with the
code.





- Original Message -
From: "Vikramjit Singh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 02, 2002 5:58 AM
Subject: Re: JSP 1.2 and XML Syntax


> 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:  href="response.encodeURL("logout-
> action.do")">Logout
>
> The full scriptlet block looks like this:
>
> 
> if(session.getAttribute("person") == null)
> {
> 
> Login
> 
> }
> else
> {
> 
>  action.do")">Logout
> 
> }
> 
>
>
> 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
>
>

===
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



Re: JSP 1.2 and XML Syntax

2002-08-01 Thread Vikramjit Singh

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: ">Logout

The full scriptlet block looks like this:


if(session.getAttribute("person") == null)
{

Login

}
else
{

">Logout

}



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



JSP 1.2 and XML Syntax

2002-08-01 Thread Robert S. Sfeir

-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: ">Logout

The full scriptlet block looks like this:


if(session.getAttribute("person") == null)
{

Login

}
else
{

">Logout

}



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



Re: JSP 1.2 and XML-Syntax!

2002-01-13 Thread Philip M. Meier

Thanks Jayson, but unfortunaly backwards support is of great importance and
I've to use the workaround with CDATA sections...

Bye,

Philip

===
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



Re: JSP 1.2 and XML-Syntax!

2002-01-13 Thread Jayson Falkner

Hi Philip,

You don't have to use XHTML when authoring JSP in XML syntax. You can
still use regular HTML tags by putting them in CDATA sections.

Yes, if you are sending XHTML to a browser it will break should it not
support XHTML. Current versions of Internet Explorer, Mozilla, Netscape,
and Opera should be fine with XHTML. Old browsers with plain HTML
support will have a rough time supporting your pages.

I know personally if you use XHTML you will lose all support for early
netscape versions, 4.x and below, as well as have content that looks a
little funky on the early IE versions. But if backwards support isn't a
concern you'll be fine using just XHTML.

Jayson Falkner
[EMAIL PROTECTED]

Philip M. Meier wrote:

> Hello everybody,
>
>
>
> I'd like to write my next application in JSP 1.2 and I want to use the
> XML-Syntax of JSP 1.2, but I'm not sure, if every browser is able to
> understand it, because I will make use of XHTML-Tags in the JSP
> Document. Do you know, if only XHTML supporting browser will see my
> apllication in the correct way?
>
>
>
> Thanks in advance,
>
>
>
> Philip
>

===
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



JSP 1.2 and XML-Syntax!

2002-01-13 Thread Philip M. Meier



Hello everybody,
 
I'd like to write my next application in JSP 1.2 
and I want to use the XML-Syntax of JSP 1.2, but I'm not sure, if every browser 
is able to understand it, because I will make use of XHTML-Tags in the JSP 
Document. Do you know, if only XHTML supporting browser will see my 
apllication in the correct way?
 
Thanks in advance,
 
Philip