It's not that Appfuse prevents the implementation, it's that Appfuse pre-dates 
the Convention plugin and its implementation patterns established a while ago.  
There is no reason why Appfuse couldn't do what you want it to, but there would 
be a number of changes that would have to happen to the existing web interface 
pieces that come with the Appfuse Struts2 package.  I think its enough work 
that no one has had the time or will to do it all and submit it to Appfuse.  

Volunteers?  I have threatened to do that for like 2 years.  Actually doing is 
a different beast.  ;-)

-D


On Mar 24, 2010, at 6:28 AM, taltu wrote:

> 
> Thx. 
> 
> Yesterday i tried with this alternativ 
> 
> http://raibledesigns.com/rd/entry/extensionless_urls_in_java_web
> 
> and only use this rule (the other rules didn't make sense and I commented
> out)
> 
> <rule>
>    <from>^([^?]*)/([^?/\.]+)(\?.*)?$</from>
>    <to last="true">$1/$2.html$3</to>
> </rule>
> 
> It seems to work!, nice :) except when the extension-less URL is called and
> forwareded to an url with extension (proteced in security.html) the
> extension-less url just bypass the security.
> 
> Example: I call "localhost:8080/helloworld" which is forwarded to
> "localhost:8080/helloworld.html". If I call the url with extension directly
> than the resource is protected thus no access, but if I call the extension
> less url the security is bypassed, that's not good. I tried to change the
> type to "redirect" but this time
> the url with extension is shown in the adressefield, better if the
> adressfield was showing the extensionless url. I hope you understand :)
> 
> Redirect version:
> <rule>
>    <from>^([^?]*)/([^?/\.]+)(\?.*)?$</from>
>    <to last="true" type="redirect">$1/$2.html$3</to>
> </rule>
> 
> I'm still curious why Appfuse prevent the Struts 2 Convention plugin to work
> with the SEO complaint URLs ?
> 
> I appreciate your help, guys - Thx!
> 
> 
> -taltun
> -- 
> View this message in context: 
> http://n4.nabble.com/Struts-2-convention-plugin-tp1676689p1680535.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to