Re: trim-directive-whitespaces and .tag files

2008-05-09 Thread Hassan Schroeder
On Fri, May 9, 2008 at 7:04 AM, Milanez, Marcus
[EMAIL PROTECTED] wrote:

 I'm successfully using trim-directive-whitespaces in my web.xml file,
 clearing unecessary white spaces from my pages. The only problem is that
 .tag files content is not affected by this directive.

What happened when you added this:

jsp-config
 jsp-property-group
   url-pattern*.tag/url-pattern
   trim-directive-whitespacestrue/trim-directive-whitespaces
 /jsp-property-group
   /jsp-config

Did it produce an error, or just no effect?

-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: trim-directive-whitespaces and .tag files

2008-05-09 Thread Hassan Schroeder
On Fri, May 9, 2008 at 7:21 AM, Milanez, Marcus
[EMAIL PROTECTED] wrote:

 No effect. I think that's because we never reference .tag files
 directly.

Probably -- it was worth a shot, I figured :-)

 Do you know how this directive work? Does it remove white spaces in
 every request (like a filter) or during compiling time?

No idea, but it you've got it working for JSP files, it should be pretty
easy to compare the compiled files in /work with and without it.

-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: trim-directive-whitespaces and .tag files

2008-05-09 Thread Hassan Schroeder
On Fri, May 9, 2008 at 7:28 AM, Milanez, Marcus
[EMAIL PROTECTED] wrote:

 I think it won't be possible to trim white spaces from .tag files uwing
 this directive then...

If minimizing white space is critical for you, you might try something
with the String taglib  -- maybe wrap a string:squeeze around the
whole tag body. Just a first-cup-of-coffee thought...  :-)

HTH,
-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: trim-directive-whitespaces and .tag files

2008-05-09 Thread Lucas Galfaso
Have you try converting your .tag files to .tagx files?

On Fri, May 9, 2008 at 11:45 AM, Milanez, Marcus
[EMAIL PROTECTED] wrote:

 OK Hassan, thanks a lot! If I could get this directive working with .tag
 files I would appreciate a lot more, but if I couldn't find a way, I'll
 try your suggestion!

 Just a final questions: should it be working or not? I mean, ths
 specification for trim-directive-whitespaces says that it could not work
 in these cases?

 Thanks a lot for your time!

 Marcus Milanez

 -Mensagem original-
 De: Hassan Schroeder [mailto:[EMAIL PROTECTED]
 Enviada em: sexta-feira, 9 de maio de 2008 11:38
 Para: Tomcat Users List
 Assunto: Re: trim-directive-whitespaces and .tag files

 On Fri, May 9, 2008 at 7:28 AM, Milanez, Marcus
 [EMAIL PROTECTED] wrote:

 I think it won't be possible to trim white spaces from .tag files
 uwing this directive then...

 If minimizing white space is critical for you, you might try something
 with the String taglib  -- maybe wrap a string:squeeze around the whole
 tag body. Just a first-cup-of-coffee thought...  :-)

 HTH,
 --
 Hassan Schroeder  [EMAIL PROTECTED]

 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
 e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: trim-directive-whitespaces and .tag files

2008-05-09 Thread Hassan Schroeder
On Fri, May 9, 2008 at 7:45 AM, Milanez, Marcus
[EMAIL PROTECTED] wrote:

 Just a final questions: should it be working or not? I mean, ths
 specification for trim-directive-whitespaces says that it could not work
 in these cases?

Actually, the 2.1 spec says:

As of JSP 2.1, it is possible to have extraneous whitespaces removed from
template text through element trim-directive-whitespaces of JSP Property Groups
(See Section JSP.3.3.8, Removing whitespaces from template text), or the page
and tag file directive attribute trimDirectiveWhitespaces (See Section
JSP.1.10.1,
The page Directive, Section JSP.8.5.1, The tag Directive).

So looks like a little more experimentation is in order  :-)

-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: trim-directive-whitespaces and .tag files

2008-05-09 Thread Hassan Schroeder
On Fri, May 9, 2008 at 9:55 AM, Milanez, Marcus
[EMAIL PROTECTED] wrote:

 I've reard about this issues, but our tests confirmed that all JSPs and
 scripts are working well. We've also downloaded a filter that does just
 the same, but we've experimented some javascript problems...

Not sure what issues you're referring to :-)

I was just highlighting this:

   tag file directive attribute trimDirectiveWhitespaces

:: meaning, you can put that in each tag file directly to achieve your
original goal.

-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: trim-directive-whitespaces and .tag files

2008-05-09 Thread Hassan Schroeder
On Fri, May 9, 2008 at 11:00 AM, Milanez, Marcus
[EMAIL PROTECTED] wrote:

 trimDirectiveWhitespaces directive simply doesn't work at all in Tomcat
 6.. I've posted this question here some months ago..

Uh, I just tried it on both a JSP file (page directive) and tag file using
the tag directive, and both worked fine.

Are you sure you're using a 2.5 deployment descriptor?

-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: trim-directive-whitespaces and .tag files

2008-05-09 Thread Hassan Schroeder
On Fri, May 9, 2008 at 11:42 AM, Milanez, Marcus
[EMAIL PROTECTED] wrote:

 Which is slightly different, but got the directive working... Thus, I
 believe this is the most appropriate web-app descriptor, right?

sounds like :-)  -- glad to hear it's working now!

-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]