tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: what to do in conf. files
Date Fri, 25 Feb 2011 20:06:16 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

To whom it mat concern,

On 2/25/2011 2:57 PM, spring@gmx.eu wrote:
>>> Especially, what are things to deploy jsf_webapp
>>>  in its real host after developing it in the localhost  ?
>>
>> You will also have to make sure that your URLs are built properly. If
>> the string "localhost" appears anywhere in your webapp, 
>> you're probbaly
>> doing something wrong. Also, if you're not building URLs in 
>> pages like this:
>>
>>    <a href="<%= response.encodeURL(request.getContextPath()
>>                           + "/path/to/resource") %>">your link</a>
> 
> Isn't this very, very old Java-mixed-with-JSP code style?

Yes, which is why I mentioned the use of tag libraries.

Since everybody and their brother uses their own tag library, I figured
I'd not confuse the issue by giving examples from Struts 1.0/1.1/1.2,
Struts 2, JSTL 1.0/1.1/1.2, etc.

The OP didn't give any information about his environment (other than
"JSF"), so he could be running almost anything. The nice part about what
I've written above is that it will work under any JSP environment
regardless of version or available tag libraries.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1oC7gACgkQ9CaO5/Lv0PD67gCeIYE0xoq6oF5kmIGmtek/4TjQ
YikAnRhwr+0A/r1VNgx/CF39a8raT5fj
=d7PQ
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message