« Return to Thread: I dont want my users to see tomcat console. Any advice?

RES: trim-directive-whitespaces and .tag files

by Milanez, Marcus :: Rate this Message:

Reply to Author | View in Thread

Hi Hassan,

No effect. I think that's because we never reference .tag files
directly. My guess is that when tomcat engine compiles .tag files into
.java files, it ignores my trim-directive.

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

Thank you!

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

On Fri, May 9, 2008 at 7:04 AM, Milanez, Marcus
<Marcus.Milanez@...> 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-whitespaces>true</trim-directive-whitespaces>
     </jsp-property-group>
   </jsp-config>

Did it produce an error, or just no effect?

--
Hassan Schroeder ------------------------ hassan.schroeder@...

---------------------------------------------------------------------
To start a new topic, e-mail: users@... To unsubscribe,
e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


---------------------------------------------------------------------
To start a new topic, e-mail: users@...
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

 « Return to Thread: I dont want my users to see tomcat console. Any advice?

LightInTheBox - Buy quality products at wholesale price