ふたつの川うるおう日記
2005-12-22 (Thu)
_ [Java] IkushipeのURL
ちょこっと触っただけですが、細かな要望を。標準の<url-pattern>/*</url-pattern>時に、
- http://localhost:8080/ikushipe-example/login
- http://localhost:8080/ikushipe-example/login?userName=abc&password=ABC
で表示(処理)されるものが、
- http://localhost:8080/ikushipe-example/login/
- http://localhost:8080/ikushipe-example/login/?userName=abc&password=ABC
でも同じようにアクセスできると嬉しいです。
Apacheのmod_rewriteで小細工しても出来るんですが、フレームワーク自身でできると嬉しいなーって感じです。
[]



了解。
ありがとうございます。
でも、login/とloginが同じでいいのでしょうか?login/とは、login/indexとかのほうな気もしますが。。。
そうですね、無駄が多くなってしまうかもしれませんが、login/index でもアクセスできて、その省略系として、login/ でもアクセスできると一番良いかもしれません。