> Hi.
>
> I'm trying to access the name of the web server as it is published on
> the web.
>
> I'm creating links and actions for forms and I need to be able to know
> what the name of the server is that the JSP is coming from.
>
> For example:
>
> <FORM name="smuForm" method="POST" action="https://smuServer.smu/bla">
> ...
> </FORM>
>
> This is one of the things I need to be able to do.  So the
> "smuServer.smu" should be dynamically created so the webapp can be
> portable between different server names.  I need to have an absolute
> path in this part so I can't just write "/bla" in the action part.
>
> Can anyone help?
>
> Kind regards, Stefan.
>
> --------------------------------------------
> Stefan Freyr Stefansson
> Software Developer
> deCODE Genetics, Inc.
> http://www.decode.com
>
> Phone: (+354) 570 2854
> GSM:   (+354) 861 1718
> Fax:   (+354) 491 3782

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to