You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Karr, David" <da...@wamu.net> on 2008/03/20 18:39:05 UTC
Any issues using latest Dojo with Struts2?
Isn't it the case that Struts2 integrates Dojo, but a version older than
the latest Dojo version? Should I expect any difficulties if I try to
use the latest Dojo in a Struts2 application? I imagine this might
preclude trying to use the Struts2 tags that use Dojo widgets (or just
need some additional config steps), so I guess I'd need to understand
the impact of that.
I also see that Dojo uses "${...}" references for variable substitution.
Will that cause problems if this code is in a JSP?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Any issues using latest Dojo with Struts2?
Posted by "Karr, David" <da...@wamu.net>.
After thinking about this some more, I guess the best answer is to avoid
it in the first place. Keep complex JavaScript in ".js" files. If the
JavaScript in your JSP is using a feature like this, it probably belongs
in a JS module.
> -----Original Message-----
> From: Dave Newton [mailto:newton.dave@yahoo.com]
> Sent: Thursday, March 20, 2008 5:04 PM
> To: Struts Users Mailing List
> Subject: RE: Any issues using latest Dojo with Struts2?
>
> Oh, the templates? Yeah, if you tried to use that notation on
> a JSP page it would cause a problem. I'd imagine escaping the
> $ would work, although I haven't tried it.
>
> Dave
>
> --- "Karr, David" <da...@wamu.net> wrote:
>
> > The following link into the "Dojo Book" has an example. There are
> > others throughout the book. The "${...}" is substituted on
> the CLIENT
> > side.
> >
> > http://dojotoolkit.org/node/3161
> >
> > > -----Original Message-----
> > > From: Dave Newton [mailto:newton.dave@yahoo.com]
> > > Sent: Thursday, March 20, 2008 1:41 PM
> > > To: Struts Users Mailing List
> > > Subject: Re: Any issues using latest Dojo with Struts2?
> > >
> > > --- "Karr, David" <da...@wamu.net> wrote:
> > > > Isn't it the case that Struts2 integrates Dojo, but a version
> > > > older than the latest Dojo version?
> > >
> > > Yes.
> > >
> > > > Should I expect any difficulties if I try to use the latest
> > > Dojo in a
> > > > Struts2 application?
> > >
> > > Not if you're not trying to combine the two versions; you can use
> > > "naked"
> > > Dojo in an S2 app just like you would in any other framework.
> > >
> > > > I also see that Dojo uses "${...}" references for variable
> > > substitution.
> > > > Will that cause problems if this code is in a JSP?
> > >
> > > I'm not sure what you mean there; do you have a link to
> what you're
> > > referring to?
> > >
> > > Dave
> > >
> > >
> > >
> --------------------------------------------------------------------
> > > - To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: user-help@struts.apache.org
> > >
> > >
> > >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Any issues using latest Dojo with Struts2?
Posted by Dave Newton <ne...@yahoo.com>.
Oh, the templates? Yeah, if you tried to use that notation on a JSP page it
would cause a problem. I'd imagine escaping the $ would work, although I
haven't tried it.
Dave
--- "Karr, David" <da...@wamu.net> wrote:
> The following link into the "Dojo Book" has an example. There are
> others throughout the book. The "${...}" is substituted on the CLIENT
> side.
>
> http://dojotoolkit.org/node/3161
>
> > -----Original Message-----
> > From: Dave Newton [mailto:newton.dave@yahoo.com]
> > Sent: Thursday, March 20, 2008 1:41 PM
> > To: Struts Users Mailing List
> > Subject: Re: Any issues using latest Dojo with Struts2?
> >
> > --- "Karr, David" <da...@wamu.net> wrote:
> > > Isn't it the case that Struts2 integrates Dojo, but a version older
> > > than the latest Dojo version?
> >
> > Yes.
> >
> > > Should I expect any difficulties if I try to use the latest
> > Dojo in a
> > > Struts2 application?
> >
> > Not if you're not trying to combine the two versions; you can
> > use "naked"
> > Dojo in an S2 app just like you would in any other framework.
> >
> > > I also see that Dojo uses "${...}" references for variable
> > substitution.
> > > Will that cause problems if this code is in a JSP?
> >
> > I'm not sure what you mean there; do you have a link to what
> > you're referring to?
> >
> > Dave
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Any issues using latest Dojo with Struts2?
Posted by "Karr, David" <da...@wamu.net>.
The following link into the "Dojo Book" has an example. There are
others throughout the book. The "${...}" is substituted on the CLIENT
side.
http://dojotoolkit.org/node/3161
> -----Original Message-----
> From: Dave Newton [mailto:newton.dave@yahoo.com]
> Sent: Thursday, March 20, 2008 1:41 PM
> To: Struts Users Mailing List
> Subject: Re: Any issues using latest Dojo with Struts2?
>
> --- "Karr, David" <da...@wamu.net> wrote:
> > Isn't it the case that Struts2 integrates Dojo, but a version older
> > than the latest Dojo version?
>
> Yes.
>
> > Should I expect any difficulties if I try to use the latest
> Dojo in a
> > Struts2 application?
>
> Not if you're not trying to combine the two versions; you can
> use "naked"
> Dojo in an S2 app just like you would in any other framework.
>
> > I also see that Dojo uses "${...}" references for variable
> substitution.
> > Will that cause problems if this code is in a JSP?
>
> I'm not sure what you mean there; do you have a link to what
> you're referring to?
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Any issues using latest Dojo with Struts2?
Posted by Dave Newton <ne...@yahoo.com>.
--- "Karr, David" <da...@wamu.net> wrote:
> Isn't it the case that Struts2 integrates Dojo, but a version older than
> the latest Dojo version?
Yes.
> Should I expect any difficulties if I try to
> use the latest Dojo in a Struts2 application?
Not if you're not trying to combine the two versions; you can use "naked"
Dojo in an S2 app just like you would in any other framework.
> I also see that Dojo uses "${...}" references for variable substitution.
> Will that cause problems if this code is in a JSP?
I'm not sure what you mean there; do you have a link to what you're referring
to?
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org