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 goURL(tmp){ document.forms[0].submit(); } I find my page still can't redirect!!! but I can use following statement to redirect page, <html:submit property="c" value="go"/> why javascript can't redirect under Struts,and <html:submit> can redirect in the same page? It puzzled me for a very long time. It almost mad me mad. On 2/20/06, Jari Fredriksson <[EMAIL PROTECTED]> wrote: > > 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 goURL(tmp){ > > document.forms[0].action="/log.do?action=First"; > > document.forms[0].submit(); > > } > > > > > Hmm. Why the "action" has to be inserted to the url in the first place? > > Can't the log.do retrieve in as getAction() in the execute? It's the value > of the combobox and should be readable from the form bean. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >