I'm sorry, but this is a Javascript issue. If you want to use Struts,
use Struts. Create an ActionForm to get your value from the drop-down
list and then redirect to any number of Actions from your Action. I
believe that is the easiest way, and a LOT less time consuming then
sending all of
-Original Message-
From: Gary Feidt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 21, 2006 7:44 AM
To: user@struts.apache.org
Subject: Re: why my page can't redirect under Struts with Javascript?
I'm sorry, but this is a Javascript issue. If you want to use Struts,
use Struts. Create
phoenix [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Sunday, February 19, 2006 10:12 PM
Subject: Re: why my page can't redirect under Struts with
Javascript?
My web context is Log,so I add prefix before,like follows:
document.forms[0
Swapnil Patil wrote:
Hi,
I modify my Javascript like follows:
function goURL(tmp){
document.forms[0].action=eval(/Log/log.do?action=First);
document.forms[0].submit();
}
Is eval really needed? . Check whether you really need /Log in
contexet path?
Try wih following function.
function
I tried follows:
function goURL(tmp){
document.forms[0].action=eval(/Log/log.do?action=First);
document.forms[0].submit();
}
and
function goURL(tmp){
document.forms[0].action=eval(/log.do?action=First);
document.forms[0].submit();
}
My page also can't redirect!
And I try
function
red phoenix wrote:
I tried follows:
function goURL(tmp){
document.forms[0].action=eval(/Log/log.do?action=First);
document.forms[0].submit();
}
and
function goURL(tmp){
document.forms[0].action=eval(/log.do?action=First);
document.forms[0].submit();
}
My page also can't
@struts.apache.org
Sent: Monday, February 20, 2006 8:17 PM
Subject: Re: why my page can't redirect under Struts with Javascript?
red phoenix wrote:
I tried follows:
function goURL(tmp){
document.forms[0].action=eval(/Log/log.do?action=First);
document.forms[0].submit();
}
and
function goURL(tmp
Sorry, my bad, I didn't even think about that. Right, you don't need the
eval here.
Saul
- Original Message -
From: Dave Newton [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Monday, February 20, 2006 7:17 PM
Subject: Re: why my page can't redirect under
Martin Gainty wrote:
If you are looking for a way for JavaScript to dynamically change
targetting action based on Javascript code take a look at
http://husted.com/struts/tips/002.html
Uh, no, I was answering the OP with regards to his hosed up JavaScript :)
Dave
I try follows:
function goURL(tmp){
document.forms[0].submit();
}
I debug the Javascript,when running the statement
document.forms[0].submit();
Javascript raise a error:
Microsoft JScript running error:object can't support this attribute or
method
Why?
On 2/21/06, Dave Newton [EMAIL
I use Javascript in Struts,like follows:
script language=JavaScript
function goURL(tmp){
alert(tmp);
document.forms[0].action=/log.do?action=+eval(tmp);
document.forms[0].submit();
}
/script
html:form method=post action=log.do
html:link page=/log.do?action=FirstFirst Page/html:link
html:select
]
To: user@struts.apache.org
Sent: Sunday, February 19, 2006 6:48 PM
Subject: why my page can't redirect under Struts with Javascript?
I use Javascript in Struts,like follows:
script language=JavaScript
function goURL(tmp){
alert(tmp);
document.forms[0].action=/log.do?action=+eval(tmp);
document.forms[0
@struts.apache.org
Sent: Sunday, February 19, 2006 6:48 PM
Subject: why my page can't redirect under Struts with Javascript?
I use Javascript in Struts,like follows:
script language=JavaScript
function goURL(tmp){
alert(tmp);
document.forms[0].action=/log.do?action=+eval(tmp);
document.forms[0].submit
in this case.
Saul
- Original Message -
From: red phoenix [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Sunday, February 19, 2006 10:12 PM
Subject: Re: why my page can't redirect under Struts with Javascript?
My web context is Log,so I add prefix before,like
phoenix [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Sunday, February 19, 2006 10:12 PM
Subject: Re: why my page can't redirect under Struts with Javascript?
My web context is Log,so I add prefix before,like follows:
document.forms[0].action=/Log/log.do?action
.
Saul
- Original Message -
From: red phoenix [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Sunday, February 19, 2006 10:12 PM
Subject: Re: why my page can't redirect under Struts with Javascript?
My web context is Log,so I add prefix before
- Original Message -
From: red phoenix [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Sunday, February 19, 2006 6:48 PM
Subject: why my page can't redirect under Struts with Javascript?
I use Javascript in Struts,like follows:
script
' / in place of /log.do above.
hope it helps.
Saul
- Original Message -
From: red phoenix [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Sunday, February 19, 2006 6:48 PM
Subject: why my page can't redirect under Struts with Javascript
Subject: why my page can't redirect under Struts with
Javascript?
I use Javascript in Struts,like follows:
script language=JavaScript
function goURL(tmp){
alert(tmp);
document.forms[0].action=/log.do?action=+eval(tmp);
document.forms[0].submit
Subject: Re: why my page can't redirect under Struts with
Javascript?
My web context is Log,so I add prefix before,like follows:
document.forms[0].action=/Log/log.do?action=+eval(tmp);
but when I change the value of html:select,it still can't
.
Saul
- Original Message -
From: red phoenix [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Sunday, February 19, 2006 10:12 PM
Subject: Re: why my page can't redirect under Struts with
Javascript?
My
21 matches
Mail list logo