Re: Where is the guid lines for writing tags.

2004-01-26 Thread Antony Paul
I found it here.
http://jakarta.apache.org/taglibs/guidelines.html
I got the link from Tomcat bug database. If this link is not provided in any
of the taglibs site documentation please include it.

rgds
Antony Paul
- Original Message -
From: "Antony Paul" <[EMAIL PROTECTED]>
To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 27, 2004 11:17 AM
Subject: Where is the guid lines for writing tags.


> Hi all,
> A few weeks ago I read a document explaining guidelines on writing
> custom tags. I remember I found it on taglibs site but now I cannot find
it
> there. Also is there any FAQ section there ?
>
> rgds
> Antony Paul
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Where is the guid lines for writing tags.

2004-01-26 Thread Antony Paul
Hi all,
A few weeks ago I read a document explaining guidelines on writing
custom tags. I remember I found it on taglibs site but now I cannot find it
there. Also is there any FAQ section there ?

rgds
Antony Paul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



NullPointerException - newbie question

2004-01-26 Thread Lee Peik Feng
Hi,
I'm using tomcat 5.0.18 and jakarta-taglibs-standard-1.0.4 with J2SDK
1.4.2, WinXP

I encounter the following exception :

java.lang.NullPointerException
 at org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:153)

..

java.lang.NullPointerException
 at
org.apache.jasper.runtime.TagHandlerPool.release(TagHandlerPool.java:191)


I suspect it is something related to taglib because my JSP was running
fine with tomcat 4 (4.1.29)
Could someone give me some hint on : what is the cause of this prob? how
to resolve this problem?
Please let me know whether there is any other information that I need to
provide.

Hope that someone could help me. Thank you.

Regards,
Peik Feng




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Works: Struts + c:import w/ Tomcat 5.0.18!!!

2004-01-26 Thread Timo --Blazko-- Boewing
Hiho all,

Just for interest: with Tomcat 5.0.18 (prior: 5.0.16) it finally works:

Including a fragment using JSTL's c:import or jsp:include that is
invoked by a Struts Action! Prior, it failed, when the importing JSP was
also invoked by a Struts action; thus having two Struts' Action calls in
one physical request.

Now this finally works w/ the same JSTL 1.1 and Struts JARs! Thanks
Apache!

BTW.: or does someone know if this shall work even w/ prior versions? I
once found a bug report regarding that special problem; but culd not
remember if this was for Struts, JSTL or Tomcat.


-- 
greetings,   |  /"\ 
 |  \ /  ASCII-Ribbon-Campaign
Timo |   X Against HTML Mail
 |  / \ 
--
PUBLIC KEY:
52F3311A Timo Boewing  <[EMAIL PROTECTED]> 2003/10/30
Fingerprint = F743 E0AA A2F0 1B33 F6FA 417B 72BE 740D 52F3 311A


signature.asc
Description: This is a digitally signed message part


Re: QUESTION ABOUT XML

2004-01-26 Thread satish
Thanks, I will look at the examples .war files

- Original Message - 
From: "Chris Ward" <[EMAIL PROTECTED]>
To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
Sent: Monday, January 26, 2004 3:23 AM
Subject: RE: QUESTION ABOUT XML



Hi,

I know your question has been answered, but I'd
recommend you get the examples .war file for your
distribution of JSTL.

Here's the URL for JSTL 1.0

http://apache.ntcity.co.uk/jakarta/taglibs/standard-1.0/

It gives neat little examples of all the JSTL tags
and how to use them.

It may help going forward.

Best regards
Chris

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FMT question

2004-01-26 Thread Dima Gutzeit
Here is the summary of the behaviour on my side :

On the first page of the application everything works great. Problem starts
when I  to another JSP page in the application.

On this new page , the application totaly "forget" what locale has been set
nad takes the settings from web.xml

Both pages are in the same application , sharing the same session.

Anyone has ideas ?

- Original Message - 
From: "Kris Schneider" <[EMAIL PROTECTED]>
To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
Sent: Monday, January 26, 2004 7:16 PM
Subject: Re: FMT question


> It seems to work for me. Here's my setup:
>
> /WEB-INF/classes/Messages.properties (msg=root)
> /WEB-INF/classes/Messages_en_US.properties (msg=en_US)
> /WEB-INF/classes/Messages_fr.properties.properties (msg=fr)
>
> web.xml:
>
> 
>   javax.servlet.jsp.jstl.fmt.localizationContext
>   Messages
> 
>
> If my JSP just has this:
>
> msg: 
>
> It produces:
>
> msg: root
>
> If I change the JSP to:
>
> 
> msg: 
>
> It produces:
>
> msg: fr
>
> Quoting Dima Gutzeit <[EMAIL PROTECTED]>:
>
> > I have bundle_en_US as well as bundle_ru_RU. I can not "switch" the fmt
to
> > use another locale file during the runtime while changing it in web.xml
:
> >
> > 
> > 
> >  javax.servlet.jsp.jstl.fmt.locale
> > 
> > 
> > en_US
> > 
> >
> > and restarting the app works fine.
> >
> > - Original Message - 
> > From: "Kris Schneider" <[EMAIL PROTECTED]>
> > To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
> > Sent: Monday, January 26, 2004 6:27 PM
> > Subject: Re: FMT question
> >
> >
> > > What property files (resource bundles) are available in your app? Do
you
> > have
> > > either a bundle_en.properties or a bundle_en_US.properties file?
> > >
> > > Quoting Dima Gutzeit <[EMAIL PROTECTED]>:
> > >
> > > > Dear list members ,
> > > >
> > > > I am using to FMT taglibrary for localization of my webapp.
> > > > Whe defining the locale in the web.xml file everything works just
fine
> > but I
> > > > can not change the locale of default bundle on the fly.
> > > >
> > > > Doing this :
> > > >
> > > > 
> > > >
> > > > does not help. Can anyone point me in the right direction ?
> > > >
> > > >
> > > > Regards ,
> > > > Dima Gutzeit.
> > > > -
> > > > MailVision LTD.
> > > > R&D Team.
> > > > Phone: 972-4-8500505 ext. 14
> > > > Fax: 972 - 4 - 8508000
> > > > http://www.mailvision.com
> > >
> > > -- 
> > > Kris Schneider 
> > > D.O.Tech   
>
> -- 
> Kris Schneider 
> D.O.Tech   
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tag to Unescape an HTML String?

2004-01-26 Thread Daniel Lipofsky
I didn't try it myself, but the docs say that 
encodes using URLEncoder.encode() - so there should
not be any "&" style encoding and URLDecoder.decode
should work fine.  But I don't speak from experience.
- Dan

> -Original Message-
> From: Martin van Dijken [mailto:[EMAIL PROTECTED]
> Sent: Sunday, January 25, 2004 11:31 PM
> To: 'Tag Libraries Users List'
> Subject: RE: Tag to Unescape an HTML String?
> 
> 
> Hey Jim and Dan,
> 
> The URLDecoder.decode method decodes a URLEncoding. This is 
> the encoding
> browsers do when you type for instance a spacechar in the 
> location bar,
> the browser replaces it with %20. This is definitely not the 
> same thing
> as HTML encoding in which you would replace the char & by &.
> URLDecoding is definitely not a solution for your current issue. I've
> never found a generic solution, but that is not to say there 
> isn't one.
> 
> Concerning your page layout issues, I'd definitely advise you 
> to take a
> look at Tiles. It works very well with struts as a plugin, but as I
> understand it can function standalone as well. 
> 
> http://jakarta.apache.org/struts/userGuide/dev_tiles.html
> 
> Good luck!
> 
> Martin van Dijken
> 
> > -Original Message-
> > From: James Watkin [mailto:[EMAIL PROTECTED] 
> > Sent: zaterdag 24 januari 2004 2:01
> > To: Tag Libraries Users List
> > Subject: RE: Tag to Unescape an HTML String?
> > 
> > 
> > A little while ago I tried the Apache Jakarta String TagLib 
> > . It gave me the following error: URLDecoder: 
> > Illegal hex 
> > characters in escape (%) pattern - For input string: "&a". As 
> > you suggest, 
> > maybe the length of my body HTML String was too long to be 
> > passed as a param.
> > 
> > - Jim
> > 
> > At 04:45 PM 1/23/2004 -0800, you wrote:
> > >java.net.URLDecoder.decode() will decode such a string.
> > >You could create a simple tag that called the method
> > >if you want.  Be aware that some servers are unhappy with 
> really big 
> > >URLs.
> > >- Dan
> > >
> > > > -Original Message-
> > > > From: James Watkin [mailto:[EMAIL PROTECTED]
> > > > Sent: Friday, January 23, 2004 2:47 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Tag to Unescape an HTML String?
> > > >
> > > >
> > > > I have a question regarding the following problem and proposed 
> > > > solution: Within a JSP, what would be the most efficient way to
> > > > unescape an HTML
> > > > string? The Regexp tag library? I've managed to avoid 
> > writing regular
> > > > expressions for a long time.
> > > >
> > > > Problem:
> > > > I'm creating some reusable JSP templates that are chained 
> > together 
> > > > with . I'm trying to solve the well known problem of
> > > > having to create
> > > > two new JSPs for every new page -- one for the new page body,
> > > > the other to
> > > > import the master page layout and pass the URL of the new
> > > > page body JSP.
> > > >
> > > > Proposed Solution:
> > > > Rather than pass the master page layout a URL for the 
> body JSP, I 
> > > > can eliminate the body JSP by passing in the body as a 
> > String. If my 
> > > > master page layout is within the same container, then I can use
> > > >  and not
> > > > have to worry about unescaping the body String. However, I'd
> > > > prefer (I
> > > > think) to have the master page layout live outside the 
> container,
> > > > especially since the JSTL spec notes that foreign context
> > > > access within the
> > > > same container might not be supported by all containers. If
> > > > the master page
> > > > layout JSP is outside the container of the importing JSP,
> > > > then the body
> > > > HTML String has to be passed with , which escapes
> > > > the string. So
> > > > I'll need to unescape it be I can use it.
> > > >
> > > > - Jim

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: QUESTION ABOUT XML

2004-01-26 Thread satish
Thanks Siddharth

This example works , where as in my case I am reading xml string session
scope , pasring the string
and trying to set a variable which can be used as url parameter .

This is what my code looks like..

  











Then , I want to retrieve the request parameter in personview.jsp and
continue further.

Please let me know If I have the right approach.

Thanks
satish


- Original Message -
From: "Siddharth" <[EMAIL PROTECTED]>
To: "'Tag Libraries Users List'" <[EMAIL PROTECTED]>
Sent: Sunday, January 25, 2004 6:11 AM
Subject: RE: QUESTION ABOUT XML


> Hi sathish,
>
> It would be
>
> 
> 
>   test
>   123 main st
> 
> 
> 
> 
>
>
> Check it out...
>
> Regards,
> Siddharth.
>
> -Original Message-
> From: satish [mailto:[EMAIL PROTECTED]
> Sent: 24 January 2004 02:36
> To: [EMAIL PROTECTED]
> Subject: QUESTION ABOUT XML
>
> All,
>
> I need some help with XML parsing and retrieving values.
>
> My XML element is as follows
>
> 
>   test
>   123 main st
> 
>
> How do I x:out the value of eid , For example 5769562 in this case.
>
> Please help me out.
>
> Thanks
> satish
>
> 
> This email has been scanned for all viruses by the MessageLabs Email
> Security System. For more information on a proactive email security
> service working around the clock, around the globe, visit
> http://www.messagelabs.com
> 
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FMT question

2004-01-26 Thread Kris Schneider
It seems to work for me. Here's my setup:

/WEB-INF/classes/Messages.properties (msg=root)
/WEB-INF/classes/Messages_en_US.properties (msg=en_US)
/WEB-INF/classes/Messages_fr.properties.properties (msg=fr)

web.xml:


  javax.servlet.jsp.jstl.fmt.localizationContext
  Messages


If my JSP just has this:

msg: 

It produces:

msg: root

If I change the JSP to:


msg: 

It produces:

msg: fr

Quoting Dima Gutzeit <[EMAIL PROTECTED]>:

> I have bundle_en_US as well as bundle_ru_RU. I can not "switch" the fmt to
> use another locale file during the runtime while changing it in web.xml  :
> 
> 
> 
>  javax.servlet.jsp.jstl.fmt.locale
> 
> 
> en_US
> 
> 
> and restarting the app works fine.
> 
> - Original Message - 
> From: "Kris Schneider" <[EMAIL PROTECTED]>
> To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
> Sent: Monday, January 26, 2004 6:27 PM
> Subject: Re: FMT question
> 
> 
> > What property files (resource bundles) are available in your app? Do you
> have
> > either a bundle_en.properties or a bundle_en_US.properties file?
> >
> > Quoting Dima Gutzeit <[EMAIL PROTECTED]>:
> >
> > > Dear list members ,
> > >
> > > I am using to FMT taglibrary for localization of my webapp.
> > > Whe defining the locale in the web.xml file everything works just fine
> but I
> > > can not change the locale of default bundle on the fly.
> > >
> > > Doing this :
> > >
> > > 
> > >
> > > does not help. Can anyone point me in the right direction ?
> > >
> > >
> > > Regards ,
> > > Dima Gutzeit.
> > > -
> > > MailVision LTD.
> > > R&D Team.
> > > Phone: 972-4-8500505 ext. 14
> > > Fax: 972 - 4 - 8508000
> > > http://www.mailvision.com
> >
> > -- 
> > Kris Schneider 
> > D.O.Tech   

-- 
Kris Schneider 
D.O.Tech   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FMT question

2004-01-26 Thread Dima Gutzeit
I have bundle_en_US as well as bundle_ru_RU. I can not "switch" the fmt to
use another locale file during the runtime while changing it in web.xml  :



 javax.servlet.jsp.jstl.fmt.locale


en_US


and restarting the app works fine.

- Original Message - 
From: "Kris Schneider" <[EMAIL PROTECTED]>
To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
Sent: Monday, January 26, 2004 6:27 PM
Subject: Re: FMT question


> What property files (resource bundles) are available in your app? Do you
have
> either a bundle_en.properties or a bundle_en_US.properties file?
>
> Quoting Dima Gutzeit <[EMAIL PROTECTED]>:
>
> > Dear list members ,
> >
> > I am using to FMT taglibrary for localization of my webapp.
> > Whe defining the locale in the web.xml file everything works just fine
but I
> > can not change the locale of default bundle on the fly.
> >
> > Doing this :
> >
> > 
> >
> > does not help. Can anyone point me in the right direction ?
> >
> >
> > Regards ,
> > Dima Gutzeit.
> > -
> > MailVision LTD.
> > R&D Team.
> > Phone: 972-4-8500505 ext. 14
> > Fax: 972 - 4 - 8508000
> > http://www.mailvision.com
>
> -- 
> Kris Schneider 
> D.O.Tech   
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FMT question

2004-01-26 Thread Kris Schneider
What property files (resource bundles) are available in your app? Do you have
either a bundle_en.properties or a bundle_en_US.properties file?

Quoting Dima Gutzeit <[EMAIL PROTECTED]>:

> Dear list members ,
> 
> I am using to FMT taglibrary for localization of my webapp.
> Whe defining the locale in the web.xml file everything works just fine but I
> can not change the locale of default bundle on the fly.
> 
> Doing this :
> 
> 
> 
> does not help. Can anyone point me in the right direction ?
> 
> 
> Regards , 
> Dima Gutzeit.
> -
> MailVision LTD. 
> R&D Team. 
> Phone: 972-4-8500505 ext. 14 
> Fax: 972 - 4 - 8508000 
> http://www.mailvision.com 

-- 
Kris Schneider 
D.O.Tech   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



FMT question

2004-01-26 Thread Dima Gutzeit
Dear list members ,

I am using to FMT taglibrary for localization of my webapp.
Whe defining the locale in the web.xml file everything works just fine but I can not 
change the locale of default bundle on the fly.

Doing this :



does not help. Can anyone point me in the right direction ?


Regards , 
Dima Gutzeit.
-
MailVision LTD. 
R&D Team. 
Phone: 972-4-8500505 ext. 14 
Fax: 972 - 4 - 8508000 
http://www.mailvision.com 




RE: QUESTION ABOUT XML

2004-01-26 Thread Chris Ward

Hi,

I know your question has been answered, but I'd
recommend you get the examples .war file for your
distribution of JSTL.

Here's the URL for JSTL 1.0

http://apache.ntcity.co.uk/jakarta/taglibs/standard-1.0/

It gives neat little examples of all the JSTL tags
and how to use them.

It may help going forward.

Best regards
Chris

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tag to Unescape an HTML String?

2004-01-26 Thread Henri Yandell

Commons Lang 2.0+ contains a StringEscapeUtils which has an escapeHtml and
unescapeHtml that handle the &'s etc. I can look to adding these to the
String Taglib as it depends on Lang anyway, is easy to code and is in need
of an update to fit Lang 2.0.

Still waiting for JSP 2.0 to be a bit more out there before trying to
decide what future String Taglib really has for me.

Hen

On Mon, 26 Jan 2004, Martin van Dijken wrote:

> Hey Jim and Dan,
>
> The URLDecoder.decode method decodes a URLEncoding. This is the encoding
> browsers do when you type for instance a spacechar in the location bar,
> the browser replaces it with %20. This is definitely not the same thing
> as HTML encoding in which you would replace the char & by &.
> URLDecoding is definitely not a solution for your current issue. I've
> never found a generic solution, but that is not to say there isn't one.
>
> Concerning your page layout issues, I'd definitely advise you to take a
> look at Tiles. It works very well with struts as a plugin, but as I
> understand it can function standalone as well.
>
> http://jakarta.apache.org/struts/userGuide/dev_tiles.html
>
> Good luck!
>
> Martin van Dijken
>
> > -Original Message-
> > From: James Watkin [mailto:[EMAIL PROTECTED]
> > Sent: zaterdag 24 januari 2004 2:01
> > To: Tag Libraries Users List
> > Subject: RE: Tag to Unescape an HTML String?
> >
> >
> > A little while ago I tried the Apache Jakarta String TagLib
> > . It gave me the following error: URLDecoder:
> > Illegal hex
> > characters in escape (%) pattern - For input string: "&a". As
> > you suggest,
> > maybe the length of my body HTML String was too long to be
> > passed as a param.
> >
> > - Jim
> >
> > At 04:45 PM 1/23/2004 -0800, you wrote:
> > >java.net.URLDecoder.decode() will decode such a string.
> > >You could create a simple tag that called the method
> > >if you want.  Be aware that some servers are unhappy with really big
> > >URLs.
> > >- Dan
> > >
> > > > -Original Message-
> > > > From: James Watkin [mailto:[EMAIL PROTECTED]
> > > > Sent: Friday, January 23, 2004 2:47 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Tag to Unescape an HTML String?
> > > >
> > > >
> > > > I have a question regarding the following problem and proposed
> > > > solution: Within a JSP, what would be the most efficient way to
> > > > unescape an HTML
> > > > string? The Regexp tag library? I've managed to avoid
> > writing regular
> > > > expressions for a long time.
> > > >
> > > > Problem:
> > > > I'm creating some reusable JSP templates that are chained
> > together
> > > > with . I'm trying to solve the well known problem of
> > > > having to create
> > > > two new JSPs for every new page -- one for the new page body,
> > > > the other to
> > > > import the master page layout and pass the URL of the new
> > > > page body JSP.
> > > >
> > > > Proposed Solution:
> > > > Rather than pass the master page layout a URL for the body JSP, I
> > > > can eliminate the body JSP by passing in the body as a
> > String. If my
> > > > master page layout is within the same container, then I can use
> > > >  and not
> > > > have to worry about unescaping the body String. However, I'd
> > > > prefer (I
> > > > think) to have the master page layout live outside the container,
> > > > especially since the JSTL spec notes that foreign context
> > > > access within the
> > > > same container might not be supported by all containers. If
> > > > the master page
> > > > layout JSP is outside the container of the importing JSP,
> > > > then the body
> > > > HTML String has to be passed with , which escapes
> > > > the string. So
> > > > I'll need to unescape it be I can use it.
> > > >
> > > > - Jim
> > > >
> > > > __
> > > > James Watkin
> > > > ACIS Software Development
> > > > The Anderson School at UCLA
> > > > [EMAIL PROTECTED]
> > > > Voice: 1-310-825-5030
> > > >Fax: 1-310-825-4835
> > > > __
> > > >
> > > >
> > > >
> > 
> > > > -
> > > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > __
> > James Watkin
> > ACIS Software Development
> > The Anderson School at UCLA
> > [EMAIL PROTECTED]
> > Voice: 1-310-825-5030
> >Fax: 1-310-825-4835
> > __
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTE

RE: Tag to Unescape an HTML String?

2004-01-26 Thread Martin van Dijken
Hey Jim and Dan,

The URLDecoder.decode method decodes a URLEncoding. This is the encoding
browsers do when you type for instance a spacechar in the location bar,
the browser replaces it with %20. This is definitely not the same thing
as HTML encoding in which you would replace the char & by &.
URLDecoding is definitely not a solution for your current issue. I've
never found a generic solution, but that is not to say there isn't one.

Concerning your page layout issues, I'd definitely advise you to take a
look at Tiles. It works very well with struts as a plugin, but as I
understand it can function standalone as well. 

http://jakarta.apache.org/struts/userGuide/dev_tiles.html

Good luck!

Martin van Dijken

> -Original Message-
> From: James Watkin [mailto:[EMAIL PROTECTED] 
> Sent: zaterdag 24 januari 2004 2:01
> To: Tag Libraries Users List
> Subject: RE: Tag to Unescape an HTML String?
> 
> 
> A little while ago I tried the Apache Jakarta String TagLib 
> . It gave me the following error: URLDecoder: 
> Illegal hex 
> characters in escape (%) pattern - For input string: "&a". As 
> you suggest, 
> maybe the length of my body HTML String was too long to be 
> passed as a param.
> 
> - Jim
> 
> At 04:45 PM 1/23/2004 -0800, you wrote:
> >java.net.URLDecoder.decode() will decode such a string.
> >You could create a simple tag that called the method
> >if you want.  Be aware that some servers are unhappy with really big 
> >URLs.
> >- Dan
> >
> > > -Original Message-
> > > From: James Watkin [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, January 23, 2004 2:47 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Tag to Unescape an HTML String?
> > >
> > >
> > > I have a question regarding the following problem and proposed 
> > > solution: Within a JSP, what would be the most efficient way to
> > > unescape an HTML
> > > string? The Regexp tag library? I've managed to avoid 
> writing regular
> > > expressions for a long time.
> > >
> > > Problem:
> > > I'm creating some reusable JSP templates that are chained 
> together 
> > > with . I'm trying to solve the well known problem of
> > > having to create
> > > two new JSPs for every new page -- one for the new page body,
> > > the other to
> > > import the master page layout and pass the URL of the new
> > > page body JSP.
> > >
> > > Proposed Solution:
> > > Rather than pass the master page layout a URL for the body JSP, I 
> > > can eliminate the body JSP by passing in the body as a 
> String. If my 
> > > master page layout is within the same container, then I can use
> > >  and not
> > > have to worry about unescaping the body String. However, I'd
> > > prefer (I
> > > think) to have the master page layout live outside the container,
> > > especially since the JSTL spec notes that foreign context
> > > access within the
> > > same container might not be supported by all containers. If
> > > the master page
> > > layout JSP is outside the container of the importing JSP,
> > > then the body
> > > HTML String has to be passed with , which escapes
> > > the string. So
> > > I'll need to unescape it be I can use it.
> > >
> > > - Jim
> > >
> > > __
> > > James Watkin
> > > ACIS Software Development
> > > The Anderson School at UCLA
> > > [EMAIL PROTECTED]
> > > Voice: 1-310-825-5030
> > >Fax: 1-310-825-4835
> > > __
> > >
> > >
> > > 
> 
> > > -
> > > To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > >
> > >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> __
> James Watkin
> ACIS Software Development
> The Anderson School at UCLA
> [EMAIL PROTECTED]
> Voice: 1-310-825-5030
>Fax: 1-310-825-4835
> __ 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]