on 9/27/2000 9:52 AM, "Christophe Lombart" <[EMAIL PROTECTED]> wrote:

> I defined  my own HTML login template that used a form and for its submit
> button I defined the action =
> $link.setPage("welcome.wm").setAction("LoginUser").
> 
> When this page is display on my client browser, this action attribute =
> 'http://localhost/...... .wm". Why is it a reference  to localhost instead
> of the name of my server or its IP adress ?  Is it necessary to change a
> properties somewhere ?

This has nothing to do with Actions...

This has to do with how DynamicURI builds links. The reason why it says
localhost is that DynamicURI builds the links dynamically based on the
HttpServletRequest.getServerName() field. Obviously you connected to your
server from localhost, so that is the links that you will see. If you
connect to your server at another hostname, then you will see the name of
that hostname.

Read the source code.

-jon

-- 
http://scarab.tigris.org/    | http://noodle.tigris.org/
http://java.apache.org/      | http://java.apache.org/turbine/
http://www.working-dogs.com/ | http://jakarta.apache.org/velocity/
http://www.collab.net/       | http://www.sourcexchange.com/




------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

  • Action Christophe Lombart
    • Jon Stevens

Reply via email to