I dont use the html:link tags.. But you're right it needs more thought..

mod_rewrite is an apache filter.. I have a few rules set up at the moment that do some of what you're saying..

You can map regular expression to urls and rewrite it..

so if a webapp have links thats look like

/app/action.do?foo=bar

the filter could then rewrite /app/action.do/foo/bar

But doing this with a filter seems less hassle than geeking around with apache rewrite rules.

I started googling around and found this.. I'm digging around the source to see what it does,, http://tuckey.org/urlrewrite/

Mark


On 28 Sep 2004, at 22:29, Chaikin, Yaakov Y. wrote:

Mark,

But it would be more than just having a filter. You would need to extend the
html:link functionality, for example. And whatever else there is in Struts
that generates links with parameters.


BTW, what do you mean when you say "get mod_rewrite"?

-----Original Message-----
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 28, 2004 4:10 PM
To: Struts Users Mailing List
Subject: Re: Google-friendly links using Struts

While its true that most search engines deal with this sort of thing, i
think its also still true that you get more pages indexed if you avoid
request parameters..

I was trying to get mod_rewrite playing ball the other day with some
success.

I'd try a filter (i'm going to when i get a chance..


/webapp/action.do/paramname/paramvalue

will be understood as

/webapp/action.do?parametername=paramvalue

I still need to get around to doing this but I'll post something more
practical when I've actually done something..

hopefully forwarding the adjusted url to the action servlet will work..

Give me an hour i'll get back to you if i have any joy..

Mark

On 28 Sep 2004, at 21:35, Don Brown wrote:

You could try passing parameters via the URL then using Struts'
wildcard action mapping to pull them out.  I use it to support a
ReST-style web service interface to my application.

Don


On Tue, 28 Sep 2004 12:31:14 -0700, Wendy Smoak <[EMAIL PROTECTED]> wrote:
From: "Chaikin, Yaakov Y." <[EMAIL PROTECTED]>
When designing a web application, as a lot of people know, it is no
longer
a
good idea to use (or let your framework use) a "?" to append
parameters to
the URL. The reason is that Google, being the dominating search
engine,
ignores everything past the "?", thus making the rest of the web site
un-indexed in most search engines (since google is used to run most
search
engines).

I just went to Google and ran several searches, all of which turned up
results containing question marks.


--
Wendy Smoak




--------------------------------------------------------------------- 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]


---------------------------------------------------------------------
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]


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



Reply via email to