struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Benedict <pbened...@apache.org>
Subject Re: how do I use absolute url actions in html:form tag with struts 1.3.8
Date Sun, 03 Jan 2010 07:28:41 GMT
I don't think you can. Why would you want to?

On Tue, Dec 22, 2009 at 8:01 PM, Jason Novotny <jason.novotny@gmail.com> wrote:
> Hi,
>
>    I'm a Struts newbie and am tasked with trying to change relative URLs on
> our site to be absolute. I have a form that looks like:
>
> <html:form action="/fcon/MyAction">
>
> and once it renders it displays:
>
> <form id="myForm" method="GET" action="/modules/mymodule/fcon/MyAction.do"
> onsubmit="return validateFilterForm(event, this);">
>
> What I'd like is to have it render an absolute URL:
>
> <form id="myForm" method="GET"
> action="http://www.mysite.com/modules/mymodule/fcon/MyAction.do"
> onsubmit="return validateFilterForm(event, this);">
>
> How can I do this?
>
>    Thanks a lot, Jason
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message