Blake Binkley wrote:

> [snip]
> is there no setting in server.xml that we can set to have all anchors and
> form actions ending in .jsp rewritten?
>

No.  And it's not likely that you really want one, considering:

* The performance overhead - you would be requiring the server to post-process
  your output instead of just writing it.

* The fact that you cannot always recognize a hyperlink - it is clear what tags
  are hyperlinks in HTML, but what about other languages?

* The fact that hyperlinks might not actually exist in your page - for instance,

  you can dynamically build hyperlinks with Javascript at runtime, and post
  processing the output will not catch this.

What I suggest is using a custom tag library that deals with the common cases
for you.  For example, in the Struts Framework
<http://jakarta.apache.org/struts>, the <html:link> tag creates a hyperlink for
you (<a href="...">) and automatically calls the URL rewriting logic.


> Blake Binkley
>

Craig McClanahan



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

Reply via email to