[mayaa-user:947] Re: mayaaでbaseパスを生成する疑問
suga
[E-MAIL ADDRESS DELETED]
2012年 12月 21日 (金) 09:53:59 JST
suga です。
strutsのバージョンやリクエストしたURLが不明なのでstruts 1.x の最新で確認したところ、
baseタグにrefを渡していないので、
BaseTag で生成される href は
// url = request.getRequestURI()
TagUtils.getInstance().filter(
RequestUtils.createServerUriStringBuffer(scheme,
serverName, port, uri).toString())
の結果になります。
この結果と合致していませんか?
--
suga ( ko.suga @ gmail.com )
2012/12/20 coyoc <coyoc @ 163.com>
> index.htmlには
> <base m:id="baseUrl" href="/" />を書いています、
>
> index.mayaaには
> <html:base m:id="baseUrl" href="${f.url('/')}" />を書いています。
>
> なぜ、生成したHtml中には、下記のようなBaseパスを生成されましたか。
> <base href="http://localhost:8080/xxxxxx/pages/index.html">
>
> strutsのhtmlタグを使う場合、baseパスは<base href="/xxxxxx/">はずでしょう。
>
> 教えたいただくようお願いいたします。
>
>
>
> _______________________________________________
> mayaa-user mailing list
> mayaa-user @ ml.seasar.org
> https://ml.seasar.org/mailman/listinfo/mayaa-user
>
-------------- next part --------------
HTMLの添付ファイルを保管しました...
URL: <http://ml.seasar.org/archives/mayaa-user/attachments/20121221/4bdf02a0/attachment.html>
mayaa-user メーリングリストの案内