Hi Tim Even this wasn't going to work for me, because the live server address is http://www.liveserver.co.uk but the test server is internal only and is http://testserver so I would still be dependant on which box I was running on.
I finally got around it. Because the .asp program is located on the same server that the servlet is, I can specify a "full" path and sidestep the server issue by specifying http://localhost/application/servlet. It was a bit of a "Doh!" moment when the penny finally dropped, but I'm surprised that there doesn't seem to be an easy way of creating a URL object relative to the current location. Thanks for all your help Regards Roger > > > There might be a better solution but I'm too tired to think > of it right now > :-P > Here's a quicky solution used by most taglibs to handle src > urls to avoid > hardcoding. > I included it in jsp syntax but you can see how it works with > Servlets. > > <%=request.getScheme()%>://<%=request.getServerName()%><%=resp > onse.encodeRed > irectURL("/temp.jsp")%> > > Just replace the temp.jsp with whatever your looking for > ("Register1.asp") > You can download the src to jakarta's HTML taglib which has a > rewrite tag > that does this same type of thing to get a better example. > > Hope that helps, > -Tim > ************************************************************************ Information in this message is confidential and may be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please notify the sender and delete the message immediately. Unauthorised disclosure, distribution and copying of this email is strictly prohibited. The opinions expressed within this message are those of the individual author. Whilst Brake Bros takes reasonable steps to scan this email it does not accept liability for any virus that may be contained in it. Bros Foodservice Limited, Enterprise House, Eureka Business Park, Ashford, Kent TN25 4AG. Registered in England and Wales number 706764. Telephone 01233 206000 Fax 01233 206006. ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
