Re: why my page can't redirect under Struts with Javascript?

2006-02-21 Thread Gary Feidt
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

RE: why my page can't redirect under Struts with Javascript?

2006-02-21 Thread Scott Purcell
-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

Re: why my page can't redirect under Struts with Javascript?

2006-02-20 Thread Swapnil Patil
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

Re: why my page can't redirect under Struts with Javascript?

2006-02-20 Thread Jari Fredriksson
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

Re: why my page can't redirect under Struts with Javascript?

2006-02-20 Thread red phoenix
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

Re: why my page can't redirect under Struts with Javascript?

2006-02-20 Thread Dave Newton
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

Re: why my page can't redirect under Struts with Javascript?

2006-02-20 Thread Martin Gainty
@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

Re: why my page can't redirect under Struts with Javascript?

2006-02-20 Thread Saul Qunming Yuan
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

Re: why my page can't redirect under Struts with Javascript?

2006-02-20 Thread Dave Newton
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

Re: why my page can't redirect under Struts with Javascript?

2006-02-20 Thread red phoenix
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

why my page can't redirect under Struts with Javascript?

2006-02-19 Thread red phoenix
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

Re: why my page can't redirect under Struts with Javascript?

2006-02-19 Thread Saul Qunming Yuan
] 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

Re: why my page can't redirect under Struts with Javascript?

2006-02-19 Thread red phoenix
@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

Re: why my page can't redirect under Struts with Javascript?

2006-02-19 Thread Saul Qunming Yuan
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

Re: why my page can't redirect under Struts with Javascript?

2006-02-19 Thread red phoenix
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

Re: why my page can't redirect under Struts with Javascript?

2006-02-19 Thread Swapnil Patil
. 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

Re: why my page can't redirect under Struts with Javascript?

2006-02-19 Thread red phoenix
- 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

Re: why my page can't redirect under Struts with Javascript?

2006-02-19 Thread raja sekar
' / 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

Re: why my page can't redirect under Struts with Javascript?

2006-02-19 Thread red phoenix
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

Re: why my page can't redirect under Struts with Javascript?

2006-02-19 Thread raja sekar
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

Re: why my page can't redirect under Struts with Javascript?

2006-02-19 Thread red phoenix
. 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