Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Quoting rules

0 views
Skip to first unread message

Colin Walls

unread,
Dec 9, 2001, 10:05:05 AM12/9/01
to
I am using the Sun Forte for Java IDE. I have built a tag library that does
some formatting of data that it takes from the IDE IE tag library. For the
life of me I can't work out how to supply the data from the iterator to my
tag library.

As an example I have something like:

<dt><strong>
<fm:clubname clubname=<pr:field name="clubName" />
url=<pr:field name="url" /> />
</strong></dt>

Where the iterator returns the clubName and url strings. All I can get are
either compiler failures, or formatted text containing the unexpanded
iterator, e.g. <pr:field name="clubName" />. I have tried single quotes,
double sets of quotes in a variety of manners with no joy. Any help
appreciated.

--
Colin Walls
Email: Colin...@murorum.demon.co.uk
Web: http://www.murorum.demon.co.uk
Phone: 01625 535123
Mobile: 07765 175829

Navid Azimi

unread,
Dec 10, 2001, 6:17:10 AM12/10/01
to
I think you need an escape character for "s and 's. I believe the escape
character is / ....

So, if you have a String = "Why Spelling is /"Dificult/""; ... which allows
you to place "s in a middle of a string.

-- Navid Azimi

"Colin Walls" <co...@morurom.demon.co.uk> wrote in message
news:1007910309.24214....@news.demon.co.uk...

Patricia Shanahan

unread,
Dec 10, 2001, 8:31:54 AM12/10/01
to
I believe the escape character is "\".

Patricia

Colin Walls

unread,
Dec 10, 2001, 1:57:49 PM12/10/01
to
Patricia Shanahan wrote:

> I believe the escape character is "\".

Yep, tried that one too.

<% String clubname = "<pr:field name=\"clubName\"/>" ; %>

All that happens is that the string gets set to
<pr:field name="clubname"/>, it doesn't get expanded.

Infuriatingly in a straight HTML statement

<input type=submit name=operation
value="<pr:field name="regionName"/>">

you don't need any escapes, and it does get expanded. The only thing I can
think is that there is a bug in the jsp servlet compiler.

David Bolton

unread,
Dec 10, 2001, 6:02:19 PM12/10/01
to
I haven't worked with servlets, but sometimes in parsing html when I escape
a character the '\' gets stripped too soon and I need to double escape the
character. Why don't you give the following a try:

<% String clubname = "<pr:field name=\\"clubName\\"/>" ; %>

Worth a shot....

Navid Azimi

unread,
Dec 11, 2001, 7:09:37 AM12/11/01
to
I thought it was obvious that I have no conception of / and \ I lost an
entire lunch over it!

-- Navid Azimi

"Patricia Shanahan" <pa...@acm.org> wrote in message
news:3C14B9F4...@acm.org...

0 new messages