struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Feidt" <Gary.Fe...@childrensmn.org>
Subject Re: why my page can't redirect under Struts with Javascript?
Date Tue, 21 Feb 2006 13:44:03 GMT
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 these emails.

Gary

>>> rodphoenix@gmail.com 2/20/2006 9:53:33 PM >>>
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 <newton@pingsite.com> wrote:
>
> 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 redirect!
> >
> Why are you eval-ing a string? Since "/log.do?action=First" is not a
> valid JavaScript statement, this will fail.
>
> Pay attention to JavaScript errors.
>
> Dave
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org 
> For additional commands, e-mail: user-help@struts.apache.org 
>
>
__________________________________

Confidentiality Statement:
This email/fax, including attachments, may include confidential and/or proprietary information
and may be used only by the person or entity to which it is addressed. If the reader of this
email/fax is not the intended recipient or his or her agent, the reader is hereby notified
that any dissemination, distribution or copying of this email/fax is prohibited. If you have
received this email/fax in error, please notify the sender by replying to this message and
deleting this email or destroying this facsimile immediately.

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


Mime
View raw message