You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Tom Jerry <to...@gmail.com> on 2006/09/25 07:12:41 UTC

actiondispatch or javascript

which is better to use ?

1) <html:button property="addnewrecord" onclick="javascript:
window.location='/AddNewRecord.do';" value="Add New Record..."/>

               [ OR ]
2) use of action dispatch ????

Re: actiondispatch or javascript

Posted by Li <am...@gmail.com>.
as both do the same job, i will use actiondispatcher, javascript can be
disabled or hacked

On 9/25/06, Paul Benedict <pb...@apache.org> wrote:
>
> Use EventActionDispatcher or EventDispatchAction part of Struts 1.2.9+
>
>
> http://struts.apache.org/1.2.x/api/org/apache/struts/actions/EventActionDispatcher.html
>
>
> http://struts.apache.org/1.2.x/api/org/apache/struts/actions/EventDispatchAction.html
>
> Paul
>
> Tom Jerry wrote:
> > which is better to use ?
> >
> > 1) <html:button property="addnewrecord" onclick="javascript:
> > window.location='/AddNewRecord.do';" value="Add New Record..."/>
> >
> >               [ OR ]
> > 2) use of action dispatch ????
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
When we invent time, we invent death.

Re: actiondispatch or javascript

Posted by Paul Benedict <pb...@apache.org>.
Use EventActionDispatcher or EventDispatchAction part of Struts 1.2.9+

http://struts.apache.org/1.2.x/api/org/apache/struts/actions/EventActionDispatcher.html

http://struts.apache.org/1.2.x/api/org/apache/struts/actions/EventDispatchAction.html

Paul

Tom Jerry wrote:
> which is better to use ?
> 
> 1) <html:button property="addnewrecord" onclick="javascript:
> window.location='/AddNewRecord.do';" value="Add New Record..."/>
> 
>               [ OR ]
> 2) use of action dispatch ????
> 

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