My scenario is
Apache running at 192.168.4.10
Tomcat running on 192.168.4.60

In JSP how I have to create URL
<a href="admin/index.jsp">Home</a> is enough
OR
<a href="192.168.4.10/admin/index.jsp">Home</a>
OR
<a href="192.168.4.60/admin/index.jsp">Home</a>

I will use some custom tag to generate the server portion.

This application may be deployed with multiple Apache and Tomcat instances.
I have no experience in this kind of work.

rgds
Antony Paul

----- Original Message -----
From: "Antony Paul" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 24, 2004 2:19 PM
Subject: Best practice for generating URL's


> Hi all,
>     What is the best practice for generating URL's in JSP/struts-config
when
> the application is behind a web server and both are run in different
> machines. Some pages uses SSL. In one application I saw them using a
> properties file and using a static method to get the proptocol,server and
> context portion. Is that really necessary ?. Or leaving links without
> protocol,servername and context name.
> My new scenario is this.
>
> Apache on one machine with a domain name.
> Tomcat in another machine(I think it needs to be because of expected heavy
> traffic)
> It have some pages which must use SSL.
> It is using Struts and how to manage links in struts-config.xml.
>
> There will be lot of people who worked on this kind of scenario and I
expect
> them to help me.
>
> rgds
> Antony Paul
>
> ---------------------------------------------------------------------
> 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